Re: two-dimensional subset

26 views
Skip to first unread message
Message has been deleted

Guido Diepen

unread,
May 21, 2013, 7:36:28 AM5/21/13
to ai...@googlegroups.com
Hi Vivian,

You could achieve this by making use of the tag attribute of the CompatibleTrips compound set. You can find some examples about this in the AIMMS documentation.

An alternative approach is to make use of a binary parameter AreTripsCompatible(i,j) that will get the value 1 in case trip i and trip j are compatible and 0 otherwise. You can then easily use this binary parameter as a domain condition. See an earlier thread https://groups.google.com/d/topic/aimms/esAse-gTQ2c/discussion for more information. Also, you can find more information about domain conditions by searching on the AIMMS Blog (http://blog.aimms.com) and the AIMMS documentation.

Guido Diepen
AIMMS Specialist

On Tuesday, May 21, 2013 10:49:45 AM UTC+2, Vivian Hinfelaar wrote:

Hello,

We are coding a bus schedule problem. We have a set of trip (nodes), this denotes all the trips that have to be made. We also have a set of compatible trips (arcs)(this is a subset of tripsXtrips). That is if trip j can be done after trip i by the same bus.

SET
Identifier: Trips
Index: i,j
definition : ElementRange(1,182,prefix:”Rit-“,fill:1);

SET

Identifier: Compatibletrips
Subset of:  (trips,trips)
Index: a

Now we are running into the problem that aimms does not recognize that the index of compatibletrips, a,  is made up of a single trip i and a single trip j; (i,j).  How can this be done in aims? For our constraints we sometimes need the sum over j for compatible trips for example Thank you very much in advance.

Reply all
Reply to author
Forward
0 new messages