http://yetanothermathprogrammingconsult ... ample.html
However for the purposes I want to use it for, rather than trying to minimize the total tour length, I want to minimize the maximum tour length:
Changing sum to smax here doesn't seem to work here because of x(arcs) being a binary variable. Is there a way to rewrite this so it will work?
Code: Select all
cost.. z =e= sum(arcs, c(arcs)*x(arcs));