File: example.mod

package info (click to toggle)
python-glpk 0.4.45-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 308 kB
  • sloc: python: 1,002; ansic: 873; makefile: 49
file content (13 lines) | stat: -rw-r--r-- 149 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
var x >=0 integer;
var y >= 0;

maximize z: x + y;

subject to r:
  x + y <= 10;
subject to s:
  x + 10*y <= 1;
subject to t:
  10*x + y <= 1;

end;