Disambiguate documentation when Solve
is called with both an initial guess and when MathematicalProgram
Initial guess is set.
#22252
Labels
component: mathematical program
Formulating and solving mathematical programs; our autodiff and symbolic libraries
good first issue
Thinking of contributing? These issues might be a good place to start.
type: feature request
In both
SolverInterface::Solve
andSolve
insolver.h
we are very clear that if aMathematicalProgram prog
has a certain solver optionfoo
set, and a passedSolverOption solver_option
is passed with a different value forfoo
then the option passed insolver_option
will be used.However, no analogous documentation exists for what happens when the initial guess is set in both
prog
and passed as an initial guess. Based on our implementation ofSolve
inSolverBase
, we use first the passed initial guess, then the program initial guess.We should document and test this behavior if it is the expected behavior.
The text was updated successfully, but these errors were encountered: