> ## 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.

# ApproximateMOP Class Reference

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

An algorithm that computes new field samples from input parameters and FMOP models.

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< string > | [StringVector](#a999a7ace250aceefc403bb62cd8c3bcc) typedef for vector of string |

## Public Member Functions

| Type | Name |
| - | - |
| | [ApproximateMOP](#a8f7677df9d0c67b1e208dce034b82bf1) (bool enforce\_equal\_idents=false) constructor |
| | [check](#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings |
| | [compute](#ab08e112d95fe611e7eb25491c354d115) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) computes the new objects |

## Public Attributes

| Type | Name |
| - | - |
|  bool | [accept\_partial\_subspace](#a591952882aeaa67ab84a56aa4d053268) if true, then one accepts that the set of input parameters is incomplete. E.g. if a required input parameter is not selected, then one simly assumes the "center" value for it. |
| [StringVector](#a999a7ace250aceefc403bb62cd8c3bcc) | [element\_fmop\_idents](#a6004ee87717c9664d2314e817547d0a5) the idents of selected ELEMENT\_DATA field meta models |
| [StringVector](#a999a7ace250aceefc403bb62cd8c3bcc) | [node\_fmop\_idents](#a6127bef6ec70cb87bbba71911fd1e689) the idents of selected NODE\_DATA field meta models |
|  bool | [overwrite\_existing](#ade25e60bd85c8b4abd4f5b416cae0eb9) if true, existing outut objects will be replaced, otherwise: error if it already exists |
| [StringVector](#a999a7ace250aceefc403bb62cd8c3bcc) | [scalar\_fmop\_idents](#a138c218375fc3166ddcf7e6b23e6b373) the idents of selected SCALAR\_DATA field meta models |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [selected\_inputs](#afac43f97194e263427759f8414a2d703) contains the selected scalar input samples |
|  bool | [use\_sampling\_bounds](#ac0f888ea04ab875135d8dc97bd060a77) if true, the point to be approximated, must be within the original sampling bounds. |

## Detailed Description

An algorithm that computes new field samples from input parameters and FMOP models.

The algorithm is essentially the same is the class FieldDesignsFromAmplitudes, but it is based on the data structures stored in class [RandomFieldContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_container.md).

## Constructor & Destructor Documentation

### ApproximateMOP()

```cpp theme={null}
ApproximateMOP(bool enforce_equal_idents = false)
```

constructor

**Parameters**

| Name | Description |
| - | - |
| enforce\_equal\_idents | If true, then the same quantity idents are used as the input idents (is only used in optiSLang's simulation flow. Usually objects with that quantity ident already exist!) |

## Member Function Documentation

### check()

```cpp theme={null}
check(Structure database)
```

checks the settings

**Parameters**

| Name | Description |
| - | - |
| database | the database we refer to |

**Exceptions**

| Name | Description |
| - | - |
| an | exception in case of an error |

### compute()

```cpp theme={null}
compute(Structure database)
```

computes the new objects

**Parameters**

| Name | Description |
| - | - |
| database | the database we refer to |
