Fix long line in intro example code

This commit is contained in:
Jip J. Dekker 2021-07-27 22:29:02 +10:00
parent 0b6ec37227
commit d828755167
No known key found for this signature in database
GPG Key ID: 517DF4A00618C9C3

View File

@ -6,10 +6,10 @@ var start {1..Machines, 1..Jobs} integer >= 0;@\Vlabel{line:intro:var:start}@
var end_time integer >= 0;@\Vlabel{line:intro:var:end}@
minimize goal: end_time;@\Vlabel{line:intro:goal}@
subject to job_exclusive {m in 1..Machines, j1 in 1..Jobs, j2 in j1+1..Jobs}:@\Vlabel{line:intro:con:start}@
subject to job_excl {m in 1..Machines, j1 in 1..Jobs, j2 in j1+1..Jobs}:@\Vlabel{line:intro:con:start}@
start[m,j1] + Duration[m,j1] <= start[m,j2]
or start[m,j2] + Duration[m,j2] <= start[m,j1];
subject to machine_exclusive {j in 1..Jobs, m1 in 1..Machines, m2 in m1+1..Machines}:
subject to machine_excl {j in 1..Jobs, m1 in 1..Machines, m2 in m1+1..Machines}:
start[m1,j] + Duration[m1,j] <= start[m2,j]
or start[m2,j] + Duration[m2,j] <= start[m1,j];
subject to push_end_time {m in 1..Machines, j in 1..Jobs}: