You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I have an optimization problem where the function to be optimized requires solving some expensive iterative sub-problem. It would be efficient if I could re-use the solution from the last step of the optimizer to warm start the next step. Something like
defmyfun(x, y0):
y=expensive_subproblem(x, initial_guess=y0)
returnsome_other_func(x,y), y
This can be done by defining a custom solver, which wraps your current solver of choice. Solvers are the API level at which we pass state between steps.
For an example take a look at the best-so-far solvers, which do something very similar -- they wrap an existing solver, call that on every step, but additionally pass around some additional state.
Suppose I have an optimization problem where the function to be optimized requires solving some expensive iterative sub-problem. It would be efficient if I could re-use the solution from the last step of the optimizer to warm start the next step. Something like
And a sketch of what I'm doing now:
Is something like this possible in optimistix?
The text was updated successfully, but these errors were encountered: