Mathematical Modeling with LPL : Explain and run a Model
Problem Statement
Modeling Description
||
Back to MatMod
model golfers "The Social Golfer Problem"; parameter m:=4; n:=4; k:=5; -- parameter m:=8; n:=4; k:=7; -- parameter m:=5; n:=3; k:=8; set w := 1..k "weeks"; i,j := 1..m*n "golfers"; g := 1..m "groups (per week)"; binary variable x{w,i,g}; constraint A{w,i}: sum{g} x = 1; B{w,g}: sum{i} x = n; C{i,j|i
Problem Statement
Modeling Description
Back to model
The solution is as follows:
The LOG-File output of LPL is as follows: