0
$\begingroup$

how to make 2d array of strings in Cplex

//indics

{string} cluster=...;

setof(string) darkstore =...;

setof(string)demandpoint =...;

//data

cluster={chav,sree};

demandpoint=[{tsnami,adholokam,neelambari,ashrayam},{tg,pd,cp,dt}];

darkstore=[{dilucia,quickstart,babystores,yonnesbakery},{a,b,c,d}];

$\endgroup$
1
  • 1
    $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Mar 17 at 11:06

1 Answer 1

1
$\begingroup$

.mod

{string} cluster=...;

string darkstore [cluster][1..4]=...;

string demandpoint  [cluster][1..4]=...;

.dat

cluster={chav,sree};

demandpoint=[[tsnami,adholokam,neelambari,ashrayam],[tg,pd,cp,dt]];

darkstore=[[dilucia,quickstart,babystores,yonnesbakery],[a,b,c,d]];

work fine

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.