help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Conditions for glpsol


From: esma mehiaoui
Subject: [Help-glpk] Conditions for glpsol
Date: Thu, 24 May 2012 17:36:45 +0100 (BST)

Hello,
Could somebody tell me how to express the following condition in a linear constraint ?
if A = 1 and B = 1 then C = 1 
if A = 1 and B = 0 then C = 0
if A = 0 and B = 1 then C = 0
if A = 0 and B = 0 then C = 0
 
Ps: just for precision it is not a logical AND the difference is that in my case i should to have the value zero for C if A or B or both are equal to 0.
 
 
All the best
Esma

reply via email to

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