Class Optimisation.Result
java.lang.Object
org.ojalgo.optimisation.Optimisation.Result
- All Implemented Interfaces:
Comparable<Optimisation.Result>, Optimisation, Access1D<BigDecimal>, Structure1D
- Enclosing interface:
Optimisation
public static final class Optimisation.Result
extends Object
implements Optimisation, Access1D<BigDecimal>, Comparable<Optimisation.Result>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Optimisation
Optimisation.Constraint, Optimisation.ConstraintType, Optimisation.Integration<M,S>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.ProblemStructure, Optimisation.Result, Optimisation.Sense, Optimisation.Solver, Optimisation.State Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConstraintsMetaDataprivate List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>, Optimisation.ConstraintType>>> private Access1D<?> private final Access1D<?> private final Optimisation.Stateprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionResult(Optimisation.State state, double value, Access1D<?> solution) Result(Optimisation.State state, Optimisation.Result result) Result(Optimisation.State state, Access1D<?> solution) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(Optimisation.Result reference) longcount()The total number of elements in this structure.doubledoubleValue(int index) booleanget(long index) The dual variables or Lagrange multipliers, matched to their respective constraints (model entity and constraint type pairs).The dual variables or Lagrange multipliers associated with the problem.getSolution(NumberContext precision) Will round the solution to the given precisiongetState()doublegetValue()Objective Function ValueinthashCode()multipliers(double... multipliers) (package private) Optimisation.Resultmultipliers(List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>, Optimisation.ConstraintType>>> matchedMultipliers) multipliers(ConstraintsMetaData constraintsMap, Access1D<?> multipliers) private voidmultipliers(Optimisation.Result target) multipliers(Access1D<?> multipliers) static Optimisation.Resultof(double value, Optimisation.State state, double... solution) static Optimisation.Resultof(Optimisation.State state, double... solution) static Optimisation.ResultParse aString, as produced by thetoString()method, into a new instance.intsize()The total number of elements in this structure.toString()May potentially be a very longStringas it must contain all variable values.withSolution(Access1D<?> solution) withSolutionLength(int length) withState(Optimisation.State state) withValue(double value) static Optimisation.ResultMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1D
-
Field Details
-
myConstraintsMap
-
myMatchedMultipliers
private List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>, Optimisation.ConstraintType>>> myMatchedMultipliers -
myMultipliers
-
mySolution
-
myState
-
myValue
private final double myValue
-
-
Constructor Details
-
Result
-
Result
-
Result
-
-
Method Details
-
of
-
of
-
parse
Parse aString, as produced by thetoString()method, into a new instance. -
wrap
-
compareTo
- Specified by:
compareToin interfaceComparable<Optimisation.Result>
-
count
public long count()Description copied from interface:Structure1DThe total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
- Specified by:
countin interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<BigDecimal>
-
equals
-
get
- Specified by:
getin interfaceAccess1D<BigDecimal>
-
getMatchedMultipliers
public List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>, Optimisation.ConstraintType>>> getMatchedMultipliers()The dual variables or Lagrange multipliers, matched to their respective constraints (model entity and constraint type pairs). -
getMultipliers
-
getSolution
Will round the solution to the given precision -
getState
-
getValue
public double getValue()Objective Function Value -
hashCode
-
multipliers
-
multipliers
-
multipliers
-
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
toString
-
withNegatedValue
-
withSolution
-
withSolutionLength
-
withState
-
withValue
-
multipliers
-
multipliers
Optimisation.Result multipliers(List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>, Optimisation.ConstraintType>>> matchedMultipliers)
-