[Top][All Lists]

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

Re: [Help-glpk] Integer variable in {-1,1}

From: Oscar Gustafsson
Subject: Re: [Help-glpk] Integer variable in {-1,1}
Date: Thu, 30 Aug 2007 16:55:57 +0200 (MEST)

var x_b, binary;
var x, integer, >= -1, <= 1; /* Not sure about the exact syntax but you get the idea */

s.t. myownrange: x = 2*x_b - 1;

reply via email to

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