|
| From: | Michael Hennebry |
| Subject: | Re: [Help-glpk] Error : multiplication of linear forms not allowed |
| Date: | Mon, 5 Apr 2010 16:16:03 -0500 (CDT) |
| User-agent: | Alpine 1.00 (DEB 882 2007-12-20) |
On Mon, 5 Apr 2010, hncp wrote:
In my previous post I have been wrong in identifying the constraint. What I actually need is something like XOR operator, not AND operator, i.e. z[i] = p[i] xor p[i+1]
There are 8 elements of {0, 1}**3.
In this case, 4 of them need to be eliminated.
Just add 4 constraints.
--
Michael address@hidden
"Pessimist: The glass is half empty.
Optimist: The glass is half full.
Engineer: The glass is twice as big as it needs to be."
| [Prev in Thread] | Current Thread | [Next in Thread] |