samples.tutorials.to_sort
Class SimpleSchedule

java.lang.Object
  extended by choco.cp.model.CPModel
      extended by samples.tutorials.to_sort.SimpleSchedule
All Implemented Interfaces:
IPretty, Model, Serializable

public class SimpleSchedule
extends CPModel

This class present a simple scheduling problem defined in multicost-regular documentation. It consists on finding a minimal cost schedule for a person with some work regulations Created by IntelliJ IDEA. User: julien Mail: julien.menana{at}emn.fr Date: Jul 6, 2009 Time: 7:43:05 AM

See Also:
Serialized Form

Field Summary
 
Fields inherited from class choco.cp.model.CPModel
_iterator, clausesStore, constantVars, constraints, defDecExp, expVars, floatVars, intVars, LOGGER, nbBoolVar, properties, setVars, storedMultipleVariables
 
Constructor Summary
SimpleSchedule()
          Simple Constructor for the simple schedule model
 
Method Summary
 IntegerVariable getCostVariable()
           
static void main(String[] args)
           
 void makeModel()
          build the model
 void printSolution(CPSolver s)
          Print a schedule once the model is solved by the given solver
 
Methods inherited from class choco.cp.model.CPModel
addConstraint, addConstraint, addConstraint, addConstraint, addConstraints, addConstraints, addOptions, addVariable, addVariable, addVariable, addVariable, addVariables, addVariables, constraintsToString, contains, getConstantVar, getConstraint, getConstraintByType, getConstraintIterator, getConstVarIterator, getDefaultExpressionDecomposition, getExprVarIterator, getIntConstraintIterator, getIntVar, getIntVarIndex, getIntVarIndex, getIntVarIterator, getMultipleVarIterator, getNbBoolVar, getNbConstantVars, getNbConstraintByType, getNbConstraints, getNbIntVars, getNbRealVars, getNbSetVars, getNbStoredMultipleVars, getNbTotVars, getRealVar, getRealVarIterator, getSetVar, getSetVarIterator, getStoredMultipleVar, pretty, readFromFile, remove, removeConstraint, removeConstraints, removeVariable, removeVariable, removeVariable, removeVariables, remVariable, setDefaultExpressionDecomposition, solutionToString, varsToString, writeInFile, writeInFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSchedule

public SimpleSchedule()
Simple Constructor for the simple schedule model

Method Detail

makeModel

public void makeModel()
build the model


printSolution

public void printSolution(CPSolver s)
Print a schedule once the model is solved by the given solver

Parameters:
s - the CPSolver that solved this model

getCostVariable

public IntegerVariable getCostVariable()

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.