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 > [email protected] > https://lists.gnu.org/mailman/listinfo/help-glpk
_______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
