This commit is contained in:
Vitor Santos Costa 2018-11-27 10:32:44 +00:00
commit b73a1f05ba

View File

@ -412,7 +412,7 @@ namespace generic_gecode
break;
case Optimizing::OPT_RATIO:
{
IntArgs c(2, sol.ivars[optim.den].val(),
IntArgs c = Gecode::IntArgs::create(2, sol.ivars[optim.den].val(),
- sol.ivars[optim.num].val());
IntVarArgs v(2);
v[0] = ivars[optim.num];