Hi,
if you rewrite your constraint into
forall (n in Node_List) {
EOH_Constraint1:
EOH[n] <= BOHQty[n] +
sum (out in Output_Node_List: out == n)loadingOutput[out]
- sum (p1 in Non_Alternative_Production: p1.Input == n)loadingInput[p1.Output][n]
- sum (p2 in Alternative_Production: p2.Input == n)loadingInput[p2.Output][n];
EOH_Constraint2:
BOHQty[n] +
sum (out in Output_Node_List: out == n)loadingOutput[out]
- sum (p1 in Non_Alternative_Production: p1.Input == n)loadingInput[p1.Output][n]
- sum (p2 in Alternative_Production: p2.Input == n)loadingInput[p2.Output][n] <=EOH[n];
}
Then you ll get
the shadow price value of AO = 0
the shadow price value of AO = -15
the shadow price value of BO = 0
the shadow price value of BO = 0
the shadow price value of DEMAND = 0
the shadow price value of DEMAND = -20
the shadow price value of MAT = 0
the shadow price value of MAT = -5
the shadow price value of AI = 0
the shadow price value of AI = -10
the shadow price value of BI = -5
the shadow price value of BI = 0
An equality is a set of <= and >=
regards
------------------------------
[Alex] [Fleischer]
[EMEA CPLEX Optimization Technical Sales]
[IBM]
------------------------------