[SCIP] About "best sol" api
Gregor Hendel
hendel at zib.de
Sun Jan 28 16:38:31 CET 2018
Dear William,
during the solution process, SCIP stores all relevant solutions in a
solution pool. The solutions are sorted by increasing objective value,
duplicates are filtered out. You can access them anytime using
SCIPgetSols() and SCIPgetNSols(), resp, see also my stack overflow
answer to a similar question
https://stackoverflow.com/questions/26090454/displaying-top-five-solutions-scip
SCIP can also be used to count all solutions, all optimal solutions,
etc. Please have a look at the following topic of our doxygen documentation.
http://scip.zib.de/doc/html/COUNTER.php
Counting all optimal solutions requires to compute an optimal solution
first, with objective value c*.
Then you use solution counting for your problem under the additional
constraint c^T x = c*.
Happy counting,
Gregor
Am 28.01.2018 um 15:53 schrieb Jianan Zhang:
> Hi all,
>
> I want to get all the best solution once a incumbent sol have been
> found, and then I found the SCIPgetBestSol() method.
>
> But this method can only return one such solution. May be there are
> many solutions that have same best object value, how can I get all of
> them?
>
> Thank you!
> William
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20180128/0263e080/attachment.html>
More information about the Scip
mailing list