Skip to content

Is there any way to set warmstart externally? #10

Answered by jhmgoossens
Sevarius asked this question in Q&A
Discussion options

You must be logged in to vote

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

  1. Cbc's "mipstart" via a file
    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

  1. straight via CbcModel's setBestSolution and setCutoff etc.
    For this, SonnetWrapper doesn't include the necessary code (yet). For an example, see CbcSolver

Does that help?

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
9 replies
@Sevarius
Comment options

@jhmgoossens
Comment options

@Sevarius
Comment options

@Sevarius
Comment options

@jhmgoossens
Comment options

Answer selected by Sevarius
Comment options

You must be logged in to vote
2 replies
@jhmgoossens
Comment options

@Sevarius
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants