[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] magic square/jssp
From: |
Przemek Użarowski |
Subject: |
[Help-glpk] magic square/jssp |
Date: |
Sat, 03 Feb 2007 16:10:43 +0100 |
Hi,
1. I am writing now a magic square program in math prog.I have a problem with
formulating a constraint, that all the values in the square must be different.
...
/* variable x[i,j] */
/* x[i,j] value maximal n^2 */
var x{1..n, 1..n}, integer, >=1, <=n*n;
...
/* all diff */
s.t. ?????
...
I would be very grateful, if you could support me somehow.
greetings
rid3r
- [Help-glpk] magic square/jssp,
Przemek Użarowski <=