samples.tutorials.scheduling
Class AirPlaneLanding
java.lang.Object
samples.tutorials.PatternExample
samples.tutorials.scheduling.AirPlaneLanding
- All Implemented Interfaces:
- Example
public class AirPlaneLanding
- extends PatternExample
n planes must land on a landing strip.
Each plane has an arrival time, a landing duration time and a number of passengers.
We want to prioritize planes according to the number of passengers.
the objective is to minimize the weighted sum of tardiness.
- Author:
- Arnaud Malapert
TODO: refaire cet exemple pour qu'il colle au specifications de la OR lib
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
planes
protected TaskVariable[] planes
- Each plane is represented as a task. its starting time is its landing time and its duration its landing time.
tardiness
protected IntegerVariable[] tardiness
- Each plane has a tardiness (starting time - arrival time)
weightedSumOfCompletionTimes
protected IntegerVariable weightedSumOfCompletionTimes
- the objective to minimize
AirPlaneLanding
public AirPlaneLanding()
printDescription
public void printDescription()
- Overrides:
printDescription
in class PatternExample
buildModel
public void buildModel()
- Specified by:
buildModel
in class PatternExample
buildSolver
public void buildSolver()
- Specified by:
buildSolver
in class PatternExample
solve
public void solve()
- Specified by:
solve
in class PatternExample
prettyOut
public void prettyOut()
- Specified by:
prettyOut
in class PatternExample
main
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.