ameeraus wrote: ↑5 years ago
You did set the upper bound for the variable v_binCatchcrop() earlier in the program to zero and later wanted to fix it to one. CPLEX is usually right. To catch the problem I inserted a bit of code:
* enter this some place before you fix the CatchCrop variables
parameter Catchcropup(curCrops,curPlots) upper bound already set to 0;
Catchcropup(curCrops,curPlots) = v_binCatchcrop.up(curCrops,curPlots);
v_binCatchCrop.fx('Mais - Silomais','ca960201-a2cb-4bab-87af-6bec5cc105af') = 1;
set error(curCrops,curPlots) cannot reset upper bound to 1;
error(curCrops,curPlots) = Catchcropup(curCrops,curPlots) < v_binCatchcrop.up(curCrops,curPlots);
option error:0:0:1; abort$card(error) 'cannot reset upper bound',error;
---- 599 cannot reset upper bound
---- 599 SET error tried to reset upper bound to 1
Mais - Silomais.ca960201-a2cb-4bab-87af-6bec5cc105af
**** Exec Error at line 599: Execution halted: abort$1 'cannot reset upper bound'