Hi
{int} P = asSet(1..15);
{int} N = {1,6,14};
{int} M=P diff N;
execute
{
writeln(M);
}
gives
{2 3 4 5 7 8 9 10 11 12 13 15}------------------------------
ALEX FLEISCHER
------------------------------
Original Message:
Sent: Wed May 06, 2020 10:03 AM
From: Baldur Jonsson
Subject: splitting a set into 2 subset using CPLEX
Thanks for the reply,
Im using OPL and P is for shipping ports, N for supplying ports and M for receiving ports.
------------------------------
Baldur Jonsson
------------------------------
Original Message:
Sent: Wed May 06, 2020 09:34 AM
From: Daniel Junglas
Subject: splitting a set into 2 subset using CPLEX
Could you please clarify two things:
- What programming API are you using? Or are you using OPL?
- What is the criterion for numbers to go into N or M?
------------------------------
Daniel Junglas