[SCIP] how to print out optimization model from scip
Mueller, Benjamin
benjamin.mueller at zib.de
Wed Apr 8 07:22:46 CEST 2020
Dear David,
good to hear that everything works fine with the Java interface on Mac!
(1) In JSCIPOpt, you can use the method scip.writeOrigProblem("mymodel.lp") from Scip.java to write out your model as *.lp file.
(2) You need to specify the objective coefficient of a variable when you call scip.createVar(...). Please have a look again at the Linear.java example. There you see that the objective function is set to min x - 3y.
Best,
Benjamin
On 08.04.20 06:43, usa usa wrote:
Hi,
I am trying to run java scip from IntelliJ Idea (community 2019.2) on macbook pro.
My java is 11.
My scipoptsuite: 6.0.2.
My jscip cheked out from https://github.com/SCIP-Interfaces/JSCIPOpt
I can run the example well.
e.g. https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/examples/Linear.java
I have two questions:
(1) How can I print out the optimization model as .lp file ?
(2) How to set the optimization objective function ?
I cannot find how to do it from https://scip.zib.de/doc/html/PARAMETERS.php.
Thanks
David
_______________________________________________
Scip mailing list
Scip at zib.de<mailto: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/20200408/2eb4eed3/attachment.html>
More information about the Scip
mailing list