<?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 Proc optmodel - Dynamic variable and objective function in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-optmodel-Dynamic-variable-and-objective-function/m-p/126189#M691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I define 4 numeric variables: a, b, c, d and want to calculate the minimal value of objective function, and meet a problem.&lt;/P&gt;&lt;P&gt;When interating, the a variable named flag is based on variable a, b : flag=max(a,b), and the flag variable is also involved in the objective function, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min f= X + a*Y * flag - ........;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means the flag variable value and the objective function will change during each interation. So how to define them in proc optmodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 04:17:09 GMT</pubDate>
    <dc:creator>qkaiwei</dc:creator>
    <dc:date>2013-05-01T04:17:09Z</dc:date>
    <item>
      <title>Proc optmodel - Dynamic variable and objective function</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-optmodel-Dynamic-variable-and-objective-function/m-p/126189#M691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I define 4 numeric variables: a, b, c, d and want to calculate the minimal value of objective function, and meet a problem.&lt;/P&gt;&lt;P&gt;When interating, the a variable named flag is based on variable a, b : flag=max(a,b), and the flag variable is also involved in the objective function, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min f= X + a*Y * flag - ........;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means the flag variable value and the objective function will change during each interation. So how to define them in proc optmodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 04:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-optmodel-Dynamic-variable-and-objective-function/m-p/126189#M691</guid>
      <dc:creator>qkaiwei</dc:creator>
      <dc:date>2013-05-01T04:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc optmodel - Dynamic variable and objective function</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-optmodel-Dynamic-variable-and-objective-function/m-p/126190#M692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I answer it by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use PROC FCMP to create some functions to solve it, the mechanism of SAS is a little different with that of MATLAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-optmodel-Dynamic-variable-and-objective-function/m-p/126190#M692</guid>
      <dc:creator>qkaiwei</dc:creator>
      <dc:date>2013-05-01T13:30:37Z</dc:date>
    </item>
  </channel>
</rss>

