<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Constraints using NLPSolve</title>
    <link>http://www.mapleprimes.com/questions/95487-Constraints-Using-NLPSolve</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 18:24:02 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 18:24:02 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Constraints using NLPSolve</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Constraints using NLPSolve</title>
      <link>http://www.mapleprimes.com/questions/95487-Constraints-Using-NLPSolve</link>
    </image>
    <item>
      <title>piecewise objective</title>
      <link>http://www.mapleprimes.com/questions/95487-Constraints-Using-NLPSolve?ref=Feed:MaplePrimes:Constraints using NLPSolve:Comments#answer95495</link>
      <itunes:summary>&lt;p&gt;One cheap and dirty trick is to rewrite your procedure EIG as a piecewise, or with conditionals inside it. If any of the arguments are not "within bounds" then EIG can be edited to return instead some arbitrary &lt;em&gt;huge&lt;/em&gt; value that you just make up. That way, the minimum shouldn't be found as any point outside bounds. (For maximization, you use a large negative value.)&lt;/p&gt;
&lt;p&gt;This can sometimes work OK when using nonlinearsimplex as the method, provided that you supply an initial point which is inside bounds (which you are already doing). The objective is no longer differentiable at the boundary, but in practice that aspect seems to not present many problems.&lt;/p&gt;
&lt;p&gt;The alternative of using sqp as the method, say, has problems for operator objectives like your EIG. See &lt;a href="http://www.mapleprimes.com/posts/95113-Optimization-Workaround-For-Operator-Form"&gt;here&lt;/a&gt;, which shows a workaround that involves handling of the objectivegradient but not of the constraintjacobian.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;One cheap and dirty trick is to rewrite your procedure EIG as a piecewise, or with conditionals inside it. If any of the arguments are not "within bounds" then EIG can be edited to return instead some arbitrary &lt;em&gt;huge&lt;/em&gt; value that you just make up. That way, the minimum shouldn't be found as any point outside bounds. (For maximization, you use a large negative value.)&lt;/p&gt;
&lt;p&gt;This can sometimes work OK when using nonlinearsimplex as the method, provided that you supply an initial point which is inside bounds (which you are already doing). The objective is no longer differentiable at the boundary, but in practice that aspect seems to not present many problems.&lt;/p&gt;
&lt;p&gt;The alternative of using sqp as the method, say, has problems for operator objectives like your EIG. See &lt;a href="http://www.mapleprimes.com/posts/95113-Optimization-Workaround-For-Operator-Form"&gt;here&lt;/a&gt;, which shows a workaround that involves handling of the objectivegradient but not of the constraintjacobian.&lt;/p&gt;</description>
      <guid>95495</guid>
      <pubDate>Wed, 28 Jul 2010 00:17:26 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>DirectSearch package</title>
      <link>http://www.mapleprimes.com/questions/95487-Constraints-Using-NLPSolve?ref=Feed:MaplePrimes:Constraints using NLPSolve:Comments#answer95504</link>
      <itunes:summary>&lt;p&gt;Have you tried Search command from &lt;a href="http://www.maplesoft.com/applications/view.aspx?SID=87637"&gt;DirectSearch&lt;/a&gt; package ?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Have you tried Search command from &lt;a href="http://www.maplesoft.com/applications/view.aspx?SID=87637"&gt;DirectSearch&lt;/a&gt; package ?&lt;/p&gt;</description>
      <guid>95504</guid>
      <pubDate>Wed, 28 Jul 2010 16:01:32 Z</pubDate>
      <itunes:author>mois</itunes:author>
      <author>mois</author>
    </item>
  </channel>
</rss>