Originally posted by: rapherd
Hello,
hm, I'm not sure if you understand my question correct. Therefore, I decided to give an example. Let's say my model (model.mod) looks like:
-----------------------------------------------------------------
///////////////// Sets and indices /////////////////
{string} P = ...; // all available products
{string} FE = ...; // FE facilities
{string} BE = ...; // BE facilities
{string} DB = ...; // DB facilities
{string} DC = ...; // DC facilities
int MP = ...; // maximum nuber of periods
range T = 1..MP; // Time Range
///////////////// Parameters /////////////////
int h_FE[FE][P] = ...; // holding cost for FE facilities
int b_FE[FE][P] = ...; // backlog cost for FE facilities
int w_FE[FE][P] = ...; // WIP cost for FE facilities
-----------------------------------------------------------------
and in OPL-Studio I'm able to define a set of data in (data.dat) that are bound to this variables. Let's assume this:
---------------------------------------------------------------------
P = {"part_1"};
FE = {"FE1" "FE2"}; // FE facilities
BE = {"BE1" "BE2"}; // BE facilities
DB = {"DB1" "DB2"}; // DB facilities
DC = {"DC1" "DC2"}; // DC facilities
MP = 5; // maximum nuber of periods
---------------------------------------------------------------------
So, what I'm looking for is a way of generating this data.dat automatically based on my model.mod file. The semantical meaning of the content in data.dat is irrelevant. Important is to have a set of values that matches the syntactical definitions from the model.mod file.
The shown example is simple, but if you have multi-dimensional arrays it's a pain to format the data.dat correct.
Thank you for any hint
Regards
Raphael
d
#CPLEXOptimizers#DecisionOptimization