|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.branch.AbstractBranching
choco.palm.dbt.search.PalmAbstractBranching
choco.palm.real.search.PalmCyclicSplit
public class PalmCyclicSplit
A default branching for continuous variables: each variable is choosen cyclicly.
Field Summary | |
---|---|
protected int |
current
The index of the last splitted variable. |
Fields inherited from class choco.palm.dbt.search.PalmAbstractBranching |
---|
extender |
Fields inherited from class choco.branch.AbstractBranching |
---|
LOG_DECISION_MSG, LOG_DOWN_MSG, LOG_UP_MSG, logger, manager, nextBranching |
Constructor Summary | |
---|---|
PalmCyclicSplit()
|
Method Summary | |
---|---|
boolean |
checkAcceptable(java.util.List csts)
Checks if the constraints that should be posted are acceptable w.r.t. the learner component. |
boolean |
finishedBranching(java.lang.Object item,
java.lang.Object previousBranch)
Checks whether all branches have already been explored at the current choice point |
java.lang.String |
getDecisionLogMsg(int branchIndex)
used for logging messages related to the search tree |
java.lang.Object |
getNextBranch(java.lang.Object branchingItem,
java.lang.Object previousBranch)
Returns the next decision constraints for a specified variable. |
void |
learnFromRejection()
Learns from rejection: it allows to avoid to fail again for the same reason. |
java.lang.Object |
selectBranchingObject()
Returns the next variable to split. |
java.lang.Object |
selectFirstBranch(java.lang.Object item)
Returns the decision constraint to add (w.r.t. a specified variable). |
Methods inherited from class choco.palm.dbt.search.PalmAbstractBranching |
---|
getExtender, setExtender |
Methods inherited from class choco.branch.AbstractBranching |
---|
getNextBranching, setNextBranching, setSolver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int current
Constructor Detail |
---|
public PalmCyclicSplit()
Method Detail |
---|
public java.lang.Object selectBranchingObject()
public java.lang.Object selectFirstBranch(java.lang.Object item)
item
- The item the solver branchs on.public boolean checkAcceptable(java.util.List csts)
public void learnFromRejection()
public java.lang.Object getNextBranch(java.lang.Object branchingItem, java.lang.Object previousBranch)
branchingItem
- the branching object under scrutinypreviousBranch
- the object labelling the previous branch
public boolean finishedBranching(java.lang.Object item, java.lang.Object previousBranch)
ObjectBranching
public java.lang.String getDecisionLogMsg(int branchIndex)
AbstractBranching
getDecisionLogMsg
in class AbstractBranching
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |