I have a routing problem in which a train runs between three stations. I modeled the problem and got an answer that is somewhat correct, but the problem is that, for example, when the train is at station one at one o’clock, it immediately goes to station two at two o’clock, while the time interval between two stations is one-hour and the train should naturally be at station two in three o’clock.

Please help me solve this problem,

Thanks

Dear Amirhossein,

It is happening because your model cannot control such situations. If you have already designed constraints for these infeasibilities, you should check why they are not working properly. If you have not included any yet, you should design one.

Best, Amirhossein