samples.tutorials.to_sort.scheduling
Class ResourceAllocation

java.lang.Object
  extended by samples.tutorials.PatternExample
      extended by samples.tutorials.to_sort.scheduling.ResourceAllocation
All Implemented Interfaces:
Example

public class ResourceAllocation
extends PatternExample

The aim is to maximize the benefits associated with the presence of schedule-based activities, in which an activity may be omitted from the final schedule (e.g. due to different plans being selected). The time windows of tasks are known by advance and they must be processed by a disjunctive machine and a non renewable ressource. A cost (benefits) is associated with the presence of the task in the final schedule.

Since:
6 juil. 2010 version 2.1.1
Version:
2.1.1
Author:
Arnaud Malapert

Field Summary
protected  int capacity
           
protected  int[] costs
           
 int[] durations
           
protected  IntegerVariable objective
           
 TaskVariable[] operationRequests
           
protected  int[] sizes
           
 int[][] timeWindows
           
protected  IntegerVariable[] usages
           
 
Fields inherited from class samples.tutorials.PatternExample
model, solver
 
Fields inherited from interface samples.tutorials.Example
LOGGER
 
Constructor Summary
ResourceAllocation()
           
 
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

timeWindows

public int[][] timeWindows

durations

public int[] durations

operationRequests

public TaskVariable[] operationRequests

usages

protected IntegerVariable[] usages

costs

protected int[] costs

sizes

protected int[] sizes

capacity

protected int capacity

objective

protected IntegerVariable objective
Constructor Detail

ResourceAllocation

public ResourceAllocation()
Method Detail

buildModel

public void buildModel()
Specified by:
buildModel in class PatternExample

buildSolver

public void buildSolver()
Specified by:
buildSolver in class PatternExample

prettyOut

public void prettyOut()
Specified by:
prettyOut in class PatternExample

solve

public void solve()
Specified by:
solve in class PatternExample

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.