<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix"><tt>Dear David,</tt></div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt>good to hear that everything works fine with the Java interface on Mac!</tt></div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt>(1) In JSCIPOpt, you can use the method</tt> <tt>
scip.</tt><tt>writeOrigProblem("mymodel.lp") from </tt><span class="pl-en" style="box-sizing: border-box; color: rgb(111, 66, 193); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"></span><tt>Scip.java
 to write out your model as *.lp file.<br>
</tt></div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt>(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.</tt></div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt>Best,</tt></div>
<div class="moz-cite-prefix"><tt>Benjamin<br>
</tt></div>
<div class="moz-cite-prefix"><tt></tt><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 08.04.20 06:43, usa usa wrote:<br>
</div>
<blockquote type="cite" cite="mid:CANzaY5-7PBrJae9ot=8hqzTEq8AnNmZ-TrtmR7aDoq1rFpnkFQ@mail.gmail.com">
<div dir="ltr">Hi, 
<div><br>
</div>
<div>I am trying to run java scip from IntelliJ Idea (community 2019.2) on macbook pro. </div>
<div><br>
</div>
<div>My java is 11. </div>
<div>My scipoptsuite: 6.0.2.</div>
<div>My jscip cheked out from <a href="https://github.com/SCIP-Interfaces/JSCIPOpt" moz-do-not-send="true">https://github.com/SCIP-Interfaces/JSCIPOpt</a></div>
<div><br>
</div>
<div>I can run the example well. </div>
<div>e.g. <a href="https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/examples/Linear.java" moz-do-not-send="true">https://github.com/SCIP-Interfaces/JSCIPOpt/blob/master/examples/Linear.java</a></div>
<div><br>
</div>
<div>I have two questions:</div>
<div><br>
</div>
<div>(1) How can I print out the optimization model as .lp file ? </div>
<div><br>
</div>
<div>(2) How to set the optimization objective function ? </div>
<div><br>
</div>
<div>I cannot find how to do it from <a href="https://scip.zib.de/doc/html/PARAMETERS.php" moz-do-not-send="true">https://scip.zib.de/doc/html/PARAMETERS.php</a>. </div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>David</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>