[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Getting constraint slack values
From: |
Michael Hennebry |
Subject: |
Re: [Help-glpk] Getting constraint slack values |
Date: |
Fri, 30 Jan 2004 09:13:09 -0600 (CST) |
On Fri, 30 Jan 2004, Ivan Luzzi wrote:
> I tried to get the slack value of a certain constraint.
> >From what I understood from the reference manual, the function
> Lpx_get_row_prim(lp, j) should return the value of the auxiliary variable
> associated
> To column j, i.e. the amount to transform the inequality in a equality
> constraint, that is exactly what slack is.
> But what I get instead, is the activity value of the whole constraint!
> Is there a mistake or is my interpretation wrong?
According to the documentation, the formula for a row variable does
not include a constant term.
To get the slack, take a difference with the appropriate bound.
--
Mike address@hidden
"This dream is brought to you by Sharassin of Shan. Dreams and
communication wizardry of all sorts at reasonable rates." -- Sharassin of Shan