<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Non Linear Mix Optimization using Proc OPTLSO and FCMP in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/328835#M1648</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to solve a non linear mix integer problem where&amp;nbsp;the objective function&amp;nbsp;is of (x-a)*(x^y) format. x is the decision variable and y and a are constants.&amp;nbsp;there are&amp;nbsp;multiple linear constraints. my question -&lt;/P&gt;&lt;P&gt;Can I use PROC OPTLSO with MPS data option and define the objective function in a FCMP procedure? I have tried&amp;nbsp;this already, but getting&amp;nbsp;this error -&amp;nbsp;"FCMP function evaluation failed".&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 17:50:25 GMT</pubDate>
    <dc:creator>mallikadey</dc:creator>
    <dc:date>2017-01-31T17:50:25Z</dc:date>
    <item>
      <title>Non Linear Mix Optimization using Proc OPTLSO and FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/328835#M1648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to solve a non linear mix integer problem where&amp;nbsp;the objective function&amp;nbsp;is of (x-a)*(x^y) format. x is the decision variable and y and a are constants.&amp;nbsp;there are&amp;nbsp;multiple linear constraints. my question -&lt;/P&gt;&lt;P&gt;Can I use PROC OPTLSO with MPS data option and define the objective function in a FCMP procedure? I have tried&amp;nbsp;this already, but getting&amp;nbsp;this error -&amp;nbsp;"FCMP function evaluation failed".&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/328835#M1648</guid>
      <dc:creator>mallikadey</dc:creator>
      <dc:date>2017-01-31T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Non Linear Mix Optimization using Proc OPTLSO and FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/328852#M1650</link>
      <description>&lt;P&gt;Yes, that is one approach. &amp;nbsp;Can you please share your code and data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/328852#M1650</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-01-31T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Non Linear Mix Optimization using Proc OPTLSO and FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/370203#M1894</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would do it with PROC OPTMODEL, but you can do it with PROC OPTLSO:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optlso
   primalout = work.solution            /* opt solution */
   variables = opt_fl_o.variable_limits 
   /* variables= dataset with decision variable limits LB UB */
   objective = work.objdata
   lincon =work.lincondata     /* work.lincondata    OR _null_ */
   NLINCON=work.nonlincondata  /* work.nonlincondata OR _null_ */
   loglevel = 1 printlevel = 1 seed = 100
;
run;
%PUT &amp;amp;=_OROPTLSO_; /*variable that gives feedback about opt status*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You get the ERROR&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: FCMP function evaluation failed&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;when you forgot to include one or more decision variables in the decision variable limits dataset (where you specify lower and upper bounds).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also get this same ERROR&lt;/P&gt;
&lt;P&gt;when you use (the variable name of) non-decision variables among the function arguments and within the formula's when defining the non-linear constraints. Remove your non-decision variable from the list of function arguments and pass on its (fixed scalar) value to the formula in the return statement by means of a macro variable (for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 00:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Non-Linear-Mix-Optimization-using-Proc-OPTLSO-and-FCMP/m-p/370203#M1894</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2017-06-24T00:34:27Z</dc:date>
    </item>
  </channel>
</rss>

