parser.instances
Class AbstractMinimizeModel
java.lang.Object
parser.instances.AbstractInstanceModel
parser.instances.AbstractMinimizeModel
- Direct Known Subclasses:
- BinPackingModel
public abstract class AbstractMinimizeModel
- extends AbstractInstanceModel
- Author:
- Arnaud Malapert
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 |
AbstractMinimizeModel
public AbstractMinimizeModel(InstanceFileParser parser,
Configuration settings)
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.