help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] operating following / has invalid


From: Xypron
Subject: Re: [Help-glpk] operating following / has invalid
Date: Wed, 23 Nov 2011 21:46:21 +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,

R = (C1 + C3 * V1) / 1- (V2 * C2 )
is linear in R, V1, V2.

The model below is solved by glpsol.

Best regards

Xypron

param C1 := 1;
param C2 := 2;
param C3 := 3;

var R,  >= 0;
var V1, >= 0;
var V2, >= 0;

minimize obj : V1 + V2 + R;
s.t. c1: R = (C1 + C3 * V1) / 1- (V2 * C2);
end;



On 23.11.2011 17:10, esma mehiaoui wrote:
Hello,
 
I have this error: operating following / has invalid
 
The general form of my constraint it seems to: R = (C1 + C3 * V1) / 1- (V2 * C2 )
where C1 , C2 and C3 are constants with C2 and C3 > 0.
R and V1 is an reel variable.
V2 is an binary variable.
 
Are there some solution to express this constraint ? (lenearize this constraint) 
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]