Querying the coefficient of a variable in a constraint


#1

Hi,

I have built a model using JuMP. Now, I want to be able to get the A matrix for my constraints (i.e., the coefficient matrix in Ax<b if my problem is represented in standard form. Is there any way to get this matrix?

Alternatively, is there a way I can get the coefficient associated with a variable on a particular constraint in Julia? If I can get this, I can construct my A matrix via processing.

I shall be grateful for any pointers.

Thanks,
Amulya


#2

If you go to the definition of the build function in JuMP source you can find functions used to build the problem such as: A = prepConstrMatrix(m)