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

# MOP Class Reference

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

a group of random fields belonging together (either a single random field, or multiple cross-correlated fields)

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< string > | **TStringVector** |

## Public Member Functions

| Type | Name |
| - | - |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [activeInputCoP](#a53363b1a8192d07ec5fca9d613c28f56) () Returns the CoPs of each input quantity in this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6), [activeLowerBounds()](#a82983b0429ef4ead0dec4a3b96098595) and [activeUpperBounds()](#afd32f5aadfa0729d6a54e3f4e110c494). |
| string | [activeInputIdent](#ab19fdf8d3eb67cc0d77cbbff38ff4b83) (number i\_input) |
|  TStringVector | [activeInputIdentsVector](#a7b8fa0ac482e3e5b4835bd2af91220a6) () returns a string vector of all active scalar input parameters. Ordered as in [activeLowerBounds()](#a82983b0429ef4ead0dec4a3b96098595), [activeUpperBounds()](#afd32f5aadfa0729d6a54e3f4e110c494), [activeInputCoP()](#a53363b1a8192d07ec5fca9d613c28f56) |
| std::vector\< number > | [activeInputIndices](#a594241da810bf7fe97ff3a922e3c2760) () Active node indices. Use this to access active inputs in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656), [inputCoP()](#af82794c7116172eb14385d5abd419b50) and [centerInputValues()](#aba735568f140165005a3a7493a52ff62) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [activeLowerBounds](#a82983b0429ef4ead0dec4a3b96098595) () Get a Vector of active input parameters' lower bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaluation values. Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6). |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [activeUpperBounds](#afd32f5aadfa0729d6a54e3f4e110c494) () Get a Vector of active input parameters' upper bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaluation values. Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6). |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [centerInputValues](#aba735568f140165005a3a7493a52ff62) () |
| | [copyFieldCoPToDatabase](#ad3dbd1a08e814a8e5b6c8c46d1b43ff4) ([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), bool overwrite\_existing) copies contained data to the database (being visible in data object table), restricted to basic FieldCoP-data (all except Rsigma) |
| | [copyMostSensitiveToDatabase](#af90a5eb5a4aed2af1bbd69207298a721) ([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), bool overwrite\_existing) copies contained data to the database (being visible in data object table), restricted to objects names 'most sensitive inputs' |
| | [copyRSigmaToDatabase](#afab06d15908af8a8ad391c3c62f1ef1b) ([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), bool overwrite\_existing) copies contained data to the database (being visible in data object table), restricted to all Rsigma objects |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [elementResults](#af3bc53e77d1b3e5ac6399f635a3d9033) () returns a const-reference to m\_element\_data |
| | [eraseDatabaseCopies](#a37662babd77d3217b300cc31a4ddf4af) ([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)) deletes all data objects contained in this data structure from the respective database. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluateAmplitudes](#a7c58b7d50ad5676db022df82715e5156) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) inputs, bool use\_sampling\_bounds=true) evaluates the Field-MOP for the amplitudes only |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [inputCoP](#af82794c7116172eb14385d5abd419b50) () Returns the CoPs of each input quantity in this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656) |
| string | [inputIdent](#a8f7106d9165b855c958678be43c9e4f5) (number i\_input) Get the ident of the i-th input parameter. |
| TStringVector | [inputIdentsVector](#a90e1ef91ed7f9d7c3448cb01d7bab656) () returns a reference to a string vector of all scalar input parameters |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [lowerBounds](#a99676faaa7d62979bf03c2b80d924db5) () Get a vector of input parameters' lower bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaulation values. Includes inactive input parameters with [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) equal to 0. Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656). |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [nodeResults](#a4ccd23e43d054673b4fd90ce6d5e872c) () returns a const-reference to m\_node\_data |
| number | [numActiveInputs](#ac8434f6aa78120ee35c1e32423589f74) () |
| number | [numInputs](#a2556eb3339693ac4a80b79c2a93c2990) () Get the number of input parameters. |
| bool | [overlaps](#a03321500b0781030e74b1aa7cb05ab2f) ([MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) const field) Checks if this instance contains a quantity with an ident that is the same as an ident of a quantity in the given field quantity. (if it overlaps with the field) |
| [RandomFieldGroup](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_group.md) | [rfGroup](#aee9da7d00e9818fcb049a056e8301289) () Returns read access to the underlying field models (a group of random fields) |
| handler::ScalarMOPContainer | [scalarMOPContainer](#aab158d6a5e02675cd1e1162752d4b7ec) () Returns read access to the underlying scalar model (a group of scalar models/scalarMOP) |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [scalarResults](#a251f476533d9e7bbf5857be662bf97be) () returns a const-reference to m\_scalar\_data |
| number | [totalCoP](#ad83b954a8ff9b4f57dee66a807b1ab0d) () Returns the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [upperBounds](#ab511c5b8fcb3ad4e1de8cb46a14af365) () Get a vector of input parameters' upper bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaulation values. Includes inactive input parameters with [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) equal to 0. Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656). |

## Detailed Description

a group of random fields belonging together (either a single random field, or multiple cross-correlated fields)

## Member Function Documentation

### activeInputCoP()

```cpp theme={null}
Matrix activeInputCoP()
```

Returns the CoPs of each input quantity in this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6), [activeLowerBounds()](#a82983b0429ef4ead0dec4a3b96098595) and [activeUpperBounds()](#afd32f5aadfa0729d6a54e3f4e110c494).

**Returns**

A column vector containing all input CoPs

### activeInputIdent()

```cpp theme={null}
string activeInputIdent(number i_input)
```

**Returns**

the ident of a respective scalar input parameter

**Parameters**

| Name | Description |
| - | - |
| i\_input | the index of the respective input parameter rangin from 0 to [numActiveInputs()](#ac8434f6aa78120ee35c1e32423589f74). Also the ordering refers to centerInputValues. |

### activeInputIndices()

```cpp theme={null}
std::vector<number> activeInputIndices()
```

Active node indices. Use this to access active inputs in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656), [inputCoP()](#af82794c7116172eb14385d5abd419b50) and [centerInputValues()](#aba735568f140165005a3a7493a52ff62)

**Returns**

the active node indices

### activeLowerBounds()

```cpp theme={null}
Matrix activeLowerBounds()
```

Get a Vector of active input parameters' lower bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaluation values. Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6).

**Returns**

a column vector of number precision lower bound values.

### activeUpperBounds()

```cpp theme={null}
Matrix activeUpperBounds()
```

Get a Vector of active input parameters' upper bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaluation values. Ordered as in [activeInputIdentsVector()](#a7b8fa0ac482e3e5b4835bd2af91220a6).

**Returns**

A column vector of number precision upper bound values.

### centerInputValues()

```cpp theme={null}
Matrix centerInputValues()
```

**Returns**

the center values of all inputs

### copyFieldCoPToDatabase()

```cpp theme={null}
copyFieldCoPToDatabase(
    Structure database,
    bool overwrite_existing
)
```

copies contained data to the database (being visible in data object table), restricted to basic FieldCoP-data (all except Rsigma)

**Parameters**

| Name | Description |
| - | - |
| database | the target database |
| overwrite\_existing | if true, then data objects with identical ident will be replaced, else an exception is thrown. |

### copyMostSensitiveToDatabase()

```cpp theme={null}
copyMostSensitiveToDatabase(
    Structure database,
    bool overwrite_existing
)
```

copies contained data to the database (being visible in data object table), restricted to objects names 'most sensitive inputs'

**Parameters**

| Name | Description |
| - | - |
| database | the target database |
| overwrite\_existing | if true, then data objects with identical ident will be replaced, else an exception is thrown. |

### copyRSigmaToDatabase()

```cpp theme={null}
copyRSigmaToDatabase(
    Structure database,
    bool overwrite_existing
)
```

copies contained data to the database (being visible in data object table), restricted to all Rsigma objects

**Parameters**

| Name | Description |
| - | - |
| database | the target database |
| overwrite\_existing | if true, then data objects with identical ident will be replaced, else an exception is thrown. |

### eraseDatabaseCopies()

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

deletes all data objects contained in this data structure from the respective database.

**Parameters**

| Name | Description |
| - | - |
| database | the database to be deleted |

### evaluateAmplitudes()

```cpp theme={null}
Matrix evaluateAmplitudes(
    Matrix inputs,
    bool use_sampling_bounds = true
)
```

evaluates the Field-MOP for the amplitudes only

**Parameters**

| Name | Description |
| - | - |
| inputs | the column vector of the input parameters (ALL inputs!) |
| use\_sampling\_bounds | if true, then the method returns with an error if the input vector is outside of the original DOE boundaries; else it tries to extrapolate |

**Returns**

the vector of amplitudes.

### inputCoP()

```cpp theme={null}
Matrix inputCoP()
```

Returns the CoPs of each input quantity in this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656)

**Returns**

A matrix contaiing all input CoPs

### inputIdent()

```cpp theme={null}
string inputIdent(number i_input)
```

Get the ident of the i-th input parameter.

**Parameters**

| Name | Description |
| - | - |
| i\_input | the index of the respective input parameter ranging from 0 to numInputs |

**Returns**

the ident of a respective scalar input parameter

### inputIdentsVector()

```cpp theme={null}
TStringVector inputIdentsVector()
```

returns a reference to a string vector of all scalar input parameters

**Returns**

### lowerBounds()

```cpp theme={null}
Matrix lowerBounds()
```

Get a vector of input parameters' lower bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaulation values. Includes inactive input parameters with [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) equal to 0. Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656).

**Returns**

A column vector of number precision lower bound values.

### numActiveInputs()

```cpp theme={null}
number numActiveInputs()
```

**Returns**

the number of active inputs

### numInputs()

```cpp theme={null}
number numInputs()
```

Get the number of input parameters.

**Returns**

the number of input parameters

### overlaps()

```cpp theme={null}
bool overlaps(MOP const field)
```

Checks if this instance contains a quantity with an ident that is the same as an ident of a quantity in the given field quantity. (if it overlaps with the field)

**Parameters**

| Name | Description |
| - | - |
| field | the other field to be tested |

**Returns**

true iff any quantity of the other field has the same ident as a quantity in this object

### rfGroup()

```cpp theme={null}
RandomFieldGroup rfGroup()
```

Returns read access to the underlying field models (a group of random fields)

**Returns**

a const-reference to the respective field container

### scalarMOPContainer()

```cpp theme={null}
handler::ScalarMOPContainer scalarMOPContainer()
```

Returns read access to the underlying scalar model (a group of scalar models/scalarMOP)

**Returns**

a const-reference to the respective [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) object

### totalCoP()

```cpp theme={null}
number totalCoP()
```

Returns the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of this [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md).

**Returns**

Total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) value

### upperBounds()

```cpp theme={null}
Matrix upperBounds()
```

Get a vector of input parameters' upper bounds of valid [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) evaulation values. Includes inactive input parameters with [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) equal to 0. Ordered as in [inputIdentsVector()](#a90e1ef91ed7f9d7c3448cb01d7bab656).

**Returns**

A column vector of number precision upper bound values.
