Interpret constraint

39 views
Skip to first unread message

Thu Hoa Pham

unread,
Jun 26, 2016, 7:15:41 PM6/26/16
to AIMMS - The Modeling System

Hello,

 

I am building the model to minimize cost for the supply chain in regards transportation mode choice. However, the result I got did not seem correct. Can you help me to check my model please? Below is how I translate my constraints into Aimms language



 

 

And when adding the constraints, I need to fill in the Index domain Box. What should I fill in that box? I am just getting staarted with Aimms. I run the model, but the result was not correct. I have no idea what I did wrong. Can you have a look at my model to see which part is wrong?(Pls see the attached file). Even when I tried to change the input data, the result did not change and the is no result for the variable DCopen

 

Thanks a lot.

Hoa

 

Model test.rar

Marcel Hunting

unread,
Jun 27, 2016, 8:36:16 AM6/27/16
to AIMMS - The Modeling System
Hi,

The model is infeasible, i.e., there exists no feasible solution. That might be caused by DCcapacity(j) being 0 for all j.

Best regards,

Marcel Hunting
AIMMS Optimization Specialist

Thu Hoa Pham

unread,
Jun 27, 2016, 8:50:03 AM6/27/16
to AIMMS - The Modeling System
Hello,

Thanks a lot for your help. I set the DCcapacity for all j to be 10000. However, that does not change the result. I was stuck with this model since I have no idea what I did wrong. Can you help me to check it again?

And can you tell me what do I need to put in the Index domain when I make a constraint?

Thanks in advance,
Hoa
Model test.rar

Marcel Hunting

unread,
Jun 27, 2016, 10:27:28 AM6/27/16
to AIMMS - The Modeling System
Hi,

With 10000 I get a different result, namely a feasible solution in which DCopen is selected for Paris (only).

In the index domain of the constraint you put the "for all" indices of your mathematical formulation. So for the first flow constraint: i in PE, or just simply "i" because i is an index for the set PE.

Best regards,

Marcel

Thu Hoa Pham

unread,
Jun 27, 2016, 2:11:12 PM6/27/16
to AIMMS - The Modeling System
Hello,

Thanks a lot for your help. How did you do to get the solution of opening DC in Paris? Because I could not get that solution. Aimms is quite new for me, sorry for bothering you a lot.

I went to MainExecution then Press Check, commit and Close. The data of DCopen variable is shown like below. And the Totaltransportationcost variable data is 24183519854.

 
Thanks,
Hoa

Thu Hoa Pham

unread,
Jun 27, 2016, 5:56:05 PM6/27/16
to AIMMS - The Modeling System
Hello,

I figured it out myself.

Thanks a lot,
Hoa
Reply all
Reply to author
Forward
0 new messages