linopy.variables.Variable.unrelax

linopy.variables.Variable.unrelax#

Variable.unrelax()#

Restore the original integrality type of a relaxed variable.

Reverses the effect of relax(). If the variable was not previously relaxed, this is a no-op.