14.1 Fusion API conventions

14.1.1 General conventions

All the classes of the Fusion interface are contained in the package mosek.fusion. The user should not directly instantiate objects of any class other than creating a Model.

M = Model()
M = Model('modelName')

with Model() as M:

The model is the main access point to an optimization problem and its solution. All other objects should be created through the model (Model.variable, Model.constraint, etc.) or using static factory methods (Matrix.sparse etc.).

Whenever a method expects a numeric or integer array, this can be either a Python list or a numpy array of appropriate shape.