<div dir="ltr">Dear Adhe<div><br></div><div>I just replied in PySCIPOpt</div><div><br></div><div>Best,</div><div>Felipe</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 5, 2020 at 2:31 PM Adhe Kania <<a href="mailto:adhe.a.kania@student.jyu.fi">adhe.a.kania@student.jyu.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Thanks for your reply, Ambros.</div><div>I opened an issue last week, but not yet got an answer.</div><div>I have this function as part of my constraint :<br><a rel="noopener noreferrer" href="https://user-images.githubusercontent.com/51048244/94549355-bf04b100-025a-11eb-8f87-9a994bff3f9a.png" style="box-sizing:border-box;color:rgb(3,102,214);outline-width:0px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px" target="_blank"><img src="https://user-images.githubusercontent.com/51048244/94549355-bf04b100-025a-11eb-8f87-9a994bff3f9a.png" alt="image" style="box-sizing: initial; border-style: none; margin-right: 0px;" width="240" height="59"></a>  <br>where D(j) is input data and P has a decision variable on it.<br></div><div><br></div><div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I wrote my constraint as follows :</span> </div><div> <br></div><div>def consFR(model, q, SS, SOT):</div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:6px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">for t in Ts:
    Dr = quicksum(d for d in demand[t:min(t+L,T)])
    Dr = Dr + quicksum(d for d in demand_day[min((t+L),T)*5:min((t+L)*5+SOT,T*5)])</code></pre></div><div><br></div><div><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">and I got an error :</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">in consFR(model, q, SS, SOT)<br style="box-sizing:border-box">3 for t in Ts:<br style="box-sizing:border-box">4 Dr = quicksum(d for d in demand[t:min(t+L,T)])<br style="box-sizing:border-box">----> 5 Dr = Dr + quicksum(d for d in demand_day[min((t+L),T)*5:min((t+L)<em style="box-sizing:border-box">5+SOT,T</em>5)])<br style="box-sizing:border-box">6<br></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">src\pyscipopt\expr.pxi in pyscipopt.scip.Expr.<span style="box-sizing:border-box;font-weight:600">richcmp</span>()</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">src\pyscipopt\expr.pxi in pyscipopt.scip._expr_richcmp()</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">NotImplementedError:</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><br></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">The problem comes because I have a variable in the upper bound of 

quicksum function. If I change the variable (SOT) with a number, it's run well.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Do you have any idea to solve my problem?</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">I can switch to SCIP if this problem is only for pyscipopt but run well in SCIP.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><br></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Best,</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">Adhe </p></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 29 Sep 2020 at 13:18, Ambros Gleixner <<a href="mailto:gleixner@zib.de" target="_blank">gleixner@zib.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Adhe,<br>
<br>
For PySCIPOpt-related questions, could you please open an issue in the <br>
PySCIPOpt repository and describe in a minimal (not) working example, <br>
what fails?<br>
<br>
Thanks,<br>
Ambros<br>
<br>
<br>
<br>
Am 29.09.20 um 11:15 schrieb Adhe Kania:<br>
> Hi,<br>
> <br>
> I am a new user in SCIP.<br>
> I participated in the interesting online summer school, CO@Work 2020 <br>
> last week and I am interested in using SCIP to solve my problem.<br>
> I use python, so I use pyscipopt.<br>
> My problem has a complicated nonlinear objective function with integer <br>
> variables.<br>
> I work with multiobjective optimization problem, so the objective <br>
> function is an achievement scalarazing function with nonlinear objective <br>
> functions.<br>
> I asked in the Q&A session that SCIP can accommodate a nonlinear <br>
> objective function, but when I try with the simple nonlinear objective <br>
> function, the error "Nonlinear objective functions are not supported" shown.<br>
> I found from the list issues of pyscipopt that I should linearize it, <br>
> using the so-called epigraphical representation, which set the nonlinear <br>
> objective as a constraint. However, it doesn't work when I use norm.cdf <br>
> function.<br>
> <br>
> Would you like to give me suggestion how to use my own complicated <br>
> function in SCIP?<br>
> <br>
> Thanks in advance,<br>
> Adhe<br>
> <br>
> <br>
> _______________________________________________<br>
> Scip mailing list<br>
> <a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
> <a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/mailman/listinfo/scip</a><br>
> <br>
_______________________________________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/mailman/listinfo/scip</a><br>
</blockquote></div>
_______________________________________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/mailman/listinfo/scip</a><br>
</blockquote></div>