csnlp.core.debug.NlpDebugEntry#
- class csnlp.core.debug.NlpDebugEntry(name: str, type: Literal['Parameter', 'Decision variable', 'Equality constraint', 'Inequality constraint'], shape: tuple[int, ...], filename: str, function: str, lineno: int, context: str)[source]#
Bases:
NamedTupleClass representing a single entry of the debug information for an
csnlp.Nlpinstance.Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Context in which the quantity is defined.
Name of the file where the quantity is defined.
Name of the function/method where the quantity is defined.
Line number where the quantity is defined.
Name of the quantity.
Shape of the quantity.
Type of the quantity.
- count(value, /)#
Return number of occurrences of value.
- index(value, start=0, stop=sys.maxsize, /)#
Return first index of value.
Raises ValueError if the value is not present.