Uses of Class
org.ojalgo.type.context.NumberContext
-
Packages that use NumberContext Package Description org.ojalgo.array org.ojalgo.data.domain.finance.portfolio Classes in this package relate to modelling of financial investment portfolios, and Modern Portfolio Theory.org.ojalgo.function org.ojalgo.function.polynomial org.ojalgo.function.series org.ojalgo.matrix org.ojalgo.matrix.decomposition org.ojalgo.matrix.store org.ojalgo.matrix.task.iterative org.ojalgo.netio This package loosely corresponds to (extends) the packages: java.io.*, java.nio.*, java.net.* and sun.net.*org.ojalgo.optimisation org.ojalgo.optimisation.convex org.ojalgo.optimisation.integer org.ojalgo.optimisation.linear org.ojalgo.scalar org.ojalgo.series org.ojalgo.structure org.ojalgo.type org.ojalgo.type.context -
-
Uses of NumberContext in org.ojalgo.array
Fields in org.ojalgo.array declared as NumberContext Modifier and Type Field Description private static NumberContext
SparseArray. MATH_CONTEXT
-
Uses of NumberContext in org.ojalgo.data.domain.finance.portfolio
Fields in org.ojalgo.data.domain.finance.portfolio declared as NumberContext Modifier and Type Field Description private NumberContext
NormalisedPortfolio. myWeightsContext
private static NumberContext
MarkowitzModel. TARGET_CONTEXT
Methods in org.ojalgo.data.domain.finance.portfolio with parameters of type NumberContext Modifier and Type Method Description FinancePortfolio
FinancePortfolio. normalise(NumberContext weightsContext)
Normalised weights PortfolioConstructors in org.ojalgo.data.domain.finance.portfolio with parameters of type NumberContext Constructor Description NormalisedPortfolio(FinancePortfolio basePortfolio, NumberContext weightsContext)
-
Uses of NumberContext in org.ojalgo.function
Methods in org.ojalgo.function with parameters of type NumberContext Modifier and Type Method Description BigFunction.Unary
BigFunction. enforce(NumberContext context)
ComplexFunction.Unary
ComplexFunction. enforce(NumberContext context)
abstract UnaryFunction<N>
FunctionSet. enforce(NumberContext context)
PrimitiveFunction.Unary
PrimitiveFunction. enforce(NumberContext context)
QuadrupleFunction.Unary
QuadrupleFunction. enforce(NumberContext context)
QuaternionFunction.Unary
QuaternionFunction. enforce(NumberContext context)
RationalFunction.Unary
RationalFunction. enforce(NumberContext context)
-
Uses of NumberContext in org.ojalgo.function.polynomial
Fields in org.ojalgo.function.polynomial declared as NumberContext Modifier and Type Field Description static NumberContext
AbstractPolynomial. DEGREE_ACCURACY
Methods in org.ojalgo.function.polynomial with parameters of type NumberContext Modifier and Type Method Description int
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 Modifier and Type Field Description private static NumberContext
FourierSeries. ACCURACY
-
Uses of NumberContext in org.ojalgo.matrix
Fields in org.ojalgo.matrix declared as NumberContext Modifier and Type Field Description private static NumberContext
BasicMatrix. EQUALS
Methods in org.ojalgo.matrix with parameters of type NumberContext Modifier and Type Method Description M
BasicMatrix. 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 NumberContext Modifier and Type Method Description static <N extends java.lang.Comparable<N>>
booleanBidiagonal. equals(MatrixStore<N> matrix, Bidiagonal<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanCholesky. equals(MatrixStore<N> matrix, Cholesky<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanEigenvalue. equals(MatrixStore<N> matrix, Eigenvalue<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanHessenberg. equals(MatrixStore<N> matrix, Hessenberg<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanLDL. equals(MatrixStore<N> matrix, LDL<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanLU. equals(MatrixStore<N> matrix, LU<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanQR. equals(MatrixStore<N> matrix, QR<N> decomposition, NumberContext context)
static <N extends java.lang.Comparable<N>>
booleanSingularValue. equals(MatrixStore<N> matrix, SingularValue<N> decomposition, NumberContext context)
static <N extends java.lang.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 NumberContext Modifier and Type Method Description default 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 NumberContext Modifier and Type Field Description (package private) static NumberContext
IterativeSolverTask. DEFAULT
private NumberContext
IterativeSolverTask. myAccuracyContext
Methods in org.ojalgo.matrix.task.iterative that return NumberContext Modifier and Type Method Description protected NumberContext
IterativeSolverTask. getAccuracyContext()
Methods in org.ojalgo.matrix.task.iterative with parameters of type NumberContext Modifier and Type Method Description IterativeSolverTask.Configurator
IterativeSolverTask.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 NumberContext Modifier and Type Field Description (package private) static NumberContext
BasicLogger.PrivateDetails. MATRIX_ELEMENT_CONTEXT
Methods in org.ojalgo.netio with parameters of type NumberContext Modifier and Type Method Description static void
BasicLogger. debugMatrix(java.lang.String message, Access2D<?> matrix, NumberContext context)
static void
BasicLogger. errorMatrix(java.lang.String message, Access2D<?> matrix, NumberContext context)
(package private) static void
BasicLogger.NotNull. printmtrx(BasicLogger appender, java.lang.String message, Access2D<?> matrix, NumberContext context)
default void
BasicLogger. printmtrx(java.lang.String message, Access2D<?> matrix, NumberContext context)
(package private) static void
BasicLogger.PrivateDetails. printmtrx(BasicLogger appender, java.lang.String message, Access2D<?> matrix, NumberContext context)
private static void
BasicLogger.PrivateDetails. printmtrx(BasicLogger appender, Access2D<?> matrix, NumberContext context, boolean plain)
private static java.lang.String
BasicLogger.PrivateDetails. toString(java.lang.Comparable<?> number, NumberContext context, boolean plain)
-
Uses of NumberContext in org.ojalgo.optimisation
Fields in org.ojalgo.optimisation declared as NumberContext Modifier and Type Field Description private static NumberContext
ExpressionsBasedModel.Validator. ACCURACY
NumberContext
Optimisation.Options. feasibility
Used to determine/validate feasibility.private static NumberContext
Presolvers. LEVEL
NumberContext
Optimisation.Options. print
For display only!Object.toString()
and log message formatting.(package private) static NumberContext
ModelEntity. PRINT
NumberContext
Optimisation.Options. solution
Describes the (required/sufficient) accuracy of the solution.Methods in org.ojalgo.optimisation with parameters of type NumberContext Modifier and Type Method Description protected void
ModelEntity. appendLeftPart(java.lang.StringBuilder builder, NumberContext display)
protected void
Expression. appendMiddlePart(java.lang.StringBuilder builder, Access1D<java.math.BigDecimal> solution, NumberContext display)
protected void
ModelEntity. appendMiddlePart(java.lang.StringBuilder builder, NumberContext display)
protected void
Variable. appendMiddlePart(java.lang.StringBuilder builder, NumberContext display)
protected void
ModelEntity. appendRightPart(java.lang.StringBuilder builder, NumberContext display)
(package private) void
Expression. appendToString(java.lang.StringBuilder builder, Access1D<java.math.BigDecimal> solution, NumberContext display)
(package private) void
ModelEntity. appendToString(java.lang.StringBuilder builder, NumberContext display)
static void
Presolvers. checkFeasibility(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.BigDecimal upper, NumberContext precision, boolean relaxed)
(package private) static boolean
Presolvers. doCase0(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.BigDecimal upper, NumberContext precision)
This constraint expression has 0 remaining free variable.(package private) static boolean
Presolvers. doCase1(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.BigDecimal upper, NumberContext precision)
This constraint expression has 1 remaining free variable.(package private) static boolean
Presolvers. doCase2(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.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, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.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<java.math.BigDecimal> solution, NumberContext accuracy, BasicLogger logger, java.util.function.BiConsumer<ExpressionsBasedModel,Access1D<java.math.BigDecimal>> handler)
void
Expression. enforce(NumberContext enforcer)
(package private) java.math.BigDecimal
ModelEntity. getCompensatedLowerLimit(java.math.BigDecimal compensation, NumberContext precision)
(package private) java.math.BigDecimal
ModelEntity. getCompensatedUpperLimit(java.math.BigDecimal compensation, NumberContext precision)
Optimisation.Result
Optimisation.Result. getSolution(NumberContext precision)
Will round the solution to the given precisionOptimisation.Result
ExpressionsBasedModel. getVariableValues(NumberContext validationContext)
Null variable values are replaced with 0.0.abstract boolean
ExpressionsBasedModel.Presolver. simplify(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.BigDecimal upper, NumberContext precision)
boolean
SpecialOrderedSet. simplify(Expression expression, java.util.Set<Structure1D.IntIndex> remaining, java.math.BigDecimal lower, java.math.BigDecimal upper, NumberContext precision)
The program logic here does not assume variables to be binary or even integerjava.math.BigDecimal
ModelEntity. toUnadjusted(double adjusted, NumberContext context)
The inverse ofModelEntity.toAdjusted(BigDecimal)
.boolean
ExpressionsBasedModel. validate(Access1D<java.math.BigDecimal> solution, NumberContext context)
boolean
ExpressionsBasedModel. validate(Access1D<java.math.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(java.math.BigDecimal value, NumberContext context, BasicLogger appender)
protected boolean
Variable. validate(java.math.BigDecimal value, NumberContext context, BasicLogger appender)
(package private) boolean
Variable. validate(java.math.BigDecimal value, NumberContext context, BasicLogger appender, boolean relaxed)
-
Uses of NumberContext in org.ojalgo.optimisation.convex
Fields in org.ojalgo.optimisation.convex declared as NumberContext Modifier and Type Field Description private static NumberContext
ActiveSetSolver. ACC
private static NumberContext
ActiveSetSolver. FEASIBILITY
private static NumberContext
ActiveSetSolver. LAGRANGE
private NumberContext
ConvexSolver.Configuration. myIterative
private static NumberContext
ActiveSetSolver. SLACK
private static NumberContext
ActiveSetSolver. SOLUTION
Methods in org.ojalgo.optimisation.convex that return NumberContext Modifier and Type Method Description NumberContext
ConvexSolver.Configuration. iterative()
Methods in org.ojalgo.optimisation.convex with parameters of type NumberContext Modifier and Type Method Description ConvexSolver.Configuration
ConvexSolver.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 NumberContext Modifier and Type Field Description private static NumberContext
NodeSolver. COEFFICIENT
private static NumberContext
NodeSolver. DYNANISM
private static NumberContext
NodeKey. FEASIBILITY
Used for one thing only - to validate (log problems with) node solver results.private static NumberContext
NodeSolver. LIMIT
private NumberContext
IntegerStrategy.ConfigurableStrategy. myGapTolerance
private NumberContext
IntegerStrategy.ConfigurableStrategy. myIntegralityTolerance
private static NumberContext
NodeSolver. PARAMETERS
private static NumberContext
NodeSolver. PRECISION
private static NumberContext
ModelStrategy.DefaultStrategy. ROUGHLY
private static NumberContext
NodeSolver. SCALE
Methods in org.ojalgo.optimisation.integer that return NumberContext Modifier and Type Method Description NumberContext
IntegerStrategy.ConfigurableStrategy. getGapTolerance()
NumberContext
IntegerStrategy. getGapTolerance()
The MIP gap is the difference between the best integer solution found so far and a node's relaxed non-integer solution.NumberContext
ModelStrategy. getGapTolerance()
NumberContext
IntegerStrategy.ConfigurableStrategy. getIntegralityTolerance()
NumberContext
IntegerStrategy. getIntegralityTolerance()
Used to determine if a variable value is integer or notNumberContext
ModelStrategy. getIntegralityTolerance()
Methods in org.ojalgo.optimisation.integer with parameters of type NumberContext Modifier and Type Method Description IntegerStrategy.ConfigurableStrategy
IntegerStrategy.ConfigurableStrategy. withGapTolerance(NumberContext newTolerance)
Change the MIP gapConstructors in org.ojalgo.optimisation.integer with parameters of type NumberContext Constructor Description ConfigurableStrategy(java.util.function.IntSupplier parallelism, java.util.Comparator<NodeKey>[] definitions, NumberContext integrality, NumberContext gap, java.util.function.BiFunction<ExpressionsBasedModel,IntegerStrategy,ModelStrategy> factory, IntegerStrategy.GMICutConfiguration configuration)
-
Uses of NumberContext in org.ojalgo.optimisation.linear
Fields in org.ojalgo.optimisation.linear declared as NumberContext Modifier and Type Field Description private static NumberContext
SimplexTableauSolver. ACC
private static NumberContext
TableauCutGenerator. ACCURACY
private static NumberContext
SimplexTableauSolver. DEGENERATE
private static NumberContext
SimplexTableauSolver. PHASE1
private static NumberContext
SimplexSolver. PIVOT
private static NumberContext
SimplexTableauSolver. PIVOT
private static NumberContext
SimplexSolver. RATIO
private static NumberContext
SimplexTableauSolver. RATIO
private static NumberContext
SimplexTableauSolver. WEIGHT
Methods in org.ojalgo.optimisation.linear with parameters of type NumberContext Modifier and Type Method Description (package private) java.util.Collection<Equation>
SimplexStore. generateCutCandidates(boolean[] integer, NumberContext accuracy, double fractionality, double[] shift)
(package private) java.util.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 NumberContext Modifier and Type Field Description (package private) static NumberContext
BigScalar. CONTEXT
(package private) static NumberContext
PrimitiveScalar. CONTEXT
private NumberContext
ExactDecimal.Descriptor. myContext
(package private) static NumberContext
Quadruple. NUMBER_CONTEXT
Methods in org.ojalgo.scalar that return NumberContext Modifier and Type Method Description NumberContext
ExactDecimal.Descriptor. context()
Methods in org.ojalgo.scalar with parameters of type NumberContext Modifier and Type Method Description BigScalar
BigScalar. enforce(NumberContext context)
ComplexNumber
ComplexNumber. enforce(NumberContext context)
Will call enforce(double) on the real and imaginary parts separately.S
ExactDecimal. enforce(NumberContext context)
PrimitiveScalar
PrimitiveScalar. enforce(NumberContext context)
Quadruple
Quadruple. enforce(NumberContext context)
Quaternion
Quaternion. enforce(NumberContext context)
RationalNumber
RationalNumber. enforce(NumberContext context)
protected static long
ExactDecimal. extractUnscaledValue(java.math.BigDecimal decimal, NumberContext cntxt)
private java.math.BigDecimal
ExactDecimal. toBigDecimal(NumberContext context)
default java.lang.String
Scalar. toPlainString(NumberContext context)
java.lang.String
BigScalar. toString(NumberContext context)
java.lang.String
ComplexNumber. toString(NumberContext context)
java.lang.String
ExactDecimal. toString(NumberContext context)
java.lang.String
PrimitiveScalar. toString(NumberContext context)
java.lang.String
Quadruple. toString(NumberContext context)
java.lang.String
Quaternion. toString(NumberContext context)
java.lang.String
RationalNumber. toString(NumberContext context)
java.lang.String
Scalar. toString(NumberContext context)
-
Uses of NumberContext in org.ojalgo.series
Fields in org.ojalgo.series declared as NumberContext Modifier and Type Field Description private NumberContext
SeriesInterpolator. myContext
Constructors in org.ojalgo.series with parameters of type NumberContext Constructor Description SeriesInterpolator(NumberContext context)
-
Uses of NumberContext in org.ojalgo.structure
Methods in org.ojalgo.structure with parameters of type NumberContext Modifier and Type Method Description static 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 NumberContext Modifier and Type Field Description static 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 NumberContext
StandardType. DECIMAL_032
Precision: 7 Scale: 3 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. DECIMAL_064
Precision: 16 Scale: 8 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. DECIMAL_128
Precision: 34 Scale: 17 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. MATH_032
Precision: 7 Scale: 7 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. MATH_064
Precision: 16 Scale: 16 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. MATH_128
Precision: 34 Scale: 34 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.GENERALstatic NumberContext
StandardType. PERCENT
Precision: 7 Scale: 4 Rounding Mode: RoundingMode.HALF_EVEN Locale: JVM Default Style: NumberStyle.PERCENTstatic NumberContext
StandardType. PRICE
Price or conversion rate (foreign exchange rate).static 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 NumberContext Modifier and Type Method Description static NumberContext
StandardType. amount(java.util.Locale locale)
static NumberContext
StandardType. decimal032()
static NumberContext
StandardType. decimal064()
static NumberContext
StandardType. integer()
static NumberContext
StandardType. percent(java.util.Locale locale)
static NumberContext
StandardType. wholePercentage()
Methods in org.ojalgo.type with parameters of type NumberContext Modifier and Type Method Description static java.math.BigDecimal
TypeUtils. toBigDecimal(java.lang.Comparable<?> number, NumberContext context)
-
Uses of NumberContext in org.ojalgo.type.context
Methods in org.ojalgo.type.context that return NumberContext Modifier and Type Method Description static NumberContext
NumberContext. getCurrency(java.util.Locale locale)
static NumberContext
NumberContext. getInteger(java.util.Locale locale)
static NumberContext
NumberContext. getPercent(int scale, java.util.Locale locale)
static NumberContext
NumberContext. getPercent(java.util.Locale locale)
static NumberContext
NumberContext. of(int precisionAndScale)
static NumberContext
NumberContext. of(int precision, int scale)
static NumberContext
NumberContext. ofMath(java.math.MathContext math)
static NumberContext
NumberContext. ofPrecision(int precision)
static NumberContext
NumberContext. ofScale(int scale)
NumberContext
NumberContext. withDecrementedPrecision()
NumberContext
NumberContext. withDecrementedPrecision(int subtrahend)
NumberContext
NumberContext. withDecrementedScale()
NumberContext
NumberContext. withDecrementedScale(int subtrahend)
NumberContext
NumberContext. withDoubledPrecision()
NumberContext
NumberContext. withDoubledScale()
NumberContext
NumberContext. withFormat(NumberStyle style, java.util.Locale locale)
NumberContext
NumberContext. withHalvedPrecision()
NumberContext
NumberContext. withHalvedScale()
NumberContext
NumberContext. withIncrementedPrecision()
NumberContext
NumberContext. withIncrementedPrecision(int addend)
NumberContext
NumberContext. withIncrementedScale()
NumberContext
NumberContext. withIncrementedScale(int addend)
NumberContext
NumberContext. withMath(java.math.MathContext math)
NumberContext
NumberContext. withMode(java.math.RoundingMode mode)
NumberContext
NumberContext. withoutPrecision()
NumberContext
NumberContext. withoutScale()
NumberContext
NumberContext. withPrecision(int precision)
NumberContext
NumberContext. withScale(int scale)
Methods in org.ojalgo.type.context with parameters of type NumberContext Modifier and Type Method Description T
NumberContext.Enforceable. enforce(NumberContext context)
-