Reputation: 99
When we are calling functions like DirectCollocation
, is there a way to see some progress in the middle (verbose mode)? I am not sure how helpful it is to check formulation errors. But just wondering :)
Upvotes: 1
Views: 150
Reputation: 2766
There are two ways to monitor the progress
prog.AddVisualizationCallback
. If this callback function visualizes the trajectory, then you can monitor the visualization in every iteration of the optimizer.std::string print_file_name="foo.txt";
prog.SetSolverOption(SnoptSolver::id(), "Print file", print_file_name);
SnoptSolver solver;
const auto result = solver.Solve(prog, initial_guess);
Then Snopt will print its statistics in each iteration to foo.txt.Upvotes: 4