Package net.sf.tweety.math.opt.solver
Class ApacheCommonsNonLinearConjugateGradientOptimizer
- java.lang.Object
 - 
- net.sf.tweety.math.opt.Solver
 - 
- net.sf.tweety.math.opt.solver.ApacheCommonsNonLinearConjugateGradientOptimizer
 
 
 
- 
public class ApacheCommonsNonLinearConjugateGradientOptimizer extends Solver
This class is a wrapper for the Apache Commons Math3 Non-Linear Conjugate Gradient Optimizer (https://commons.apache.org/proper/commons-math/).
NOTE: This solver does not allow any constraints, box constraints of variables are ignored!- Author:
 - Matthias Thimm
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ApacheCommonsNonLinearConjugateGradientOptimizer(int maxEval, double precision)Creates a new solver. 
- 
Method Summary
Modifier and Type Method Description static booleanisInstalled()java.util.Map<Variable,Term>solve(ConstraintSatisfactionProblem problem)Computes a solution to the given constraint satisfaction or optimization problem, i.e.- 
Methods inherited from class net.sf.tweety.math.opt.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver 
 - 
 
 - 
 
- 
- 
Method Detail
- 
solve
public java.util.Map<Variable,Term> solve(ConstraintSatisfactionProblem problem) throws GeneralMathException
Description copied from class:SolverComputes a solution to the given constraint satisfaction or optimization problem, i.e. a mapping from variables of the problem to terms.- Specified by:
 solvein classSolver- Parameters:
 problem- the actual problem- Returns:
 - a mapping from variables of the problem to terms.
 - Throws:
 GeneralMathException- if something went wrong.
 
- 
isInstalled
public static boolean isInstalled() throws java.lang.UnsupportedOperationException- Throws:
 java.lang.UnsupportedOperationException
 
 - 
 
 -