Skip to main content
Solved

optimization problem

  • May 17, 2021
  • 2 replies
  • 105 views

Forum|alt.badge.img

Hello everyone,

i'm just a beginner and have a few problems with aimms. 

I am investigating a warehouse in which customer orders are split up into partial orders. Each partial order is assigned to a zone.

My problem is that Aimms assigns the partial orders to multiple zones instead of just one.

 

In the attachement you can see that a partial order is assigned to several zones. 

j are the partial orders; z are the zones

Is there a way to say in a constraint that only one value can be assigned?

 

Thank you!!!

Best answer by deannezhang

You may check the AIMMS Distribution Center Allocation example: https://how-to.aimms.com/Articles/385/385-distribution-center-allocation.html

 

In the “Minimize Expected Transportation Cost Multiple DC” model, there is OneDCUsedToSupply constraint:

Constraint OneDCUsedToSupply {
    IndexDomain: (d);
    Definition: sum( c, DCUsedToSupply(c,d) ) = 1;
}
 

 

2 replies

deannezhang
AIMMS Champ
Forum|alt.badge.img+3
  • AIMMS Champ
  • 61 replies
  • Answer
  • May 18, 2021

You may check the AIMMS Distribution Center Allocation example: https://how-to.aimms.com/Articles/385/385-distribution-center-allocation.html

 

In the “Minimize Expected Transportation Cost Multiple DC” model, there is OneDCUsedToSupply constraint:

Constraint OneDCUsedToSupply {
    IndexDomain: (d);
    Definition: sum( c, DCUsedToSupply(c,d) ) = 1;
}
 

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 1 reply
  • May 19, 2021

Thank you for the answer and help.

I will try it.

Best regards!



Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator