Originally posted by: arguen
I am trying to unify the following two sets:
{string
} NP_v[v in V] =
{p| <v, p, d, t> in Arc_ijvt, v in V
};
// Set of pick-up ports for vessel v
{string
} ND_v[v in V] =
{d| <v, p, d, t> in Arc_ijvt, v in V
};
// Set of delivery ports for vessel v
with the following code:
NPD_v[v in V]= NP_v[v in V] union ND_v[v in V];
// Set of ports for vessel v
But it is giving "Cannot use type boolean for string" error.
by the way "V" is also a string set with the names of vessels.
Any help would be appreciated.
#DecisionOptimization#OPLusingCPOptimizer