Originally posted by: ShivaliLomate
Hi,
I am writing MIP formulation in Cplex 12.8. I have two decision variables namely dvar float + Contract with indices (contract type (ct), geo-variety (g) and year(y)) and dvar boolean IContract with indices (contract type (ct), Geo-variety (g) and year(y)). Each contract type and geo - variety is bounded by parameters Minicontractvalue(ct, gv) and Maxcontractvalue(ct, gv). So whenever contract is selected for particular geo-variety then it should follow constraint of minimum contract value ( soft constraint , that's why binary decision variable Icontract is used for selection of contract). This requirement is modeled as follow in OPL.
Forall (ct in contract type, g in geo-variety , y in year) {
ct1: Contract (ct, g, y) >= IContract (ct, g, y) * Minicontractvalue(ct, g);
ct2: Contract (ct, g, y) <= IContract (ct, g, y) * Maxcontractvalue( ct, g);
}
But for some contract type we have value in a particular year despite its corresponding binary is zero. eg. Contract of contract type = 1 , geo-variety = 2 and year = 4 have Minicontractvalue (1,2 ) = 0.3 and Maxicontractvalue (1,2) = 5000000 . Solution for Contract ( 1, 2, 4) = 0.15 but is corresponding binary IContract (1,2,4) = 0.
will please explain what kind of error is this and how to debug/remove this error ?
#CPLEXOptimizers#DecisionOptimization