[Coin-lpsolver] how to get basic variable indices

Amit Partani amitpartani at hotmail.com
Mon Oct 9 12:45:02 EDT 2006


Hi,

You are using getBasisStatus() which is not part of Clp package, at least 
its not there in Clp header files. Another thing is when all of the 
constraints are equality constraints, then adding slacks causes degeneracy. 
Because of this, the basic indices that are returned in the specific example 
that I dealing with, contains one of the slacks. Since, the slack variables 
are bounded by zero(all constraints are equality type), this makes the 
solution degenerate.
I don't see a reason to have slack variables for equality type constraints. 
Is there any way to retrieve a basis which contains original variables 
rather than slack variables generated from equality type constraints.

Thanks,
Amit

>From: fmargot at andrew.cmu.edu
>To: Amit Partani <amitpartani at hotmail.com>
>CC: coin-lpsolver at list.coin-or.org
>Subject: Re: [Coin-lpsolver] how to get basic variable indices
>Date: Sun, 8 Oct 2006 13:30:49 -0400 (EDT)
>
>
>How to get basic variables is discussed in "project 2" available
>from
>
>http://wpweb2.tepper.cmu.edu/fmargot/COIN/coin.html
>
>Francois
>
>
>On Sun, 8 Oct 2006, Amit Partani wrote:
>
>>Hi,
>>I am trying to get the indices of Basic variables in Clp. As of now I am 
>>using pivotVariable() function. But it returns one of the index (20) which 
>>is more than number of variables (18) in the system. All the constraints 
>>are equality type. Is there any better way to access basic indices (e.g. 
>>CPXgetbase in CPLEX). Some detailed answer will be really appreciated.
>>
>>Thanks,
>>Amit
>>
>>
>>
>>





More information about the Clp mailing list