Class RequiredSkillAutoFilterConstraint
java.lang.Object
com.dna.jopt.member.unit.filter.auto.filternodeconstraint.AbstractAutoFilterConstraint
com.dna.jopt.member.unit.filter.auto.filternodeconstraint.RequiredSkillAutoFilterConstraint
- All Implemented Interfaces:
IAutoFilterNodeConstraint
,Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getAttachedCost
(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider) double
double
Gets thethreshold
of theNode
which theconstraint factor
has to reach in order to be filtered out.double
Gets 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
-
RequiredSkillAutoFilterConstraint
public RequiredSkillAutoFilterConstraint()
-
-
Method Details
-
getTitle
- Specified by:
getTitle
in classAbstractAutoFilterConstraint
-
getQuotient
- Specified by:
getQuotient
in classAbstractAutoFilterConstraint
-
getThreshold
public double getThreshold()Description copied from interface:IAutoFilterNodeConstraint
Gets thethreshold
of theNode
which theconstraint factor
has to reach in order to be filtered out.The
Nodes
are evaluated several times whether they are in aconstraint
state or not. Thefactor
of being in aconstraint
state is calculated by number of evaluation divided by the times theNode
was in aconstraint
state. The value is usually between 0.99 and 0.8- Returns:
- the threshold
-
getThresholdLastRun
public double getThresholdLastRun()Description copied from interface:IAutoFilterNodeConstraint
Gets 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
optimization
should have as few problems as possible. This is why thethreshold
in the last run is lower in order to filter as many problematicNodes
as possible.- Returns:
- the treshold
-
getAttachedCost
public double getAttachedCost(INode node, ILogicEntityRoute curRoute, IEntity en, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider provider) - Specified by:
getAttachedCost
in classAbstractAutoFilterConstraint
-