Record Class AllocationRow
java.lang.Object
java.lang.Record
com.darkcollective.relix.processor.eval.AllocationRow
- Record Components:
row- the original input row; never nullallocation- the solver-assigned allocation value for this row
A candidate row paired with its continuous LP allocation value, as returned by
SubsetOptimizer.allocate(com.darkcollective.relix.ast.ObjectiveSense, com.darkcollective.relix.ast.Operand, java.util.List<com.darkcollective.relix.ast.OptimizeConstraint>, double, double, java.util.List<com.darkcollective.relix.processor.Row>, java.lang.String). The allocation is the solver's chosen
value for this row's decision variable, in the [lo, hi] range specified
by the OPTIMIZE ALLOCATE operator.-
Constructor Summary
ConstructorsConstructorDescriptionAllocationRow(Row row, double allocation) Creates an instance of aAllocationRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theallocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.row()Returns the value of therowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AllocationRow
Creates an instance of aAllocationRowrecord class.- Parameters:
row- the value for therowrecord componentallocation- the value for theallocationrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
row
Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
allocation
public double allocation()Returns the value of theallocationrecord component.- Returns:
- the value of the
allocationrecord component
-