Uses of Class
org.ojalgo.type.context.NumberContext
Packages that use NumberContext
Package
Description
Classes in this package relate to modelling of financial investment portfolios, and Modern Portfolio
Theory.
This package loosely corresponds to (extends) the packages: java.io.*, java.nio.*, java.net.* and sun.net.*
-
Uses of NumberContext in org.ojalgo.array
Fields in org.ojalgo.array declared as NumberContext -
Uses of NumberContext in org.ojalgo.data.domain.finance.portfolio
Fields in org.ojalgo.data.domain.finance.portfolio declared as NumberContextModifier and TypeFieldDescriptionprivate final NumberContext
NormalisedPortfolio.myWeightsContext
private static final NumberContext
MarkowitzModel.TARGET_CONTEXT
Methods in org.ojalgo.data.domain.finance.portfolio with parameters of type NumberContextModifier and TypeMethodDescriptionfinal FinancePortfolio
FinancePortfolio.normalise
(NumberContext weightsContext) Normalised weights PortfolioConstructors in org.ojalgo.data.domain.finance.portfolio with parameters of type NumberContextModifierConstructorDescription(package private)
NormalisedPortfolio
(FinancePortfolio basePortfolio, NumberContext weightsContext) -
Uses of NumberContext in org.ojalgo.function
Methods in org.ojalgo.function with parameters of type NumberContextModifier and TypeMethodDescriptionBigFunction.enforce
(NumberContext context) ComplexFunction.enforce
(NumberContext context) abstract UnaryFunction
<N> FunctionSet.enforce
(NumberContext context) PrimitiveFunction.enforce
(NumberContext context) QuadrupleFunction.enforce
(NumberContext context) QuaternionFunction.enforce
(NumberContext context) RationalFunction.enforce
(NumberContext context) -
Uses of NumberContext in org.ojalgo.function.polynomial
Fields in org.ojalgo.function.polynomial declared as NumberContextMethods in org.ojalgo.function.polynomial with parameters of type NumberContextModifier and TypeMethodDescriptionint
AbstractPolynomial.degree
(NumberContext accuracy) int
PolynomialFunction.degree
(NumberContext accuracy) The largest exponent/power of the non-zero (to the given accuracy) coefficients. -
Uses of NumberContext in org.ojalgo.function.series
Fields in org.ojalgo.function.series declared as NumberContext -
Uses of NumberContext in org.ojalgo.matrix
Fields in org.ojalgo.matrix declared as NumberContextMethods in org.ojalgo.matrix with parameters of type NumberContextModifier and TypeMethodDescriptionBasicMatrix.enforce
(NumberContext context) default boolean
Matrix2D.equals
(Access2D<?> another, NumberContext accuracy) -
Uses of NumberContext in org.ojalgo.matrix.decomposition
Methods in org.ojalgo.matrix.decomposition with parameters of type NumberContextModifier and TypeMethodDescriptionstatic <N extends Comparable<N>>
booleanBidiagonal.equals
(MatrixStore<N> matrix, Bidiagonal<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanCholesky.equals
(MatrixStore<N> matrix, Cholesky<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanEigenvalue.equals
(MatrixStore<N> matrix, Eigenvalue<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanHessenberg.equals
(MatrixStore<N> matrix, Hessenberg<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanLDL.equals
(MatrixStore<N> matrix, LDL<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanLU.equals
(MatrixStore<N> matrix, LU<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanQR.equals
(MatrixStore<N> matrix, QR<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanSingularValue.equals
(MatrixStore<N> matrix, SingularValue<N> decomposition, NumberContext context) static <N extends Comparable<N>>
booleanTridiagonal.equals
(MatrixStore<N> matrix, Tridiagonal<N> decomposition, NumberContext context) -
Uses of NumberContext in org.ojalgo.matrix.store
Methods in org.ojalgo.matrix.store with parameters of type NumberContextModifier and TypeMethodDescriptiondefault boolean
MatrixStore.equals
(MatrixStore<N> other, NumberContext context) -
Uses of NumberContext in org.ojalgo.matrix.task.iterative
Fields in org.ojalgo.matrix.task.iterative declared as NumberContextModifier and TypeFieldDescription(package private) static final NumberContext
IterativeSolverTask.DEFAULT
private NumberContext
IterativeSolverTask.myAccuracyContext
Methods in org.ojalgo.matrix.task.iterative that return NumberContextModifier and TypeMethodDescriptionprotected final NumberContext
IterativeSolverTask.getAccuracyContext()
Methods in org.ojalgo.matrix.task.iterative with parameters of type NumberContextModifier and TypeMethodDescriptionIterativeSolverTask.Configurator.accuracy
(NumberContext accuray) Accuracy/termination contextprotected void
IterativeSolverTask.setAccuracyContext
(NumberContext accuracyContext) protected void
MutableSolver.setAccuracyContext
(NumberContext accuracyContext) -
Uses of NumberContext in org.ojalgo.netio
Fields in org.ojalgo.netio declared as NumberContextModifier and TypeFieldDescription(package private) static final NumberContext
BasicLogger.PrivateDetails.MATRIX_ELEMENT_CONTEXT
Methods in org.ojalgo.netio with parameters of type NumberContextModifier and TypeMethodDescriptionstatic void
BasicLogger.debugMatrix
(String message, Access2D<?> matrix, NumberContext context) static void
BasicLogger.errorMatrix
(String message, Access2D<?> matrix, NumberContext context) (package private) static void
BasicLogger.NotNull.printmtrx
(BasicLogger appender, String message, Access2D<?> matrix, NumberContext context) default void
BasicLogger.printmtrx
(String message, Access2D<?> matrix, NumberContext context) (package private) static void
BasicLogger.PrivateDetails.printmtrx
(BasicLogger appender, String message, Access2D<?> matrix, NumberContext context) private static void
BasicLogger.PrivateDetails.printmtrx
(BasicLogger appender, Access2D<?> matrix, NumberContext context, boolean plain) private static String
BasicLogger.PrivateDetails.toString
(Comparable<?> number, NumberContext context, boolean plain) -
Uses of NumberContext in org.ojalgo.optimisation
Fields in org.ojalgo.optimisation declared as NumberContextModifier and TypeFieldDescriptionprivate static final NumberContext
ExpressionsBasedModel.Validator.ACCURACY
Optimisation.Options.feasibility
Used to determine/validate feasibility.private static final NumberContext
Presolvers.LEVEL
Optimisation.Options.print
For display only!Object.toString()
and log message formatting.(package private) static final NumberContext
ModelEntity.PRINT
Optimisation.Options.solution
Describes the (required/sufficient) accuracy of the solution.Methods in org.ojalgo.optimisation with parameters of type NumberContextModifier and TypeMethodDescriptionprotected void
ModelEntity.appendLeftPart
(StringBuilder builder, NumberContext display) protected void
Expression.appendMiddlePart
(StringBuilder builder, Access1D<BigDecimal> solution, NumberContext display) protected void
ModelEntity.appendMiddlePart
(StringBuilder builder, NumberContext display) protected void
Variable.appendMiddlePart
(StringBuilder builder, NumberContext display) protected void
ModelEntity.appendRightPart
(StringBuilder builder, NumberContext display) (package private) void
Expression.appendToString
(StringBuilder builder, Access1D<BigDecimal> solution, NumberContext display) (package private) final void
ModelEntity.appendToString
(StringBuilder builder, NumberContext display) static void
Presolvers.checkFeasibility
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision, boolean relaxed) (package private) static boolean
Presolvers.doCase0
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) This constraint expression has 0 remaining free variable.(package private) static boolean
Presolvers.doCase1
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) This constraint expression has 1 remaining free variable.(package private) static boolean
Presolvers.doCase2
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) Checks if bounds on either of the variables (together with the expressions's bounds) implies tighter bounds on the other variable.(package private) static boolean
Presolvers.doCaseN
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) Checks the sign of the limits and the sign of the expression parameters to deduce variables that in fact can only be zero.private static boolean
ExpressionsBasedModel.Validator.doValidate
(ExpressionsBasedModel model, Access1D<BigDecimal> solution, NumberContext accuracy, BasicLogger logger, BiConsumer<ExpressionsBasedModel, Access1D<BigDecimal>> handler) void
Expression.enforce
(NumberContext enforcer) (package private) final BigDecimal
ModelEntity.getCompensatedLowerLimit
(BigDecimal compensation, NumberContext precision) (package private) final BigDecimal
ModelEntity.getCompensatedUpperLimit
(BigDecimal compensation, NumberContext precision) Optimisation.Result.getSolution
(NumberContext precision) Will round the solution to the given precisionExpressionsBasedModel.getVariableValues
(NumberContext validationContext) Null variable values are replaced with 0.0.abstract boolean
ExpressionsBasedModel.Presolver.simplify
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) boolean
SpecialOrderedSet.simplify
(Expression expression, Set<Structure1D.IntIndex> remaining, BigDecimal lower, BigDecimal upper, NumberContext precision) The program logic here does not assume variables to be binary or even integerfinal BigDecimal
ModelEntity.toUnadjusted
(double adjusted, NumberContext context) The inverse ofModelEntity.toAdjusted(BigDecimal)
.boolean
ExpressionsBasedModel.validate
(Access1D<BigDecimal> solution, NumberContext context) boolean
ExpressionsBasedModel.validate
(Access1D<BigDecimal> solution, NumberContext context, BasicLogger appender) boolean
ExpressionsBasedModel.validate
(NumberContext context) boolean
ExpressionsBasedModel.validate
(NumberContext context, BasicLogger appender) boolean
ExpressionsBasedModel.Validator.validate
(ExpressionsBasedModel modifiedModel, NumberContext accuracy, BasicLogger logger) Validate the known solution against a (modified) model - perhaps modified during pre-solve or with cuts generation in theIntegerSolver
.boolean
ExpressionsBasedModel.Validator.validate
(Access1D<?> solverSolution, NumberContext accuracy, BasicLogger logger) Validate an (intermediate) solver solution against the original model.protected boolean
ModelEntity.validate
(BigDecimal value, NumberContext context, BasicLogger appender) protected boolean
Variable.validate
(BigDecimal value, NumberContext context, BasicLogger appender) (package private) boolean
Variable.validate
(BigDecimal value, NumberContext context, BasicLogger appender, boolean relaxed) -
Uses of NumberContext in org.ojalgo.optimisation.convex
Fields in org.ojalgo.optimisation.convex declared as NumberContextModifier and TypeFieldDescriptionprivate static final NumberContext
ActiveSetSolver.ACC
private static final NumberContext
ActiveSetSolver.FEASIBILITY
private static final NumberContext
ActiveSetSolver.LAGRANGE
private NumberContext
ConvexSolver.Configuration.myIterative
private static final NumberContext
ActiveSetSolver.SLACK
private static final NumberContext
ActiveSetSolver.SOLUTION
Methods in org.ojalgo.optimisation.convex that return NumberContextMethods in org.ojalgo.optimisation.convex with parameters of type NumberContextModifier and TypeMethodDescriptionConvexSolver.Configuration.iterative
(NumberContext accuracy) The accuracy of the iterative Schur complement solver used inIterativeASS
. -
Uses of NumberContext in org.ojalgo.optimisation.integer
Fields in org.ojalgo.optimisation.integer declared as NumberContextModifier and TypeFieldDescriptionprivate static final NumberContext
NodeSolver.COEFFICIENT
private static final NumberContext
NodeSolver.DYNANISM
private static final NumberContext
NodeKey.FEASIBILITY
Used for one thing only - to validate (log problems with) node solver results.private static final NumberContext
NodeSolver.LIMIT
private final NumberContext
IntegerStrategy.ConfigurableStrategy.myGapTolerance
private final NumberContext
IntegerStrategy.ConfigurableStrategy.myIntegralityTolerance
private static final NumberContext
NodeSolver.PARAMETERS
private static final NumberContext
NodeSolver.PRECISION
private static final NumberContext
ModelStrategy.DefaultStrategy.ROUGHLY
private static final NumberContext
NodeSolver.SCALE
Methods in org.ojalgo.optimisation.integer that return NumberContextModifier and TypeMethodDescriptionIntegerStrategy.ConfigurableStrategy.getGapTolerance()
IntegerStrategy.getGapTolerance()
The MIP gap is the difference between the best integer solution found so far and a node's relaxed non-integer solution.ModelStrategy.getGapTolerance()
IntegerStrategy.ConfigurableStrategy.getIntegralityTolerance()
IntegerStrategy.getIntegralityTolerance()
Used to determine if a variable value is integer or notModelStrategy.getIntegralityTolerance()
Methods in org.ojalgo.optimisation.integer with parameters of type NumberContextModifier and TypeMethodDescriptionIntegerStrategy.ConfigurableStrategy.withGapTolerance
(NumberContext newTolerance) Change the MIP gapConstructors in org.ojalgo.optimisation.integer with parameters of type NumberContextModifierConstructorDescription(package private)
ConfigurableStrategy
(IntSupplier parallelism, Comparator<NodeKey>[] definitions, NumberContext integrality, NumberContext gap, BiFunction<ExpressionsBasedModel, IntegerStrategy, ModelStrategy> factory, IntegerStrategy.GMICutConfiguration configuration) -
Uses of NumberContext in org.ojalgo.optimisation.linear
Fields in org.ojalgo.optimisation.linear declared as NumberContextModifier and TypeFieldDescriptionprivate static final NumberContext
SimplexTableauSolver.ACC
private static final NumberContext
TableauCutGenerator.ACCURACY
private static final NumberContext
SimplexTableauSolver.DEGENERATE
private static final NumberContext
SimplexTableauSolver.PHASE1
private static final NumberContext
SimplexSolver.PIVOT
private static final NumberContext
SimplexTableauSolver.PIVOT
private static final NumberContext
SimplexSolver.RATIO
private static final NumberContext
SimplexTableauSolver.RATIO
private static final NumberContext
SimplexTableauSolver.WEIGHT
Methods in org.ojalgo.optimisation.linear with parameters of type NumberContextModifier and TypeMethodDescription(package private) final Collection
<Equation> SimplexStore.generateCutCandidates
(boolean[] integer, NumberContext accuracy, double fractionality, double[] shift) (package private) final Collection
<Equation> SimplexTableau.generateCutCandidates
(boolean[] integer, NumberContext accuracy, double fractionality) Simplified version ofSimplexStore.generateCutCandidates(boolean[], NumberContext, double, double[])
. -
Uses of NumberContext in org.ojalgo.scalar
Fields in org.ojalgo.scalar declared as NumberContextModifier and TypeFieldDescription(package private) static final NumberContext
BigScalar.CONTEXT
(package private) static final NumberContext
PrimitiveScalar.CONTEXT
private final NumberContext
ExactDecimal.Descriptor.myContext
(package private) static final NumberContext
Quadruple.NUMBER_CONTEXT
Methods in org.ojalgo.scalar that return NumberContextMethods in org.ojalgo.scalar with parameters of type NumberContextModifier and TypeMethodDescriptionBigScalar.enforce
(NumberContext context) ComplexNumber.enforce
(NumberContext context) Will call enforce(double) on the real and imaginary parts separately.final S
ExactDecimal.enforce
(NumberContext context) PrimitiveScalar.enforce
(NumberContext context) Quadruple.enforce
(NumberContext context) Quaternion.enforce
(NumberContext context) RationalNumber.enforce
(NumberContext context) protected static long
ExactDecimal.extractUnscaledValue
(BigDecimal decimal, NumberContext cntxt) private final BigDecimal
ExactDecimal.toBigDecimal
(NumberContext context) default String
Scalar.toPlainString
(NumberContext context) BigScalar.toString
(NumberContext context) ComplexNumber.toString
(NumberContext context) final String
ExactDecimal.toString
(NumberContext context) PrimitiveScalar.toString
(NumberContext context) Quadruple.toString
(NumberContext context) Quaternion.toString
(NumberContext context) RationalNumber.toString
(NumberContext context) Scalar.toString
(NumberContext context) -
Uses of NumberContext in org.ojalgo.series
Fields in org.ojalgo.series declared as NumberContextConstructors in org.ojalgo.series with parameters of type NumberContext -
Uses of NumberContext in org.ojalgo.structure
Methods in org.ojalgo.structure with parameters of type NumberContextModifier and TypeMethodDescriptionstatic boolean
Access1D.equals
(Access1D<?> accessA, Access1D<?> accessB, NumberContext accuracy) Tests if the two data structures are numerically equal to the given accuracy.static boolean
Access2D.equals
(Access2D<?> accessA, Access2D<?> accessB, NumberContext accuracy) static boolean
AccessAnyD.equals
(AccessAnyD<?> accessA, AccessAnyD<?> accessB, NumberContext accuracy) -
Uses of NumberContext in org.ojalgo.type
Fields in org.ojalgo.type declared as NumberContextModifier and TypeFieldDescriptionstatic final NumberContext
StandardType.AMOUNT
Precision: 16 Scale: 2 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.CURRENCY Fits within the Sybase (and MS SQL Server) money type which is (19,4).static final NumberContext
StandardType.DECIMAL_032
Precision: 7 Scale: 3 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.DECIMAL_064
Precision: 16 Scale: 8 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.DECIMAL_128
Precision: 34 Scale: 17 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.MATH_032
Precision: 7 Scale: 7 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.MATH_064
Precision: 16 Scale: 16 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.MATH_128
Precision: 34 Scale: 34 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic final NumberContext
StandardType.PERCENT
Precision: 7 Scale: 4 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.PERCENTstatic final NumberContext
StandardType.PRICE
Price or conversion rate (foreign exchange rate).static final NumberContext
StandardType.QUANTITY
Precision: 16 Scale: 6 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERAL Typically you have StandardType.QUANTITY x StandardType.PRICE = StandardType.AMOUNT, an alternative is StandardType.QUANTITY x StandardType.PRICE = StandardType.QUANTITY.Methods in org.ojalgo.type that return NumberContextModifier and TypeMethodDescriptionstatic NumberContext
static NumberContext
StandardType.decimal032()
static NumberContext
StandardType.decimal064()
static NumberContext
StandardType.integer()
static NumberContext
static NumberContext
StandardType.wholePercentage()
Methods in org.ojalgo.type with parameters of type NumberContextModifier and TypeMethodDescriptionstatic BigDecimal
TypeUtils.toBigDecimal
(Comparable<?> number, NumberContext context) -
Uses of NumberContext in org.ojalgo.type.context
Methods in org.ojalgo.type.context that return NumberContextModifier and TypeMethodDescriptionstatic NumberContext
NumberContext.getCurrency
(Locale locale) static NumberContext
NumberContext.getInteger
(Locale locale) static NumberContext
NumberContext.getPercent
(int scale, Locale locale) static NumberContext
NumberContext.getPercent
(Locale locale) static NumberContext
NumberContext.of
(int precisionAndScale) static NumberContext
NumberContext.of
(int precision, int scale) static NumberContext
NumberContext.ofMath
(MathContext math) static NumberContext
NumberContext.ofPrecision
(int precision) static NumberContext
NumberContext.ofScale
(int scale) NumberContext.withDecrementedPrecision()
NumberContext.withDecrementedPrecision
(int subtrahend) NumberContext.withDecrementedScale()
NumberContext.withDecrementedScale
(int subtrahend) NumberContext.withDoubledPrecision()
NumberContext.withDoubledScale()
NumberContext.withFormat
(NumberStyle style, Locale locale) NumberContext.withHalvedPrecision()
NumberContext.withHalvedScale()
NumberContext.withIncrementedPrecision()
NumberContext.withIncrementedPrecision
(int addend) NumberContext.withIncrementedScale()
NumberContext.withIncrementedScale
(int addend) NumberContext.withMath
(MathContext math) NumberContext.withMode
(RoundingMode mode) NumberContext.withoutPrecision()
NumberContext.withoutScale()
NumberContext.withPrecision
(int precision) NumberContext.withScale
(int scale) Methods in org.ojalgo.type.context with parameters of type NumberContext