[Clp] obtaining slack value of constraints in clp

Stefan Vigerske stefan at math.hu-berlin.de
Sun May 27 15:55:26 EDT 2012


Hi,

for LP constraints of the for rowlb <= A*x <= rowub,
getRowActivity() gives the values of A*x,
getRowLower() gives the values of rowlb,
getRowUpper() gives the values of rowub.
It should be easy to compute the slacks from these values.

Stefan

> Thanks, can someone please confirm if rowAcitivity corresponds to the slack
> values of the constraints.
>
> On Wed, May 23, 2012 at 5:43 AM, SALOMEHER at terra.es<SALOMEHER at terra.es>wrote:
>
>> Hello,
>> i think
>>
>> getRowActivity();
>>
>> return the activity of the constraints.
>>
>>
>>
>> ----Mensaje original----
>> De: akhilanger at gmail.com
>> Fecha: 23/05/2012 4:17
>> Para:<clp at list.coin-or.org>
>> Asunto: [Clp] obtaining slack value of constraints in clp
>>
>>
>> Hello All,
>>
>> How can I  obtain the slack value of constraints for a LP model in CLP. I
>> need the slack values to determine the activity of the constraints i.e.
>> whether they were active in a given solve or not!
>> I am looking for an appropriate API method that takes row number as input
>> argument and returns the slack value of the corresponding constraint.
>>
>> Thanks,
>> Akhil
>>
>>
>>
>> _______________________________________________
>> Clp mailing list
>> Clp at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/clp
>>
>>
>
>
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp



More information about the Clp mailing list