Skip to content
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

Request for Example: Warm Start the PATH Solver #16

Closed
yj-Tang opened this issue Sep 11, 2023 · 1 comment
Closed

Request for Example: Warm Start the PATH Solver #16

yj-Tang opened this issue Sep 11, 2023 · 1 comment

Comments

@yj-Tang
Copy link

yj-Tang commented Sep 11, 2023

Hi Lasse, Thanks for sharing the package. I've been using it for a while and it works perfectly. Could you please give an example of how to warm start the solver?

@lassepe
Copy link
Member

lassepe commented Sep 11, 2023

Done in b76df14

For reference, I have added the following comment to the README:

# You can also warm-start the solver with an initial guess.
# For example, say that we want to solve the problem at a slightly perturbed parameter value, `some_other_parameter = some_parameter .+ 0.01`.
# Here, we can warm-start the solver by passing in the old solution as an intial guess.
# This is particularly handy for online optimization as in receding-horizon applications.
some_other_parameter = some_parameter .+ 0.01
other_solution = solve(problem, some_other_parameter; initial_guess = solution.z)

@lassepe lassepe closed this as completed Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants