samples
Class AirPlaneLandingWithLNS

java.lang.Object
  extended by samples.tutorials.PatternExample
      extended by 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.


Field Summary
protected  TaskVariable[] planes
          Each plane is represented as a task. its starting time is its landing time and its duration its landing time.
protected  IntegerVariable[] tardiness
          Each plane has a tardiness (starting time - arrival time)
protected  IntegerVariable weightedSumOfCompletionTimes
          the objective to minimize
 
Fields inherited from class samples.tutorials.PatternExample
model, solver
 
Fields inherited from interface samples.tutorials.Example
LOGGER
 
Constructor Summary
AirPlaneLandingWithLNS()
           
 
Method Summary
 void buildModel()
           
 void buildSolver()
           
static void main(String[] args)
           
 void prettyOut()
           
 void solve()
           
 
Methods inherited from class samples.tutorials.PatternExample
execute, execute, printDescription, readArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

AirPlaneLandingWithLNS

public AirPlaneLandingWithLNS()
Method Detail

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.