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
    Commented Mar 17, 2023 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 you have read our privacy policy.

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