<?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: optimization plus constraint in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/optimization-plus-constraint/m-p/455268#M2229</link>
    <description>&lt;P&gt;It sounds like you want to solve an optimization problem, but it is not clear to me which of your quantities are decision variables to be determined by the solver and which are input&amp;nbsp;parameters that have fixed values.&amp;nbsp; In PROC OPTMODEL, you can use a VAR statement to declare decision variables, a NUM statement to declare numeric parameters, and a MIN statement to declare a minimization objective.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 15:54:01 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2018-04-18T15:54:01Z</dc:date>
    <item>
      <title>optimization plus constraint</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/optimization-plus-constraint/m-p/455127#M2226</link>
      <description>&lt;P&gt;Hi I have the following ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;InvestedAmount = 1400000;&lt;/P&gt;
&lt;P&gt;Amount = 1300000;&lt;/P&gt;
&lt;P&gt;Cashpayment = 100000;&lt;/P&gt;
&lt;P&gt;DP = Cashpayment/Investedamount;&lt;/P&gt;
&lt;P&gt;Scorevalue = 725&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SigMod_DPSCORE = (982498.1617 +(357322.7098/(1+exp(-(DP-0.0641)/0.0545))))*0.61477534426774;&lt;/P&gt;
&lt;P&gt;Sigmod_Score=1333381.0933*0.8008430656372;&lt;/P&gt;
&lt;P&gt;Linear_reg_constant =-501604.719938709;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Minimize DP with&amp;nbsp;&lt;SPAN&gt;SigMod_DPSCORE+Sigmod_Score+Linear_reg_constant being equal to InvestedAmount&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there any other information that is needed?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I did;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SigMod_SCORE = 712072.4496 +(638693.1194/(1+exp(-(ScoreValue-595.1628)/36.3054)));&lt;BR /&gt;SCORE_weight = 0.8008430656372;&lt;BR /&gt;DP_weight = 0.61477534426774;&lt;BR /&gt;SCB_part = SigMod_SCORE*SCORE_weight;&lt;BR /&gt;Linear_reg_constant =-501604.719938709;&lt;BR /&gt;Calc1 = Amount+(Linear_reg_constant*-1);&lt;BR /&gt;Calc2 = (Calc1-SCB_part)/DP_weight;&lt;/P&gt;
&lt;P&gt;Y2= 982498.1617;&lt;BR /&gt;a2= 357322.7098;&lt;BR /&gt;b2 =0.0545;&lt;BR /&gt;x2=0.0641;&lt;/P&gt;
&lt;P&gt;Calc_Y1 =Y2*(1)+a2;&lt;BR /&gt;calc_Y2 =(Calc_Y1-Calc2)*-1;&lt;BR /&gt;calc_Y3 = Y2-calc2;&lt;BR /&gt;calc_y4 =calc_Y2/calc_y3;&lt;BR /&gt;calc_y5 =log(calc_y4);&lt;BR /&gt;calc_y6 =(-1*b2)*calc_y5;&lt;BR /&gt;Required_eq_pct =calc_y6+x2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Required_eq_pct GT downpayment_pct then do;&lt;BR /&gt;Required_add_equity= ceil(((sum(cashpayment,amount)*Required_eq_pct)-cashpayment));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However &lt;SPAN&gt;Required_add_equity&lt;/SPAN&gt; doesn't take into the consideration that there is a constraint to keep Investedamount stable/equal.&lt;/P&gt;
&lt;P&gt;So How can I do this with&amp;nbsp;respect to minimizing DP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/optimization-plus-constraint/m-p/455127#M2226</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2018-04-18T12:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: optimization plus constraint</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/optimization-plus-constraint/m-p/455268#M2229</link>
      <description>&lt;P&gt;It sounds like you want to solve an optimization problem, but it is not clear to me which of your quantities are decision variables to be determined by the solver and which are input&amp;nbsp;parameters that have fixed values.&amp;nbsp; In PROC OPTMODEL, you can use a VAR statement to declare decision variables, a NUM statement to declare numeric parameters, and a MIN statement to declare a minimization objective.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/optimization-plus-constraint/m-p/455268#M2229</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-04-18T15:54:01Z</dc:date>
    </item>
  </channel>
</rss>

