C++ Reference: class Model

This documentation is automatically generated.



Class that owns everything related to a particular optimization model.

This class is actually a fully generic wrapper that can hold any type of constraints, watchers, solvers and provide a mecanism to wire them together.

Method
Add

Return type: T

Arguments: std::function<T(Model*)> f

Create

Return type: T*

Get

Return type: T

Arguments: std::function<T(const Model&)> f

Get

Return type: const T*

GetOrCreate

Return type: T*

Model

Mutable

Return type: T*

Register

Return type: void

Arguments: T* non_owned_class

TakeOwnership

Return type: void

Arguments: T* t