This model is related to the model gameh.
model gameh0 "A Number Game"; set i,j :=[1..50]; parameter p{i,j} := if(i>j+1,-j , i=j+1,i+j , i=j-1,-i-j, i<j-1,i); variable y{j} "Strategy"; constraint R: sum{i} y = 1; minimize loss: max{i} (sum{j} p*y); Write{j|y}('Choose number %1d with probability %7.5f\n',j,y); end
[1] MatMod. Homepage for Learning Mathematical Modeling : https://matmod.ch.
[2] Hürlimann T. Reference Manual for the LPL Modeling Language, most recent version. https://matmod.ch/lpl/doc/manual.pdf.