Originally posted by: Mambo12345
Hello everybody,
i have a problem with the formulatoin of a QAP (Quadratic asignment problem).
I have a train station with 5 platforms and I consider 8 trains. I also have a 8x8 matrix with the number of changing persons (see below). From this matrix I take the information how many persons will go from for example train1 to all other trains. I also know the times when the trains arrive and leave and now I have to park the trains optimally that the walking distance of the changing persons is minimal.
I know how it works when I have 5 or less trains and 5 platforms and I already solved this.
But now I have to look when the next train is coming and which platform is available for parking. I will also post my data here:
Arrive Departure Platform
Train1 02:00 02:35 1
Train2 02:15 02:35 2
Train3 02:20 02:40 3
Train4 02:30 02:48 4
Train5 02:30 02:50 5
Train6 02:45 03:00 ?
Train7 02:50 03:45 ?
Train8 02:55 03:00 ?
That means that Train 6 has 3 opportunities to park, because Train1, Train2 and Train 3 left the trainstation again.
Train 7 has again 3 opportunities, becaus Train 6 took one platform but Train 4 left the trainstation ....
This is the matrix with the number of changing persons.
How can I solve this ? I have no idea how to tell Matlab / Cplex that the platforms are available again. What do you think ?
Best regards !
#CPLEXOptimizers#DecisionOptimization