Package org.ojalgo.optimisation
Class ConstraintsMetaData
java.lang.Object
org.ojalgo.optimisation.ConstraintsMetaData
- All Implemented Interfaces:
Structure1D
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,
B extends Structure1D.Logical<S, B>>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntryPair<ModelEntity<?>,
Optimisation.ConstraintType>[] private double
final boolean[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ConstraintsMetaData
(EntryPair<ModelEntity<?>, Optimisation.ConstraintType>[] defs, boolean[] negs) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
The total number of elements in this structure.getEntry
(int i) (package private) double
boolean
static ConstraintsMetaData
newEntityMap
(int nbConstraints) static ConstraintsMetaData
newInstance
(int nbConstraints, boolean inclDefs) static ConstraintsMetaData
newSimple
(int nbConstraints) void
setEntry
(int i, ModelEntity<?> entity, Optimisation.ConstraintType type) void
setEntry
(int i, ModelEntity<?> entity, Optimisation.ConstraintType type, boolean neg) void
setMultiplierScale
(double multiplierScale) int
size()
The total number of elements in this structure.
-
Field Details
-
negated
public final boolean[] negated -
myDefinitions
-
myMultiplierScale
private double myMultiplierScale
-
-
Constructor Details
-
ConstraintsMetaData
private ConstraintsMetaData(EntryPair<ModelEntity<?>, Optimisation.ConstraintType>[] defs, boolean[] negs)
-
-
Method Details
-
newEntityMap
-
newInstance
-
newSimple
-
count
public long count()Description copied from interface:Structure1D
The 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:
count
in interfaceStructure1D
-
getEntry
-
isEntityMap
public boolean isEntityMap() -
match
public List<EntryPair.KeyedPrimitive<EntryPair<ModelEntity<?>,Optimisation.ConstraintType>>> match(Access1D<?> multipliers) -
setEntry
-
setEntry
-
setMultiplierScale
public void setMultiplierScale(double multiplierScale) -
size
public int size()Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
getMultiplierScale
double getMultiplierScale()
-