Hi There!

I'm new to Ilog Cplex.

I have to translate/convert a model that was written in GLPK to ILOG OPL.

I'm at the beginning of it but unfortunatelly I'm get stuck. It's about defining the data sets and work with these in the model file .

In GLPK it looks like this:

Data file:

param number_one := 1;

param number_two := 2;

set E[1] := E1 E2;

set E[2] := E3 E4;

set E[3] := E5 E6;

----

Model File:

param number_one;

param number_two;

param numberof_set := number_one + number_two;

set E{i in 1..numberof_set};

set EX := setof{i in 1.. numberof_set, j in E[i]} j;

So there should be as many sets in the data file as the sum of the two numbers. In this case its three.

I would like to get the above sets in the same way in Ilog. I think I can bear with the remain parts of the model.

A would greatly appreciate your help!

Thanks a lot!

Robert