Interface Solver
- All Known Implementing Classes:
ExhaustiveSolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Searches the portfolios a
SolveProblem allows and returns the trade-off frontier and the
recommended option. A solver must be deterministic: the same problem gives the same solution,
with ties broken by MetroPortfolio.key().-
Method Summary
-
Method Details
-
solve
- Parameters:
problem- the candidates, objectives, constraints, weights and size limits- Returns:
- the solution; never
null, andDesignSolution.isFeasible()is false when nothing satisfies the constraints
-