parser.instances
Class AbstractMinimizeModel

java.lang.Object
  extended by parser.instances.AbstractInstanceModel
      extended by parser.instances.AbstractMinimizeModel
Direct Known Subclasses:
BinPackingModel

public abstract class AbstractMinimizeModel
extends AbstractInstanceModel

Author:
Arnaud Malapert

Field Summary
 
Fields inherited from class parser.instances.AbstractInstanceModel
dbManager, defaultConf, LOGGER, logMsg, model, objective, parser, solver
 
Constructor Summary
AbstractMinimizeModel(InstanceFileParser parser, Configuration settings)
           
 
Method Summary
protected  IntegerVariable buildObjective(String name, int defaultUpperBound)
           
 Solver buildSolver()
          create a solver from the current model
 void cancelHeuristic()
           
 void cancelLowerBound()
           
protected  void displayChart(Object chart, IVisuManager chartManager)
           
 IVisuManager getChartManager()
           
 int getComputedLowerBound()
           
protected  double getGapILB()
           
 IHeuristic getHeuristic()
           
 String getValuesMessage()
           
 void initialize()
           
protected  void logOnDiagnostics()
           
 void makeReports()
           
protected abstract  Object makeSolutionChart()
           
 ResolutionStatus postAnalyzePP()
          compute the resolution status after the preprocessing stage (no solver build yet).
 Boolean preprocess()
          Executes preprocessing ( bounding, heuristics ...)
 void setChartManager(IVisuManager chartManager)
           
 void setComputedLowerBound(int computedLowerBound)
           
 void setHeuristic(IHeuristic heuristic)
           
 Boolean solve()
          configure and launch the resolution.
 
Methods inherited from class parser.instances.AbstractInstanceModel
applyCP, buildModel, 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

AbstractMinimizeModel

public AbstractMinimizeModel(InstanceFileParser parser,
                             Configuration settings)
Method Detail

cancelHeuristic

public final void cancelHeuristic()

getHeuristic

public final IHeuristic getHeuristic()

setHeuristic

public final void setHeuristic(IHeuristic heuristic)

cancelLowerBound

public final void cancelLowerBound()

getComputedLowerBound

public int getComputedLowerBound()

setComputedLowerBound

public final void setComputedLowerBound(int computedLowerBound)

getChartManager

public final IVisuManager getChartManager()

setChartManager

public final void setChartManager(IVisuManager chartManager)

initialize

public void initialize()
Overrides:
initialize in class AbstractInstanceModel

preprocess

public Boolean preprocess()
Description copied from class: AbstractInstanceModel
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.

buildObjective

protected IntegerVariable buildObjective(String name,
                                         int defaultUpperBound)

getGapILB

protected double getGapILB()

logOnDiagnostics

protected void logOnDiagnostics()
Overrides:
logOnDiagnostics in class AbstractInstanceModel

postAnalyzePP

public ResolutionStatus postAnalyzePP()
Description copied from class: AbstractInstanceModel
compute the resolution status after the preprocessing stage (no solver build yet).

Overrides:
postAnalyzePP in class AbstractInstanceModel

buildSolver

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

Specified by:
buildSolver in class AbstractInstanceModel

solve

public Boolean solve()
Description copied from class: AbstractInstanceModel
configure and launch the resolution.

Specified by:
solve in class AbstractInstanceModel

makeSolutionChart

protected abstract Object makeSolutionChart()

displayChart

protected final void displayChart(Object chart,
                                  IVisuManager chartManager)

getValuesMessage

public String getValuesMessage()
Overrides:
getValuesMessage in class AbstractInstanceModel

makeReports

public void makeReports()
Overrides:
makeReports in class AbstractInstanceModel


Copyright © 2012. All Rights Reserved.