Enum Class TypeWithExpertiseConstraint.SkillWithExpertiseCostModel
java.lang.Object
java.lang.Enum<TypeWithExpertiseConstraint.SkillWithExpertiseCostModel>
com.dna.jopt.member.unit.condition.typewithexpertise.TypeWithExpertiseConstraint.SkillWithExpertiseCostModel
- All Implemented Interfaces:
Serializable
,Comparable<TypeWithExpertiseConstraint.SkillWithExpertiseCostModel>
,Constable
- Enclosing class:
- TypeWithExpertiseConstraint
public static enum TypeWithExpertiseConstraint.SkillWithExpertiseCostModel
extends Enum<TypeWithExpertiseConstraint.SkillWithExpertiseCostModel>
The Enum SkillWithExpertiseCostModel.
A delta value is the actual level of a resource minus the requested level.
== Case MaxLevel:
E.g.: Requested level 3. Resource level is 8. The delta is 5
PENALIZE_MATCHING_SKILL_HIGH_DELTA = High divergence = penalize PENALIZE_MATCHING_SKILL_LOW_DELTA = High divergence = Do not penalize
In short: Try to maximize or minimize divergence
- Since:
- Nov 11, 2020
- Version:
- Nov 11, 2020
- Author:
- jrich
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe no penalize matching skill.The penalize matching skill high.The penalize matching skill low. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENALIZE_MATCHING_SKILL_HIGH_DELTA
public static final TypeWithExpertiseConstraint.SkillWithExpertiseCostModel PENALIZE_MATCHING_SKILL_HIGH_DELTAThe penalize matching skill high.If the skill level is much higher than the request level, slightly penalize the solution.
If the skill level is a min, penalize much lower skill levels.
-
PENALIZE_MATCHING_SKILL_LOW_DELTA
public static final TypeWithExpertiseConstraint.SkillWithExpertiseCostModel PENALIZE_MATCHING_SKILL_LOW_DELTAThe penalize matching skill low.If the skill level is just equal or slightly above the requested level, Slightly penalize the solution.
If the skill level is a min, penalize equal (slightly smaller) skill levels.
-
NO_PENALIZE_MATCHING_SKILL
public static final TypeWithExpertiseConstraint.SkillWithExpertiseCostModel NO_PENALIZE_MATCHING_SKILLThe no penalize matching skill.Matching skill levels are not penalized (Default)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-