Miunt Navigation
  • Home
  • Dev
  • Blog
  • Search
  • 0 Items
  • Home
  • Dev
  • Blog
  • Search
  • 0 Items

Re: How to convert [ 1, 2, 3] to {1, 2, 3}

Hi

.mod

range r=1..3;

int ar[r][1..2]=…;

tuple t
{
int a;
int b;
}

{t} s={ | i in r};

execute
{
writeln(s);
}

.dat

ar=[[1,2],[2,3][2,4]];

gives

 

{<1 2> <2 3> <2 4>}

regards

 

NB: Many how to at https://www.linkedin.com/pulse/how-opl-alex-fleischer/

Source: Re: How to convert [ 1, 2, 3] to {1, 2, 3}

CPLEXCPLEX Optimizeribmmathematical programmingOPL

Follow Us

TikTok icon

Say Hello

[email protected]

Info

  • Home
  • Dev
  • About
  • Blog
  • Shop
  • Farm
  • Account
  • Contact

Keep in Touch

Stay updated with our latest deals and offerings
Image
Image
Image

© 2022 Moopt PLT 202104002612 (0029248-LGN)