[SCIP] SCIPgetSols() and SCIPgetBestSol()

Mathieu Besançon mathieu.besancon at gmail.com
Fri Jul 7 17:38:32 CEST 2023


Dear Christopher,
>
> SCIPgetBestSol returns the first solution of what you would get with
> SCIPgetSols, you can view the logic here:
>
> https://github.com/scipopt/scip/blob/26bef1309914c73f395885449a8a101acc0bdfb4/src/scip/scip_sol.c#L2313
>
> The solution storage will contain all solutions collected during the
> search process, the others can be checked for your application.
>
> Hope this helps,
> Mathieu
>
>
> On Fri, Jul 7, 2023, 16:46 Christopher G <christopherg00 at proton.me> wrote:
>
>> Dear SCIP community,
>> I was wondering whether the array of SCIP_SOL* that is returned by
>> SCIPgetSols() always contains the SCIP_SOL* that SCIPgetBestSol()
>> returns. The documentation does not specify that. Furthermore, I'd like to
>> know whether SCIPgetSols() returns the best incumbents or just some recent
>> feasible solutions that were found until the solving was terminated. For my
>> pricing problem I'd like to retrieve the k best incumbents of the problem
>> and I am not sure whether this is the right approach.
>>
>> Hope you can help out here. Best,
>> Christopher
>> _______________________________________________
>> 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/20230707/95bb292f/attachment.html>


More information about the Scip mailing list