Is there any way to set warmstart externally? #10
-
The question is simple, but the answer is probably not. I saw, there is a way to set warmstart using another solved problem
but if I don't have one and solving this problem without warmstart is far too long... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Are you solving an LP or a MIP? WarmStart is about kick-starting an LP -- but that isn't very obvious from the docs.
or
Does that help? |
Beta Was this translation helpful? Give feedback.
-
I wrote two methods, which, i think, will be very useful in Sonnet:
But I have a suspicion, that setBestSolution did not force solver to start searching from the solution, that I passed to it. I made a problem that solves in 30 seconds, I thought that, if I pass optimal solution to it, solver will start his searching point from this solution and will solve faster, but it didn't do that. @jhmgoossens could you please tell me if I understand the principle of WarmStart in Cbc correctly? Or it is mathematically impossible to set the starting point of the algorithm? |
Beta Was this translation helpful? Give feedback.
Are you solving an LP or a MIP?
WarmStart is about kick-starting an LP -- but that isn't very obvious from the docs.
If you're talking about a feasible solution for a MIP, then I believe the way is either via
For this if you can make the solution file, you can tell Sonnet via CbcSolverArgs to tell Cbc to use mipstart. For an example of how to add solver args, see SonnetTest41. See also the mipstart option of the cbc command line tool (mipstart?)
or
For this, SonnetWrapper doesn't include the necessary code (yet). For an example, see CbcSolver
Does that help?