Script to run AMPL model


reset;
reset options;

option solver ipopt64.exe;
model mis.mod;
solve;

printf "\nTight constraints:\n\n";
# display all tight constraints, their shadow prices, their slack, and the value on the left of the (in)equality
display {j in 1.._ncons: _con[j].slack<1e-7} (_conname[j],_con[j].slack,_conname[j].body);

printf "Values of variables:\n\n";
# display all variables, their values (, and their reduced costs)
display _varname,_var; #,_var.rc;

printf "Running time: %11.8f^n\n", 2^Wmax;

Resource created Monday 03 August 2015, 10:47:20 AM, last modified Tuesday 04 August 2015, 03:39:13 PM.

file: mis.run


Back to top

COMP6741 15s2 (Parameterized and Exact Computation) is powered by WebCMS3
CRICOS Provider No. 00098G