[SCIP] multiple SCIP solutions in Matlab

Matthias Miltenberger miltenberger at zib.de
Thu Dec 8 08:38:18 CET 2016


Hello Jan,

yes, both the Python and the Java interface support getting all 
collected solutions:

https://github.com/SCIP-Interfaces/PySCIPOpt/blob/master/pyscipopt/scip.pyx#L1212
https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/src/scipjni.i#L131

all the best
Matthias


On 07.12.2016 23:07, Jan Goos wrote:
> Hello Jonathan,
>
> Many thanks for your swift response. For now, I’ll try and use a 
> different approach. Nevertheless, I’d rather stay away from C. Do the 
> Java and Python interfaces support the collection of multiple solutions?
>
> Keep up the good work!
> Best regards,
> J a n
>
>
>> On 7 Dec 2016, at 22:58, Jonathan Currie <jonathan.currie at aut.ac.nz 
>> <mailto:jonathan.currie at aut.ac.nz>> wrote:
>>
>> Hi Jan,
>> That functionality does not exist via OPTI at present, but it sounds 
>> like it should! I’ll have a look this weekend.
>> Jonathan
>> *From:*Scip [mailto:scip-bounces at zib.de]*On Behalf Of*Jan Goos
>> *Sent:*Thursday, 8 December 2016 10:54 AM
>> *To:*scip at zib.de <mailto:scip at zib.de>
>> *Subject:*[SCIP] multiple SCIP solutions in Matlab
>> Dear SCIPers,
>> I am using SCIP via OPTI Toolbox in Matlab, and I'd like to enumerate 
>> multiple solutions. After thoroughly reading the documentation, I 
>> formulated the following example IP:
>> opts = scipset('scipopts',{'constraints/countsols/collect',1});
>> opts = optiset('solver','scip','solverOpts',opts);
>> Opt = opti('f',0,'bounds',0,4,'xtype','I','options',opts)
>> x = solve(Opt)
>> I would like to get the 5 equally valid solutions [0,1,2,3,4], but I 
>> only get 1 [0]. Can you please tell me what I'm missing?
>> Best regards,
>> J a n
>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip

-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
www.zib.de/miltenberger
miltenberger at zib.de
+49 (30) 841 85-245

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20161208/7d81f25a/attachment.html>


More information about the Scip mailing list