<?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 Re: proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used. in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335307#M1673</link>
    <description>&lt;P&gt;Your MIN statement declares several objectives (one for each b), but you have not specified which one you want to use. &amp;nbsp;Either declare only one objective or use the OBJ clause in the SOLVE statement to pick one.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 15:14:17 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2017-02-23T15:14:17Z</dc:date>
    <item>
      <title>proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335301#M1672</link>
      <description>&lt;P&gt;I'm trying to find coefficients in theoretical function of uranium mining by minimizing distance between theretical function and actual values. And I'm getting the following:&lt;/P&gt;&lt;P&gt;NOTE: The problem has 201 variables (0 free, 0 fixed).&lt;BR /&gt;NOTE: The problem has 0 linear constraints (0 LE, 0 EQ, 0 GE, 0 range).&lt;BR /&gt;NOTE: The problem has 0 nonlinear constraints (0 LE, 0 EQ, 0 GE, 0 range).&lt;BR /&gt;WARNING: No objective has been specified. A constant zero objective will be used.&lt;BR /&gt;NOTE: The problem is a pure network instance. The ALGORITHM=NETWORK option is recommended for solving problems with this structure.&lt;BR /&gt;NOTE: The LP presolver value AUTOMATIC is applied.&lt;BR /&gt;NOTE: The LP presolver removed all variables and constraints.&lt;BR /&gt;NOTE: Optimal.&lt;BR /&gt;NOTE: Objective = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc optmodel PRESOLVER=NONE;&lt;/P&gt;&lt;P&gt;* set initializing;&lt;BR /&gt;set &amp;lt;str&amp;gt; BLOCKS;&lt;BR /&gt;set PERIODS=1..100;&lt;BR /&gt;* data reading;&lt;BR /&gt;num reserves{BLOCKS};&lt;BR /&gt;num extraction{BLOCKS, PERIODS}, ls{BLOCKS, PERIODS};&lt;/P&gt;&lt;P&gt;read data libor.activeblocks_b into BLOCKS=[eqtypecode] reserves;&lt;BR /&gt;read data libor.active_b into [eqtypecode p_code] ls extraction;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var A{BLOCKS} &amp;gt;=0.1 &amp;lt;=3, V{BLOCKS} &amp;gt;=0.1 &amp;lt;=2, d{BLOCKS} &amp;gt;=0.1 &amp;lt;=1.5;&lt;BR /&gt;impvar _textraction{b in BLOCKS, p in PERIODS}=(reserves[b]/(1+(A[b]*(exp(-V[b]*(ls[b,p]-(d[b]/ls[b,p])))))));&lt;/P&gt;&lt;P&gt;min _dist{b in BLOCKS}=sum{p in PERIODS} ((_textraction[b,p]-extraction[b,p]*1000)^2);&lt;BR /&gt;solve;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for {b in BLOCKS, p in PERIODS} do;&lt;BR /&gt;textraction[b,p]=(reserves[b]/(1+(A[b]*(exp(-V[b]*(ls[b,p]-(d[b]/ls[b,p])))))));&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;create data libor.coef from [block]=BLOCKS A V d;&lt;BR /&gt;create data libor.teor from [block p_code]={BLOCKS, PERIODS} textraction extraction ls;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help, I can't understand what's wrong with my code.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335301#M1672</guid>
      <dc:creator>madina1</dc:creator>
      <dc:date>2017-02-23T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335307#M1673</link>
      <description>&lt;P&gt;Your MIN statement declares several objectives (one for each b), but you have not specified which one you want to use. &amp;nbsp;Either declare only one objective or use the OBJ clause in the SOLVE statement to pick one.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335307#M1673</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-02-23T15:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335316#M1674</link>
      <description>Hi, Rob Pratt, thanks for quick reply!&lt;BR /&gt;What should I do if I wanna minimize all that objectives? Is there some procs?&lt;BR /&gt;And when I picked one objective using OBJ, it says solution status failed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and this WARNING: Objective function cannot be evaluated at starting point. in the log.</description>
      <pubDate>Thu, 23 Feb 2017 15:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335316#M1674</guid>
      <dc:creator>madina1</dc:creator>
      <dc:date>2017-02-23T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335364#M1675</link>
      <description>&lt;P&gt;If you have some priorities among the objectives, you can minimize&amp;nbsp;them one at a time sequentially, adding a new optimality constraint at each step. &amp;nbsp;See the SECONDARY OBJECTIVE section of &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS101-2014.pdf" target="_self"&gt;this SAS Global Forum 2014 paper&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to perform multiobjective optimization and output a Pareto frontier, you can use&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=orlsoug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=orlsoug_hplso_examples10.htm&amp;amp;locale=en" target="_self"&gt;PROC OPTLSO&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid the failure and warning, you can either set the variables to an initial feasible solution before calling the solver or use the &lt;A href="http://go.documentation.sas.com/?docsetId=ormpug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=ormpug_nlpsolver_syntax02.htm&amp;amp;locale=en#ormpug.nlpsolver.nlpsopsms" target="_self"&gt;MULTISTART&lt;/A&gt; option in the SOLVE WITH NLP statement.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335364#M1675</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-02-24T15:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc optmodel WARNING: No objective has been specified.  A constant zero objective will be used.</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335514#M1676</link>
      <description>Thank you very much Rob!&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#ormpex_ex11_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#ormpex_ex11_toc.htm&lt;/A&gt; this example helped me to avoid failure and I've found optiamal solution for one objective.&lt;BR /&gt;thanks for suggesting PROC OPTLSO, I'll try to use it!</description>
      <pubDate>Fri, 24 Feb 2017 06:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/proc-optmodel-WARNING-No-objective-has-been-specified-A-constant/m-p/335514#M1676</guid>
      <dc:creator>madina1</dc:creator>
      <dc:date>2017-02-24T06:37:29Z</dc:date>
    </item>
  </channel>
</rss>

