<div dir="ltr">The short answer to your question is, yes, you can set the bounds on the constraint functions at runtime rather than hard-coding them. I typically have my C/C++ code read in the bounds from an input file, and these values are passed into the MyNLP class when it is invoked.<div><br></div><div>However, as Tony points out, you may find it easier to use one of the Python wrappers to call IPOPT. I have found pyipopt very easy to use, especially since I don&#39;t consider myself an expert in C/C++. One sets up the problem in its entirety (handles to objective and constraint functions, bound values, etc.) and bundles all this information to pass an IPOPT instance. It should make setting the bounds at runtime as easy as possible.</div><div><br></div><div>- Seth</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 1:27 PM, Tony Kelman <span dir="ltr">&lt;<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should probably look into one or more of Pyipopt, Cyipopt, Pyomo, the APMonitor Python API, etc. There are quite a few different options for calling Ipopt from Python.<br>
<br>
-Tony<br>
<br>
<br>
-----Original Message----- From: ehtisham asghar<br>
Sent: Tuesday, March 17, 2015 6:14 PM<br>
To: <a href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a><br>
Subject: [Ipopt] Help required<div><div class="h5"><br>
<br>
<br>
hello good day to all<br>
i am new learner in c++ and I am trying to run an Ipopt algorithm in c++. I have seen your examples and I have a question. In your examples you have given the hard code values for the contraints means  you have already set them. My question is can we define those values dynamically by generating them some where else and calling those values as a constraints and variables.  I am trying to generate the constraints and variables In python and I need to pass those values here for computations.  please guide me regarding this. Thank you for your time.<br>
<br>
<br>
<br>
Kind Regards<br>
<br>
Engr. M.EHTISHAM ASGHAR|<br>
<br>
B.E ELECTRONICS ENGINEERING<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a> <br>
______________________________<u></u>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
</blockquote></div><br></div>