linopy.constants.Solution#
- class linopy.constants.Solution(primal=<factory>, dual=<factory>, objective=nan)#
Solution returned by the solver.
primalanddualare dense float arrays indexed by linopy label:primal[label]is the value for variablelabel, withNaNwhere no value is available (masked labels, vars dropped by the solver, etc.). Each solver is responsible for emitting arrays in this label-indexed form.- __init__(primal=<factory>, dual=<factory>, objective=nan)#
Methods
__init__([primal, dual, objective])Attributes
objectiveprimaldual