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