<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear all,
<div><br>
</div>
<div>In both my cost and constraint function I simulate the same system with an input based on the decision variables and some other&nbsp;non-varying&nbsp;user data.</div>
<div><br>
</div>
<div>In the case when the cost and constraint function are called with the same decision variables, to avoid redundant computations, I would would not like to simulate the system twice, but only once.&nbsp;</div>
<div><br>
</div>
<div>I want to use a userdata structure to pass on the simulation results from cost to constraints or vice versa. Therefore I am trying to find out how the algorithm flow works:
</div>
<div><br>
</div>
<div><b>Does the IPOPT flow ever call cost and constraint with the same decision variables? If so, which one is called first?&nbsp;</b></div>
<div><b><br>
</b></div>
<div>I have modified the hs071 example and I found out that the constraint function is called first and then the cost function is called with the same decision variables. Is this generally the case?</div>
<div><b><br>
</b></div>
<div>I have looking into the publications, but was not very succesfull in finding an answer to my question. I am guessing it is quite a common problem, that why I am asking you :).</div>
<div><br>
</div>
<div>I appreciate you help,</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Martijn Disse</div>
</div>
</body>
</html>