Time explicit in the objective function #258
Replies: 1 comment 4 replies
-
If I understood @tjstienstra correctly, currently opty.utils.create_objective_function cannot handle explicit time dependence. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If the time t explicitly appears in the equations of motion, the example plot_betts_2003 in examples-gallery shows how to handle this:$\int [(y_N - 2 + e^{\rho \cdot t})^2 +\gamma \cdot v_1^2 ] \ dt$ , where $\rho, \gamma$ are constants which appear in the objective function with their numerical value, $y_N$ is a state variable and $v_1$ is a control variable.
A sympy function, say, T(t) is used and it replaces the time variable t whereever it is explicit in the eoms. In the problem it becomes a known_trajectories_map.
Now I have the time t explicitly on the objective function as:
Can opty.utils.create_objective_function handle this explicit dependency on t, if yes how to do it?
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions