[Coin-lpsolver] RHS sensitivity analisys
Daniele Depetrini
daniele.depetrini at criticalpath.net
Fri Mar 9 17:54:45 EST 2007
Hi John,
Thanks for the answer. I've tried already to use "primaRanging" but I
cannot understand how. Here a simple example:
var X0;
var X1;
var X2;
minimize res: +1*X2;
subject to v0: +6.97051*X0+4.19324*X1>=66.1712;
subject to v1: +1.12876*X0+7.95129*X1>=64.4972;
subject to v2: +3.84837*X0+6.76584*X1-1*X2<=702.355;
subject to v3: +6.7965*X0+2.0752*X1<=38.3934;
subject to v4: +1<=X0<=+66.1712;
subject to v5: +1<=X1<=+66.1712;
I've solved above model and after I've put this piece of code:
solver->primalRanging(n,which,valueIncrease,sequenceIncrease,valueDecrease,sequenceDecrease);
cout << "PRIMAL RANGE: ";
for (i=0;i<n;i++)
{
cout << " X"<<i << " increase " <<
valueIncrease[i]<<":"<<sequenceIncrease[i]<<" decrease
"<<valueDecrease[i]<<":"<<sequenceDecrease[i];
}
and I've following output:
PRIMAL RANGE: X0 increase 64.608:0 decrease 0.563167:0 X1 increase
52.9892:1 decrease 12.182:1 X2 increase 1.79769e+308:2 decrease
1.79769e+308:2
With ampl I get (I'm instrested in v3 ranging):
ampl: display v3.up,v3.current,v3.down;
v3.up = 62.506
v3.current = 38.3934
v3.down = 36.0944
How I can "read" primalRanging result?
Thanks,
Daniele.
John J Forrest wrote:
>
> primalRanging may not give identical information but should give
> equivalent information.
>
>
> *Daniele Depetrini <daniele.depetrini at criticalpath.net>*
> Sent by: coin-lpsolver-bounces at list.coin-or.org
>
> 03/09/2007 12:15 PM
>
>
> To
> coin-lpsolver at list.coin-or.org
> cc
>
> Subject
> [Coin-lpsolver] RHS sensitivity analisys
>
>
>
>
>
>
>
>
>
> Hi All,
>
> Is there any way with CLP to have RHS constraints sensitivity analysis ?
> Something like v1.up,v1.current and v1.down (v1 constraint name) for
> ones familiar with AMPL and CPLEX?
>
> Thanks in advance,
>
> Daniele.
> _______________________________________________
> Coin-lpsolver mailing list
> Coin-lpsolver at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-lpsolver
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Coin-lpsolver mailing list
> Coin-lpsolver at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-lpsolver
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20070309/3b124de2/attachment.html>
More information about the Clp
mailing list