Originally posted by: SystemAdmin
As stated in most of the examples I have defined my constraint in following way
IloRange [] order_wt;
for(int i = 0; i < RO11.Order11.size(); i++ )
{
IloLinearNumExpr sum1 = RMPcplex.linearNumExpr();
for(int j =0; j<RRO.Route_Order.size(); j++)
{
if(RO11.Get_temp_Customer_Id(i)==RRO.Get_Customer_id(j) && RO11.Get_Order_Type_Id(i)==RRO.Get_Order_Type(j))
{
sum1.add((IloLinearNumExpr) RMPcplex.prod(RRO.Get_Weight(j), route_selected
http://RRC.Get_Id_By_Value(RRO.Get_Route_Id(j))));
}
}
order_wt[i] = RMPcplex.addGe(sum1,RO11.Get_Weight(i),"order_weight");
}
the same constraint i created in opl studio , when i run my problem in java and OPl i get the same objective and variable values ,
but the dual values of the constraints RMPcplex.getduals{order_wt} are different.
Can I have reason, or am I modelling in wrong sense.
Thanks
Arun Lila
#CPLEXOptimizers#DecisionOptimization