samples
Class AirPlaneLandingWithLNS
java.lang.Object
samples.tutorials.PatternExample
samples.AirPlaneLandingWithLNS
- All Implemented Interfaces:
- Example
public class AirPlaneLandingWithLNS
- 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.
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
AirPlaneLandingWithLNS
public AirPlaneLandingWithLNS()
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.