Package de.labathome.trustconstr
Record Class CanonicalConstraint.InitialCanonical
java.lang.Object
java.lang.Record
de.labathome.trustconstr.CanonicalConstraint.InitialCanonical
- Record Components:
cEq- equality residual atx0(nEq x 1)cIneq- inequality residual atx0(nIneq x 1)JEq- equality Jacobian atx0(nEq x n)JIneq- inequality Jacobian atx0(nIneq x n)
- Enclosing class:
- CanonicalConstraint
public static record CanonicalConstraint.InitialCanonical(Matrix cEq, Matrix cIneq, Matrix JEq, Matrix JIneq)
extends Record
Output shape of
CanonicalConstraint.initialConstraintsAsCanonical(int, java.util.List<de.labathome.trustconstr.CanonicalConstraint>, de.labathome.trustconstr.matrix.Matrix, boolean): the four arrays
(cEq, cIneq, JEq, JIneq) returned as a record. Mirrors scipy's
4-tuple return value.-
Constructor Summary
ConstructorsConstructorDescriptionInitialCanonical(Matrix cEq, Matrix cIneq, Matrix JEq, Matrix JIneq) Creates an instance of aInitialCanonicalrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncEq()Returns the value of thecEqrecord component.cIneq()Returns the value of thecIneqrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.JEq()Returns the value of theJEqrecord component.JIneq()Returns the value of theJIneqrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
cEq
Returns the value of thecEqrecord component.- Returns:
- the value of the
cEqrecord component
-
cIneq
Returns the value of thecIneqrecord component.- Returns:
- the value of the
cIneqrecord component
-
JEq
Returns the value of theJEqrecord component.- Returns:
- the value of the
JEqrecord component
-
JIneq
Returns the value of theJIneqrecord component.- Returns:
- the value of the
JIneqrecord component
-