> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ModelBase Class Reference

Part of [MOP models](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__models)

The [ModelBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_model_base.md) class is the class all model-types derive from Models are already built and valid.

## Public Member Functions

| Type | Name |
| - | - |
|  virtual | [addProperty](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_user_base.md#aedfb47575823522e6a6d22ce6c12e826) ([PropertyBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_property_base.md) p) Properties that help the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) scheduling the Models to be built The properties class needs to be implemented for the specific model type. |
| virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluate](#a5ec7821e9b8c1aaa6c43dc5ca1263f2f) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) points, bool extrapolate=true)=0 Evaluates the model on the given points and returns the values. |
|  virtual [PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) | [getProperties](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_user_base.md#a0e1dd7df82728594fc128ed1c797b0c0) () Returns the properties stored by this user. |
| virtual | [transferProperties](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_user_base.md#ab9507274f126b856fb69cd621f0f9fb4) ([PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) property\_list) Convenience function to transfer a complete [PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) into the model. |

## Detailed Description

The [ModelBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_model_base.md) class is the class all model-types derive from Models are already built and valid.

## Member Function Documentation

### evaluate()

```cpp theme={null}
virtual Matrix evaluate(
    Matrix points,
    bool extrapolate = true
)
```

`pure virtual`

Evaluates the model on the given points and returns the values.

**Parameters**

| Name | Description |
| - | - |
| points | The input points the model is evaluated on |
| extrapolate | Evaluate the points outside of the bounding box of its training data |

**Returns**

The values of the model on the given points

Implemented in [CustomModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_custom_model.md#a85c04b0ec7ee1ee66e21af920faabb73), [KrigingModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_kriging_model.md#a85c04b0ec7ee1ee66e21af920faabb73), [MLSModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_l_s_model.md#a85c04b0ec7ee1ee66e21af920faabb73), and [RBFModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_r_b_f_model.md#a85c04b0ec7ee1ee66e21af920faabb73).

### transferProperties()

```cpp theme={null}
virtual transferProperties(PropertyList property_list)
```

`virtual` `inherited`

Convenience function to transfer a complete [PropertyList](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_property_list.md) into the model.

**Parameters**

| Name | Description |
| - | - |
| property\_list | The properties to transfer into this model |
