samples.tutorials.lns.rcpsp
Class RCPSPModeler

java.lang.Object
  extended by parser.instances.AbstractInstanceModel
      extended by samples.tutorials.lns.rcpsp.RCPSPModeler

public class RCPSPModeler
extends AbstractInstanceModel

A CP model for the Resource Constrained Project Scheduling Problem

Author:
Sophie Demassey

Field Summary
 
Fields inherited from class parser.instances.AbstractInstanceModel
dbManager, defaultConf, LOGGER, logMsg, model, objective, parser, solver
 
Constructor Summary
RCPSPModeler(Configuration defaultConfiguration)
           
 
Method Summary
 Model buildModel()
          create the choco model after the preprocessing phase.
 Solver buildSolver()
          create a solver from the current model
 Boolean preprocess()
          Executes preprocessing ( bounding, heuristics ...)
 Boolean solve()
          configure and launch the resolution.
 
Methods inherited from class parser.instances.AbstractInstanceModel
applyCP, checkIsSatisfied, checkSolution, checkStatus, consoleReport, databaseReport, getBuildTime, getConfiguration, getConfTime, getDatabaseManager, getFullSecTime, getFullTime, getInitialObjectiveValue, getInstanceName, getModel, getObjectiveValue, getOutputDirectory, getParser, getParseTime, getPreProcTime, getResTime, getSeed, getSolver, getStatus, getValuesMessage, initialize, isDatabaseReporting, isFeasible, load, logOnConfiguration, logOnDiagnostics, makeReports, postAnalyzeCP, postAnalyzePP, setDatabaseManager, setObjective, solveFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RCPSPModeler

public RCPSPModeler(Configuration defaultConfiguration)
Method Detail

preprocess

public Boolean preprocess()
Executes preprocessing ( bounding, heuristics ...) default implementation: do nothing.

Specified by:
preprocess in class AbstractInstanceModel
Returns:
true if a solution has been found, false if the infeasibility has been proven and null otherwise.

buildModel

public Model buildModel()
create the choco model after the preprocessing phase.

Specified by:
buildModel in class AbstractInstanceModel

buildSolver

public Solver buildSolver()
create a solver from the current model

Specified by:
buildSolver in class AbstractInstanceModel

solve

public Boolean solve()
configure and launch the resolution.

Specified by:
solve in class AbstractInstanceModel


Copyright © 2012. All Rights Reserved.