Package net.sf.tweety.math.opt.solver
Class BfgsSolver
- java.lang.Object
 - 
- net.sf.tweety.math.opt.Solver
 - 
- net.sf.tweety.math.opt.solver.BfgsSolver
 
 
 
- 
public class BfgsSolver extends Solver
This class implements the BFGS algorithm for solving unconstrained optimization problems.- Author:
 - Matthias Thimm
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.private static doublePRECISIONprivate java.util.Map<Variable,Term>startingPointThe starting point for the solver. 
- 
Constructor Summary
Constructors Constructor Description BfgsSolver(java.util.Map<Variable,Term> startingPoint) 
- 
Method Summary
Modifier and Type Method Description private Matrixevaluate(Matrix gradient, Matrix currentGuess, java.util.List<Variable> variables)static booleanisInstalled()private doublenextBestStep(Matrix currentGuess, Matrix searchDirection, Matrix gradient, java.util.List<Variable> variables)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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
log
private org.slf4j.Logger log
Logger. 
- 
PRECISION
private static final double PRECISION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
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.
 
- 
nextBestStep
private double nextBestStep(Matrix currentGuess, Matrix searchDirection, Matrix gradient, java.util.List<Variable> variables)
 
- 
evaluate
private Matrix evaluate(Matrix gradient, Matrix currentGuess, java.util.List<Variable> variables)
 
- 
isInstalled
public static boolean isInstalled() throws java.lang.UnsupportedOperationException- Throws:
 java.lang.UnsupportedOperationException
 
 - 
 
 -