-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
Separate function for direct transcription (ocp to nlp) #73
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
==========================================
- Coverage 99.15% 97.85% -1.30%
==========================================
Files 6 6
Lines 471 466 -5
==========================================
- Hits 467 456 -11
- Misses 4 10 +6 ☔ View full report in Codecov by Sentry. |
continue.on.error
@PierreMartinon @tmigot linked to this issue |
@PierreMartinon I am just reading the comments, so I am not sure what was blocking, but it is possible to broadcast an initial guess to ADNLPModel to change the initial guess, i.e., something like
or the alternative is to pass an initial guess directly to the solver (it takes nlp.meta.x0 only by default). |
Thanks @tmigot for the clarification ! I guess people usually prefer to pass the initial guess to the solver directly. Both options added. |
thanks @tmigot ; @PierreMartinon please send a message when PR is ready to merge 🤞🏾 |
Ok for me, @joseph-gergaud do you have more changes before the merge ? |
TODO:
one can then set the initial guess in the DOCP
or pass it to the solver call (will bypass the initial guess stored in docp)
Note: some indicators currently defined in DOCP could be migrated up to the OCP, such as has_free_final_time, has_variable etc, similarly to the existing is_min(). Using these higher level functions is probably cleaner than looking at the internal members of OCP.