samples.tutorials.to_sort.scheduling
Class ResourceAllocation
java.lang.Object
samples.tutorials.PatternExample
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ResourceAllocation
public ResourceAllocation()
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.