Class DoubleBookingAutoFilterConstraint
java.lang.Object
com.dna.jopt.member.unit.filter.auto.filternodeconstraint.AbstractAutoFilterConstraint
com.dna.jopt.member.unit.filter.auto.filternodeconstraint.DoubleBookingAutoFilterConstraint
- All Implemented Interfaces:
IAutoFilterNodeConstraint,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAttachedCost(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider) doubledoubleGets thethresholdof theNodewhich theconstraint factorhas to reach in order to be filtered out.doubleGets the threshold from the last run which usually is set to be lower, usually between 0.8 and 0.4.getTitle()Methods inherited from class com.dna.jopt.member.unit.filter.auto.filternodeconstraint.AbstractAutoFilterConstraint
getFilterReason, isAverageFilteringAllowed, isInConstraintState
-
Field Details
-
MYREASON
- See Also:
-
-
Constructor Details
-
DoubleBookingAutoFilterConstraint
public DoubleBookingAutoFilterConstraint()
-
-
Method Details
-
getTitle
- Specified by:
getTitlein classAbstractAutoFilterConstraint
-
getQuotient
- Specified by:
getQuotientin classAbstractAutoFilterConstraint
-
getThreshold
public double getThreshold()Description copied from interface:IAutoFilterNodeConstraintGets thethresholdof theNodewhich theconstraint factorhas to reach in order to be filtered out.The
Nodesare evaluated several times whether they are in aconstraintstate or not. Thefactorof being in aconstraintstate is calculated by number of evaluation divided by the times theNodewas in aconstraintstate. The value is usually between 0.99 and 0.8- Returns:
- the threshold
-
getThresholdLastRun
public double getThresholdLastRun()Description copied from interface:IAutoFilterNodeConstraintGets the threshold from the last run which usually is set to be lower, usually between 0.8 and 0.4.The very last run of an
optimizationshould have as few problems as possible. This is why thethresholdin the last run is lower in order to filter as many problematicNodesas possible.- Returns:
- the treshold
-
getAttachedCost
public double getAttachedCost(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider) - Specified by:
getAttachedCostin classAbstractAutoFilterConstraint
-