samples.tutorials.to_sort.packing.parser
Class BinPackingModel

java.lang.Object
  extended by parser.instances.AbstractInstanceModel
      extended by parser.instances.AbstractMinimizeModel
          extended by samples.tutorials.to_sort.packing.parser.BinPackingModel

public class BinPackingModel
extends AbstractMinimizeModel

Author:
Arnaud Malapert

Field Summary
 
Fields inherited from class parser.instances.AbstractInstanceModel
dbManager, defaultConf, LOGGER, logMsg, model, objective, parser, solver
 
Constructor Summary
BinPackingModel(Configuration configuration)
           
 
Method Summary
 Model buildModel()
          create the choco model after the preprocessing phase.
 Solver buildSolver()
          create a solver from the current model
 void initialize()
           
protected  Object makeSolutionChart()
           
 Boolean preprocess()
          Executes preprocessing ( bounding, heuristics ...)
 
Methods inherited from class parser.instances.AbstractMinimizeModel
buildObjective, cancelHeuristic, cancelLowerBound, displayChart, getChartManager, getComputedLowerBound, getGapILB, getHeuristic, getValuesMessage, logOnDiagnostics, makeReports, postAnalyzePP, setChartManager, setComputedLowerBound, setHeuristic, solve
 
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, isDatabaseReporting, isFeasible, load, logOnConfiguration, postAnalyzeCP, setDatabaseManager, setObjective, solveFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinPackingModel

public BinPackingModel(Configuration configuration)
Method Detail

initialize

public void initialize()
Overrides:
initialize in class AbstractMinimizeModel

preprocess

public Boolean preprocess()
Description copied from class: AbstractInstanceModel
Executes preprocessing ( bounding, heuristics ...) default implementation: do nothing.

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

buildModel

public Model buildModel()
Description copied from class: AbstractInstanceModel
create the choco model after the preprocessing phase.

Specified by:
buildModel in class AbstractInstanceModel

buildSolver

public Solver buildSolver()
Description copied from class: AbstractInstanceModel
create a solver from the current model

Overrides:
buildSolver in class AbstractMinimizeModel

makeSolutionChart

protected Object makeSolutionChart()
Specified by:
makeSolutionChart in class AbstractMinimizeModel


Copyright © 2012. All Rights Reserved.