combination matrix generation (paramters)

93 views
Skip to first unread message

Bernie Lindner

unread,
Mar 18, 2013, 6:39:56 AM3/18/13
to ai...@googlegroups.com
Hi There

I am wondering if there's an easy way to do the following:
I have a model up and running (MIP) with 8 prodcuts. however I want to look at different cases for the coefficient values infront of the 8 binary variables (i.e. different parameter values).
Say now these values may range from 1 to 100. I would like to generate a matrix (see attached image), with all combinations of the different values (e.g. 0,25,50,75,100)

I was wondering if there's an easy way to generate such a matrix. Only way I can think is to write code in MainExecution with for loops for the cases and products.

Bernie

Guido Diepen

unread,
Mar 19, 2013, 4:35:35 AM3/19/13
to ai...@googlegroups.com
Hi Bernie,

multiple possibilities. You can indeed use a procedure to create the values for a multi-dimensional parameter. It appears that the values of that matrix have a lot of structure (i.e. you can determine what the different values for the products would be based on the case number). Another possibility you have is to create a parameter with a definition based on this structure. The big advantage of using a definition is that AIMMS will ensure that the values are always up-to-date whenever you access them.

Guido Diepen
AIMMS Specialist
Reply all
Reply to author
Forward
0 new messages