Topic
• 2 replies
• Latest Post - ‏2013-02-28T00:55:44Z by SystemAdmin
1883 Posts

Pinned topic sensitivity analysis

‏2013-02-27T02:48:02Z |
Hi,everyone!
Apart from using this way to analyze linear programming,is there any other way to do some extra analysis in ILOG OPL studio IDE?For example,sensitivity analysis(objective function coefficent or right-hand coefficent).Thank!

execute {
for(p in products)
writeln("x.reducedCost = ", x[p].reducedCost);
}
execute {
for(r in resources)
{ writeln("ct.slack = ", ct[r].slack);
writeln("ct.dual = ", ct[r].dual);}
}
execute {
for(r in resources)
{ writeln("ct.LB = ", ct[r].LB);
writeln("ct.UB = ", ct[r].UB);
}

}
Updated on 2013-02-28T00:55:44Z at 2013-02-28T00:55:44Z by SystemAdmin
• AlexFleischer
3019 Posts

Re: sensitivity analysis

‏2013-02-27T09:43:57Z
Hi,

let me give you an example.

```dvar float+ Gas[1..1];
dvar float+ Chloride[1..1];

maximize
40 * Gas[1] + 50 * Chloride[1];
subject to {
ctMaxTotal:
Gas[1] + Chloride[1] <= 50;
ctMaxTotal2:
3 * Gas[1] + 4 * Chloride[1] <= 180;
ctMaxChloride:
Chloride[1] <= 40;
}
```

will give you in the IDE the attached screenshot

Regards

Attachments

Updated on 2014-03-26T05:50:51Z at 2014-03-26T05:50:51Z by AlexFleischer
1883 Posts

Re: sensitivity analysis

‏2013-02-28T00:55:44Z
Hi,

let me give you an example.

<pre class="java dw" data-editor-lang="java" data-pbcklang="java" dir="ltr">dvar float+ Gas[1..1]; dvar float+ Chloride[1..1]; maximize 40 * Gas[1] + 50 * Chloride[1]; subject to { ctMaxTotal: Gas[1] + Chloride[1] <= 50; ctMaxTotal2: 3 * Gas[1] + 4 * Chloride[1] <= 180; ctMaxChloride: Chloride[1] <= 40; } </pre>

will give you in the IDE the attached screenshot

Regards
Thank you for your reply,but do you think the range it gives me make sense?It gives such infomation for a lot of linear programming.But the result make no sense.