linopy.model Module

Linopy model module. This module contains frontend implementations of the package.

Functions

counter()

Create a counter generator that counts from 0 on upwards.

Classes

Constraint(*args, **kwargs)

Constraint container for storing constraint labels.

Constraints(labels, coeffs, vars, sign, rhs, ...)

A constraint container used for storing multiple constraint arrays.

LinearExpression([dataset])

A linear expression consisting of terms of coefficients and variables.

Model([solver_dir, chunk, force_dim_names])

Linear optimization model.

Variable(*args, **kwargs)

Variable container for storing variable labels.

Variables(labels, lower, upper, model)

A variables container used for storing multiple variable arrays.