Package com.opttek.optquest.heatmap
Class KrigSamplingGenerator
java.lang.Object
com.opttek.optquest.SolutionGenerator
com.opttek.optquest.heatmap.KrigSamplingGenerator
public class KrigSamplingGenerator
extends com.opttek.optquest.SolutionGenerator
This is the simplest version of using Kriging to generate simulation
locations. It assumes that you're mapping a lat/lon pair and the locations
are chosen in the areas that have the maximum interpolated variance. Note:
this will get very slow, there's a hidden O(N^2) algorithm here - as we add
more points the interpolation becomes slower. For the use cases we have, it's
ok. We have 7 hours to pick a point, so I'm not worried But we still should
look at restructuring this to not redo a lot of computation that we don't
have to do.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluateComplete
(com.opttek.optquest.Solution solution) Called from the EvaluateionHeatmapManager when the user has called COptQuestOptimization.EvaluateComplete() When this method is called, the replication values are in the solution.void
evaluateSolution
(com.opttek.optquest.Solution solution) void
void
Called from the heatmap evaluation manager (EvaluationHeatmapManager or EvaluationSerialHeatmapManager) on the first call to getNewSolution().void
rejectSolution
(com.opttek.optquest.Solution solution) Called from the EvaluateionHeatmapManager when the user has called COptQuestOptimization.EvaluateComplete() and the solution has been rejected.Methods inherited from class com.opttek.optquest.SolutionGenerator
addUnevaluatedSolution, setData
-
Method Details
-
generateSolutions
public void generateSolutions() throws com.opttek.optquest.COptQuestException- Specified by:
generateSolutions
in classcom.opttek.optquest.SolutionGenerator
- Throws:
com.opttek.optquest.COptQuestException
-
evaluateComplete
public void evaluateComplete(com.opttek.optquest.Solution solution) Called from the EvaluateionHeatmapManager when the user has called COptQuestOptimization.EvaluateComplete() When this method is called, the replication values are in the solution. T Update the COptQuestKrigEvaluator with the results after evaluation.- Parameters:
solution
-
-
rejectSolution
public void rejectSolution(com.opttek.optquest.Solution solution) Called from the EvaluateionHeatmapManager when the user has called COptQuestOptimization.EvaluateComplete() and the solution has been rejected.- Parameters:
solution
-
-
evaluateSolution
public void evaluateSolution(com.opttek.optquest.Solution solution) throws com.opttek.optquest.COptQuestException - Throws:
com.opttek.optquest.COptQuestException
-
initializeSuggestedSolutions
public void initializeSuggestedSolutions()Called from the heatmap evaluation manager (EvaluationHeatmapManager or EvaluationSerialHeatmapManager) on the first call to getNewSolution(). Iterate over the solutions in the suggested solutions queue and call
-