SKU dimensiones

20 views
Skip to first unread message

Mauro Rozenberg

unread,
Jul 10, 2012, 4:58:27 PM7/10/12
to ai...@googlegroups.com, luciac...@gmail.com
Hi all,
I'm building a model that generates the optimal allocation of SKUs in a warehouse.
It's working fine but I couldn't make a contrain grouping the SKUs. I'd like to limit the numbers of SKUs incluided per category. For example, I have 500 different SKUs that belong to 10 different categories but in the warehouse we have space for 100 different SKUs only. So I want to allocate 100 SKUs but no only between 10 and 30 per category.
How can I define that a SKU belongs to a category so that later I can add them in a variable?

Best,
Mauro.

Guido Diepen

unread,
Jul 12, 2012, 5:47:02 AM7/12/12
to ai...@googlegroups.com, luciac...@gmail.com
Hi Mauro,

I think the easiest would be to work with a binary parameter SKUIncludedInCategory that is indexed over the indices for the sets SKUs and Categories (e.g. iSKU and iCategory). This parameter has the value of 1 if an SKU belongs to a category and 0 otherwise.

You can then use this binary parameter as a domain condition in the index domain of constraints/variables/sum expressions.

Guido Diepen
AIMMS Specialist

Mauro Rozenberg

unread,
Jul 12, 2012, 10:45:41 AM7/12/12
to ai...@googlegroups.com, luciac...@gmail.com
Guido, thanks for the answer.
It worked perfectly.

Mauro.
Reply all
Reply to author
Forward
0 new messages