torchmdo.model

Computational model

class torchmdo.model.Model[source]

Base class that must be inherited to construct a model for use in optimization.

abstract compute()[source]

Compute and set all attributes that will be used as outputs for the model such as objectives and constraints. This method can take additional keyword arguments if desired.

Return type:

None