public class ApacheCommonsCMAESOptimizer extends Solver
| Constructor and Description |
|---|
ApacheCommonsCMAESOptimizer(int populationSize,
int maxIterations,
double stopFitness,
boolean isActiveCMA,
int diagonalOnly,
int checkFeasableCount,
double precision)
Parameters from org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer:
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInstalled() |
Map<Variable,Term> |
solve(ConstraintSatisfactionProblem problem)
Computes a solution to the given constraint satisfaction or optimization problem, i.e.
|
Map<Variable,Term> |
solve(Term t,
int optimization_type)
Returns the variable assignment that maximizes/minimizes the given term
(which only contains variables with defined upper and lower bounds).
|
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolverpublic ApacheCommonsCMAESOptimizer(int populationSize,
int maxIterations,
double stopFitness,
boolean isActiveCMA,
int diagonalOnly,
int checkFeasableCount,
double precision)
maxIterations - Maximal number of iterations.stopFitness - Whether to stop if objective function value is smaller than stopFitness.isActiveCMA - Chooses the covariance matrix update method.diagonalOnly - Number of initial iterations, where the covariance matrix remains diagonal.checkFeasableCount - Determines how often new random objective variables are generated in case they are out of bounds.precision - the precision of the optimizationpublic Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Solversolve in class Solverproblem - the actual problemGeneralMathException - if something went wrong.public Map<Variable,Term> solve(Term t, int optimization_type) throws GeneralMathException
t - the term to be evaluatedoptimization_objective - one of OptimizationProblem.MAXIMIZE, OptimizationProblem.MINIMIZEGeneralMathExceptionpublic static boolean isInstalled()
throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2018. All rights reserved.