Originally posted by: trxw
Can't figure it out... So if I have
int CoefOrdenDeSalida=1;
then
OrdenSalida:
forall (i in 1..9)
CoefOrdenDeSalida*OrdenDeSalida[i] <= OrdenDeSalida[i+1];
I want to be able to set CoefOrdenDeSalida=0 only if no cp solution is found
main
{
thisOplModel.generate();
cp.startNewSearch();
while
(cp.next()) { thisOplModel.postProcess(); }
thisOplModel.OrdenSalida.setCoef(thisOplModel.CoefOrdenDeSalida,0);
while
(cp.next()) { thisOplModel.postProcess(); }
}
gives an error... Can you help me?
#DecisionOptimization#OPLusingCPLEXOptimizer