We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@PierreMartinon @gergaud The following definition (check local_test_exponential.jl) generates an error (problem Real vs. Vector):
local_test_exponential.jl
Real
Vector
ocp3 = Model(variable=true) state!(ocp3, 2) control!(ocp3, 1) variable!(ocp3, 1) time!(ocp3, 0, Index(1)) constraint!(ocp3, :initial, [0,0], :initial_constraint) constraint!(ocp3, :final, [1,0], :final_constraint) constraint!(ocp3, :control, -1, 1, :control_constraint) constraint!(ocp3, :variable, 0.1, 10, :variable_constraint) dynamics!(ocp3, (x, u, v) -> [x[2], u]) objective!(ocp3, :mayer, (x0, xf, v) -> v)
Writing
objective!(ocp3, :mayer, (x0, xf, v) -> v[1])
instead is OK.
The text was updated successfully, but these errors were encountered:
Ok, we will add this case !
Sorry, something went wrong.
PierreMartinon
joseph-gergaud
No branches or pull requests
@PierreMartinon @gergaud The following definition (check
local_test_exponential.jl
) generates an error (problemReal
vs.Vector
):Writing
instead is OK.
The text was updated successfully, but these errors were encountered: