Hi Rob
Getting a syntax issue on Constraint "LSP_DC_Link1". What am I missing?
con LSP_DC_Link1{p in Ports, t in Transit,c in LSP: c not in {'ZIMU','ONEY'}, d in DC}:
ContainersfromPortstoLSPtoDC[p,t,c,d] <= BigM * IsLSPDC[c,d];
Here are two correct ways:
con LSP_DC_Link1{p in Ports, t in Transit, c in LSP, d in DC: c not in {'ZIMU','ONEY'}}:
ContainersfromPortstoLSPtoDC[p,t,c,d] <= BigM * IsLSPDC[c,d];
con LSP_DC_Link1{p in Ports, t in Transit, c in LSP diff {'ZIMU','ONEY'}, d in DC}:
ContainersfromPortstoLSPtoDC[p,t,c,d] <= BigM * IsLSPDC[c,d];
Here are two correct ways:
con LSP_DC_Link1{p in Ports, t in Transit, c in LSP, d in DC: c not in {'ZIMU','ONEY'}}:
ContainersfromPortstoLSPtoDC[p,t,c,d] <= BigM * IsLSPDC[c,d];
con LSP_DC_Link1{p in Ports, t in Transit, c in LSP diff {'ZIMU','ONEY'}, d in DC}:
ContainersfromPortstoLSPtoDC[p,t,c,d] <= BigM * IsLSPDC[c,d];
aah. so i get the syntax now. thanks rob as always
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.