T
- Type of data modelW
- Type of MasterDatapublic abstract class AbstractCutGenerator<T extends ModelInterface,W extends MasterData> extends Object
MasterData
object. Each time inequalities have to be separated, the generateInqualities
method is invoked. Given
the data from the master, the AbstractCutGenerator can then check whether there are any violated inequalities.
Typically, one wants to store any inequalities generated for a particular master problem in the corresponding MasterData object
such that the master problem has access to the inequalities.Modifier and Type | Field and Description |
---|---|
protected T |
dataModel
Data model
|
protected org.slf4j.Logger |
logger
Logger for this class
|
protected W |
masterData
Data object coming from the master
|
protected String |
name
Name of the generator
|
Constructor and Description |
---|
AbstractCutGenerator(T dataModel,
String name)
Creates a new AbstractCutGenerator
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addCut(AbstractInequality cut)
Add an inequality of the type generated by this AbstractCutGenerator to the model.
|
abstract void |
close()
Close the generator
|
abstract List<AbstractInequality> |
generateInqualities()
Separate valid inequalities
|
abstract List<AbstractInequality> |
getCuts()
Returns all inequalities maintained by this generator
|
void |
setMasterData(W masterData)
Set the data object containing data from the master problem
|
String |
toString() |
protected final org.slf4j.Logger logger
protected final T extends ModelInterface dataModel
protected W extends MasterData masterData
protected final String name
public abstract List<AbstractInequality> generateInqualities()
public abstract void addCut(AbstractInequality cut)
cut
- cut to be addedpublic abstract List<AbstractInequality> getCuts()
public void setMasterData(W masterData)
masterData
- masterDatapublic abstract void close()
Copyright © 2016. All rights reserved.