param C_Max:= 6;
param R_Max := 3;
param c integer in 1..C_Max;
param r integer in 1..R_Max;
#in the run script I have:
param value {2..C_Max, 1..R_Max};
param bestobj default -Infinity;
param best_c;
param best_r;
suffix bestbound OUT;
for {cval in 2..C_Max, rval in 1..R_Max} {
let c := cval;
let r := rval;
option gurobi_options 'nonconvex=2 bestbound=1 nodelim=1';
solve;
if obj.bestbound > bestobj then {
option gurobi_options 'nonconvex=2';
solve;
if obj > bestobj then {
display cval, rval, obj;
let value[cval,rval] := obj;
let bestobj := obj;
let best_c := c;
let best_r := r;
}
}
}
display value;
I hope to hear from you soon.
Best regards,
Davids
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ampl/CAGnfZd64msZNKpgy-8bUz5NGm%2B5xmv-nOzaWhHY2J1qHJw3nSw%40mail.gmail.com.