Class RegretKScoringFunctionAdapter
java.lang.Object
com.graphhopper.jsprit.core.algorithm.recreate.RegretKScoringFunctionAdapter
- All Implemented Interfaces:
RegretKScoringFunction
Adapter that wraps a legacy RegretScoringFunction to work with the new
RegretKScoringFunction interface. Enables backward compatibility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublescore(RegretKAlternatives alternatives, Job job) Computes a score for a job based on its k-best insertion alternatives.
-
Constructor Details
-
RegretKScoringFunctionAdapter
-
-
Method Details
-
score
Description copied from interface:RegretKScoringFunctionComputes a score for a job based on its k-best insertion alternatives. Higher scores indicate higher urgency to insert the job now.- Specified by:
scorein interfaceRegretKScoringFunction- Parameters:
alternatives- the k-best insertion alternatives for the jobjob- the job being scored- Returns:
- the regret score (higher = more urgent to insert)
-
getLegacyScoringFunction
-