Class QPbySOCPMinimizer.Solution
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.convex.sdp.socp.qp.solver.socp.QPbySOCPMinimizer.Solution
-
- All Implemented Interfaces:
IterativeMethod<QPSolution>
,IterativeSolution<QPSolution>
,MinimizationSolution<QPSolution>
- Enclosing class:
- QPbySOCPMinimizer
public class QPbySOCPMinimizer.Solution extends Object implements IterativeSolution<QPSolution>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QPSolution
minimizer()
Get the minimizer (solution) to the minimization problem.double
minimum()
Get the (approximate) minimum found.QPSolution
search(QPSolution... initials)
Search for a solution that optimizes the objective function from the given starting points.void
setInitials(QPSolution... initials)
Supply the starting points for the search.Object
step()
Do the next iteration.
-
-
-
Method Detail
-
minimum
public double minimum()
Description copied from interface:MinimizationSolution
Get the (approximate) minimum found.- Specified by:
minimum
in interfaceMinimizationSolution<QPSolution>
- Returns:
- the (approximate) minimum found
-
minimizer
public QPSolution minimizer()
Description copied from interface:MinimizationSolution
Get the minimizer (solution) to the minimization problem.- Specified by:
minimizer
in interfaceMinimizationSolution<QPSolution>
- Returns:
- the minimizer
-
setInitials
public void setInitials(QPSolution... initials)
Description copied from interface:IterativeMethod
Supply the starting points for the search. This can also initialize the state of the algorithm for a new search.- Specified by:
setInitials
in interfaceIterativeMethod<QPSolution>
- Parameters:
initials
- the initial guesses
-
step
public Object step() throws Exception
Description copied from interface:IterativeMethod
Do the next iteration.- Specified by:
step
in interfaceIterativeMethod<QPSolution>
- Returns:
- the information about this step
- Throws:
Exception
- when an error occurs during the search
-
search
public QPSolution search(QPSolution... initials) throws Exception
Description copied from interface:IterativeMethod
Search for a solution that optimizes the objective function from the given starting points. This method typically calls first#setInitials(S...)
and then iterativelyIterativeMethod.step()
. It implements a default convergence criterion.- Specified by:
search
in interfaceIterativeMethod<QPSolution>
- Parameters:
initials
- the initial guesses- Returns:
- an (approximate) optimizer
- Throws:
Exception
- when an error occurs during the search
-
-