modelx.new_model

new_model(name=None)[source]

Create and return a new model.

The current model is set set to the created model.

Parameters

name (str, optional) – The name of the model to create. Defaults to ModelN, with N being an automatically assigned integer.

Returns

The new model.

Return type

Model