Bug/global param passing #48
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds detailed timing and verbose logging to several core routines in the trajectory optimization and solver setup, improving debuggability and performance profiling. It also refactors the way
NamedTrajectoryobjects are constructed to better handle global components. The most important changes are grouped below:Verbose Logging and Timing for Debugging and Profiling
IpoptEvaluatorconstruction process insrc/solvers/ipopt_solver/evaluator.jl, including for Jacobian and Hessian structure assembly, objective evaluation, and linear index map creation. This helps track performance bottlenecks and provides detailed feedback whenverbose=true. [1] [2]get_optimizer_and_variablesinsrc/solvers/ipopt_solver/solver.jl, reporting the time spent on each major step such as evaluator creation, constraint extraction, block data building, and variable setup.hessian_structureinsrc/objectives/_objectives.jl, printing the time taken for each sub-objective whenverbose=true.Trajectory Data Handling Improvements
NamedTrajectoryinDirectTrajOptProbleminsrc/problems.jlto more robustly extract and handle both component and global component data, improving support for trajectories with global variables.