help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] variable is devided by an variable


From: Xypron
Subject: Re: [Help-glpk] variable is devided by an variable
Date: Wed, 23 Nov 2011 21:38:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15

Hello Asma,

var1 / var2 can only be calculated for var2 != 0. So if var2 is binary, var2 = 1 is the only possible solution. Hence var1 / var2 = var1.

Best regards

Xypron

On 23.11.2011 14:57, esma mehiaoui wrote:
Hello everybody,
 
GLPK doesn't accept an constraint in which a variable is devided by an variable, i would like to know if there is some solution to linearize this constraint. knowning that var2 is binary and var 1 is reel in case var1 / var 2.
 
Best regards
Asma
_______________________________________________ Help-glpk mailing list address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk


reply via email to

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