Class ForceFilterHelper
java.lang.Object
com.dna.jopt.member.unit.filter.auto.ForceFilterHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
IOptimizationElement> createEffectivePositionMap
(IOptimizationElement start, List<ILogicRouteElementDetailItem> sortedRouteDetails) static List<IOptimizationElement>
extractViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, ToDoubleFunction<ILogicEntityRoute> costExtractor, Class<? extends IAutoFilterNodeConstraint> autoFilterConstraintTargetClazz, Predicate<ILogicRouteElementDetailItem> filterDecider) static List<IOptimizationElement>
extractViolationCausingNodesViolationBased
(IEntity en, ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, ToDoubleFunction<ILogicEntityRoute> costExtractor, Class<? extends IAutoFilterNodeConstraint> autoFilterConstraintTargetClazz, Predicate<List<IViolation>> filterDecider) static List<IOptimizationElement>
getCapacityOverloadViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) static List<IOptimizationElement>
getEarlyViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) static List<IOptimizationElement>
getEndAnchorViolationsCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) static List<IOptimizationElement>
getLateViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) static List<IOptimizationElement>
getRouteDistanceViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, boolean isUseStrictMarign) static List<IOptimizationElement>
getRouteTimeViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, boolean isUseStrictMarign) static Optional<org.apache.commons.math3.util.Pair<List<IOptimizationElement>,
List<INodeFilterReason>>> getViolationCausingNodes
(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> c) static List<IOptimizationElement>
gracefullySolveEarlyViolation
(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) static List<IOptimizationElement>
gracefullySolveLateViolation
(List<List<IOptimizationElement>> removeChunks, List<IOptimizationElement> alreadyFixedRemoveElements, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) static List<IOptimizationElement>
gracefullySolveRequiredSkillViolation
(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) static List<IOptimizationElement>
gracefullySolveResourceMismatchViolation
(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) static List<IOptimizationElement>
gracefullySolveRouteViolation
(List<List<IOptimizationElement>> removeChunks, List<IOptimizationElement> alreadyFixedRemoveElements, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign)
-
Method Details
-
getViolationCausingNodes
public static Optional<org.apache.commons.math3.util.Pair<List<IOptimizationElement>,List<INodeFilterReason>>> getViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> c) -
getRouteTimeViolationCausingNodes
public static List<IOptimizationElement> getRouteTimeViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, boolean isUseStrictMarign) -
getRouteDistanceViolationCausingNodes
public static List<IOptimizationElement> getRouteDistanceViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector, boolean isUseStrictMarign) -
getEndAnchorViolationsCausingNodes
public static List<IOptimizationElement> getEndAnchorViolationsCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) -
getCapacityOverloadViolationCausingNodes
public static List<IOptimizationElement> getCapacityOverloadViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) -
getLateViolationCausingNodes
public static List<IOptimizationElement> getLateViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) -
getEarlyViolationCausingNodes
public static List<IOptimizationElement> getEarlyViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, INodeEdgeConnector connector) -
extractViolationCausingNodes
public static List<IOptimizationElement> extractViolationCausingNodes(IEntity en, ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, ToDoubleFunction<ILogicEntityRoute> costExtractor, Class<? extends IAutoFilterNodeConstraint> autoFilterConstraintTargetClazz, Predicate<ILogicRouteElementDetailItem> filterDecider) -
extractViolationCausingNodesViolationBased
public static List<IOptimizationElement> extractViolationCausingNodesViolationBased(IEntity en, ILogicEntityRoute route, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, ToDoubleFunction<ILogicEntityRoute> costExtractor, Class<? extends IAutoFilterNodeConstraint> autoFilterConstraintTargetClazz, Predicate<List<IViolation>> filterDecider) -
createEffectivePositionMap
public static Map<String,IOptimizationElement> createEffectivePositionMap(IOptimizationElement start, List<ILogicRouteElementDetailItem> sortedRouteDetails) -
gracefullySolveRouteViolation
public static List<IOptimizationElement> gracefullySolveRouteViolation(List<List<IOptimizationElement>> removeChunks, List<IOptimizationElement> alreadyFixedRemoveElements, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) -
gracefullySolveLateViolation
public static List<IOptimizationElement> gracefullySolveLateViolation(List<List<IOptimizationElement>> removeChunks, List<IOptimizationElement> alreadyFixedRemoveElements, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) -
gracefullySolveEarlyViolation
public static List<IOptimizationElement> gracefullySolveEarlyViolation(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) -
gracefullySolveResourceMismatchViolation
public static List<IOptimizationElement> gracefullySolveResourceMismatchViolation(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign) -
gracefullySolveRequiredSkillViolation
public static List<IOptimizationElement> gracefullySolveRequiredSkillViolation(List<List<IOptimizationElement>> removeChunks, com.dna.jopt.assessment.costassessor.IEntityCostAssessor assessor, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider pp, IEntity en, ILogicEntityRoute route, INodeEdgeConnector connector, Class<? extends IAutoFilterNodeConstraint> clazz, boolean isUseStrictMarign)
-