[Scip] how to get non optimal solutions
Harzallah, Yosri
h1rv3 at unb.ca
Tue Dec 2 15:31:02 MET 2008
Sorry, my question should have been more precise:
How can I set the values for these parameters in the .set file?
I tried to look into samples of .set files but they have more than a thousand parameter
and I didn't find the relevant ones...
Thanks,
Yosri
Quoting Tobias Achterberg <achterberg at zib.de>:
> Hi Yosri,
>
> Harzallah, Yosri wrote:
> > Hi Timo,
> >
> > Thanks for the response.
> > Can the values for the time limit and the remaining primal-dual gap be set in a
> ".set"
> > file?
>
> Yes. And in addition to Timo, I propose the following command sequence to get many
> solutions:
>
> read yourinstance.mps
> set limits bestsol 1
> optimize
> write solution 1.sol
> set limits bestsol 2
> optimize
> write solution 2.sol
> ...
> set limits bestsol 10
> optimize
> write solution 10.sol
> set limits bestsol -1
> optimize
> write solution best.sol
>
> This gives you at most 11 different solutions, with the optimal solution being
> "best.sol".
> Note, however, that if, say, the third solution is already the optimal solution, then
> all
> solutions from 3.sol to 10.sol and best.sol will be identical, and the "optimize"
> calls
> after the third solution will do nothing.
>
> Tobias
>
More information about the Scip
mailing list