GAMS CONSTRAINT FIX

Problems with modeling
Post Reply
audreyadurey
User
User
Posts: 2
Joined: 1 year ago

GAMS CONSTRAINT FIX

Post by audreyadurey »

Hello! So the model is about scheduling ships going to 2 ports, for the waterway part we have set a constraint that there should only be 1 vessel traversing in the waterway at a time, however, after we run the model, there are 2 vessels traversing in the same waterway at the same time. Can someone help us fix the constraint :<
Screen Shot 2023-04-02 at 2.04.33 PM.png
Screen Shot 2023-04-02 at 2.04.45 PM.png
Screen Shot 2023-04-02 at 2.04.57 PM.png
Screen Shot 2023-04-02 at 2.05.10 PM.png
Screen Shot 2023-04-02 at 2.05.16 PM.png
Screen Shot 2023-04-02 at 2.05.46 PM.png
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: GAMS CONSTRAINT FIX

Post by bussieck »

First, look at the forum rules. This has "send the self-contained, executable GAMS code that reproduces your problem to the group". This does not work with screen shots. Attach the text file with the GAMS program! Now to your question, if you have a undesired outcome, check the constraint that is supposed to enforce this situation and see why it doesn't. If you think it does, give the name of the constraint/equation and argue your case. Then re-post (with the source code attached).

-Michael
Post Reply