Hi Does anyone know how I can express a constraint that a variable must be odd or even, i.e. in the form 2*n-1 or 2*n + 1? I am trying to write a mathprog script to find pythagorean triples subject to certain constraints, and i would like to express some conditions on my variables, namely, that one must be an odd integer, and the other must be an even integer.
Thanks! Rory -- View this message in context: http://www.nabble.com/Odd-even-variable-constraint--tp16446906p16446906.html Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com. _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
