orbithunter.core.Orbit.cost
- Orbit.cost(evaleqn=True)[source]
Cost function evaluated at current state.
Parameters
- Returns:
- float
The value of the cost function, equal to 1/2 of the squared \(L_2\) norm of the spatiotemporal mapping, \(R = 1/2 F^2\) by default. The current form generalizes to any equation.
Notes
In certain optimization methods, storing evaluations of the governing equation in instances can cut down on the number of function calls.