Class OptimisedPortfolio.Optimiser
- java.lang.Object
-
- org.ojalgo.data.domain.finance.portfolio.OptimisedPortfolio.Optimiser
-
- Enclosing class:
- OptimisedPortfolio
public final class OptimisedPortfolio.Optimiser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Optimiser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptimisedPortfolio.Optimiser
debug(boolean debug)
Will turn on debug logging for the optimisation solver.OptimisedPortfolio.Optimiser
feasibility(int scale)
Optimisation.State
getState()
You have to call some method that will trigger the calculation (any method that requires the calculation results) before you check the optimisation state.OptimisedPortfolio.Optimiser
time(CalendarDateDuration max)
OptimisedPortfolio.Optimiser
validate(boolean validate)
Will validate the generated optimisation problem and throws an excption if it's not ok.
-
-
-
Method Detail
-
debug
public OptimisedPortfolio.Optimiser debug(boolean debug)
Will turn on debug logging for the optimisation solver.
-
feasibility
public OptimisedPortfolio.Optimiser feasibility(int scale)
-
getState
public Optimisation.State getState()
You have to call some method that will trigger the calculation (any method that requires the calculation results) before you check the optimisation state. Otherwise you'll simply get State.UNEXPLORED.
-
time
public OptimisedPortfolio.Optimiser time(CalendarDateDuration max)
- Parameters:
max
- The maximum amount of time for the optimisation solver
-
validate
public OptimisedPortfolio.Optimiser validate(boolean validate)
Will validate the generated optimisation problem and throws an excption if it's not ok. This should typically not be enabled in a production environment.
-
-