help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] API question


From: Rafa Marin Lopez
Subject: [Help-glpk] API question
Date: Tue, 07 Nov 2006 13:46:10 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)

Dear all,

I am a newbie in this tool and I would like to ask a simple doubt.

I have seen (and tested) that the example sample.c it is not possible to set a coefficient to zero at the table ar[x]=0.0

This is also highlighted on the documentation.

But I was wondering how I could express a restriction like this

R >= x1+x2+x3
x1 <= g1
x2 <= g2
x3 <= g3

i have expressed the problem like

r = x1+x2+x3    (1)
x1 = p          (2)
x2 = q          (3)
x3 = 3          (4)

However it implies, for example in the second equation, that x2 and x3 coefficient are zero.

By using files (i.e. format cplexlp) is easy to express these restrictions but I would be interested in using the API C.

Thanks in advance.

--
------------------------------------------------------
Rafael Marin Lopez
Depto. Ing. de la Info. y las Comunicaciones
Faculty of Computer Science-University of Murcia
30100 Murcia - Spain
Telf: +34968398501    e-mail: address@hidden
------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]