Package com.hexaly.optimizer
Class HxSurrogateParameters
java.lang.Object
com.hexaly.optimizer.HxSurrogateParameters
Parameters specific to the surrogate modeling feature. Surrogate parameters can
be used to query and set the evaluation budget and the evaluation points of the
associated external function.
- Since:
- 9.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates an evaluation point for the external function.booleanintReturns the maximum number of evaluations.getEvaluationPoint(int pos) Returns the evaluation point at the given position.intReturns the number of evaluation points.inthashCode()voidsetEvaluationLimit(int evaluationLimit) Sets the maximum number of evaluations.
-
Method Details
-
getEvaluationLimit
public int getEvaluationLimit()Returns the maximum number of evaluations. The default number of evaluations is set to the largest positive integer on 32 bits, that is 2^32-1 = 2,147,483,647 > 10^9.- Returns:
- The maximum number of calls to the external function.
-
setEvaluationLimit
public void setEvaluationLimit(int evaluationLimit) Sets the maximum number of evaluations. The default number of evaluations is set to the largest positive integer on 32 bits, that is 2^32-1 = 2,147,483,647 > 10^9. Only allowed in statesHxState.ModelingorHxState.Stopped.- Parameters:
evaluationLimit- The maximum number of calls to the external function.
-
createEvaluationPoint
Creates an evaluation point for the external function. It consists of a list of values corresponding to the function's arguments and return value. Evaluation points are used to specify known points for a function in advance. It can be useful to warm-start the optimizer when the function is particularly expensive to evaluate, or if you already have a good estimate of the optimal point. Only allowed in statesHxState.ModelingorHxState.Stopped.- Returns:
- Evaluation point.
- See Also:
-
getNbEvaluationPoints
public int getNbEvaluationPoints()Returns the number of evaluation points.- Returns:
- The number of evaluation points.
-
getEvaluationPoint
Returns the evaluation point at the given position.- Parameters:
pos- Position of the evaluation point.- Returns:
- Evaluation point at the given position.
- See Also:
-
hashCode
public int hashCode() -
equals
-