Cloud Stack Ninja

I have the following variables:

tuple subtour 
{
    int         size;
    {int}       customers;
};
  
{subtour} S;

Now I want to create a new subtour with OPL script and add it to S. I know that I can create a new subtour with S.add(), but what do I have to put in the braces to create a new set of customers when adding the subtour?



Read more here: https://stackoverflow.com/questions/64416554/initialize-tuple-with-set-in-ibm-cplex-automation-studio

Content Attribution

This content was originally published by Tim Dreier at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: