numagic / lumos

scalable accelerated optimal control
MIT License
16 stars 0 forks source link

statefulness of the model makes creating two solves from the same model more difficult #95

Open yunlongxu-numagic opened 1 year ago

yunlongxu-numagic commented 1 year ago

See: https://github.com/numagic/lumos/blob/warm_start_with_model_solver/examples/laptime_simulation_example.py

One typical scenario is that we want to do an OCP on a model, and before the solve, we use ModelSolver to do some algebraic solves to warm start the problem.