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

# CreateMOP Class Reference

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

Creates a FMOP.

## Public Member Functions

| Type | Name |
| - | - |
| | [addConfig](#a8c9e9b33aa08c8adc83c5c603584baf6) ([CreateModelBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_create_model_base.md) config) adds a configuration to the FMOP. |
| | [addConfig](#aa3e76c9ef2efcfd092bdd9f7dd326d33) (handler::CreateScalarMOP config) adds a [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) configuration to the FMOP. |
|  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. |
| | [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)) destructor |
| bool | [checkOverwriteExisting](#abdcd2125bfa27ba032579f06c6c15b41) ([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 if any FCoP values are already existing in the database |
| | [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 |
| | [CreateMOP](#a304bfd9679f4c372a141f5d955ec83a3) () default constructor |
|  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. |
| handler::CreateScalarMOP | [getScalarMOPConfig](#a7d14aab4b2691328855fbbf13f85f7b8) () Access the attached [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md). |
| handler::CreateScalarMOP | [getScalarMOPConfig](#a7d14aab4b2691328855fbbf13f85f7b8) () Access the attached [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md). |
| virtual | [loadJson](#a156102bce477295e314bbf612d890470) ([JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) root) Function to read and set up the model configuration through a JSON string. |
| virtual bool | [parseJson](#afdebedad08779b0d2b8ee6f6aa1f5d37) (string str) Parse a json configuration from a given JSON string. |
| virtual [JsonValue](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_json_value.md) | [saveJson](#ab4587af0230811304c91f1c0aaa1c9ce) () override Function to write the Models configuration data as a JSON string. |
| 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. |

## Public Attributes

| Type | Name |
| - | - |
|  bool | [compute\_dominant\_inputs](#a31388be8837d1a2fdccd883be6692e84) if true, plot the dominant input parameters |
| bool | [compute\_DummyMOP](#af42087e96d28f5375e7f37e08aba8445) Create a simple scalar [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). This [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) can be exported as an OMDB file, for outlier detection in OptiSLang post-processing. |
|  bool | [compute\_Rsigma](#a9129c769154cd3746f78fd9b07d36759) if true, compute the [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values in absolute units, i.e. the quantities "Rsigma\[...]" |
|  bool | [compute\_sensitivities](#acc2123d14934f5d137ee60eaaaf8be74) if true, compute the sensitivity values |
| apply SWIGTYPE \* | **DISOWN** |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [input](#ac3e2a1c8cf854e4cecaccd2a56b40393) the scalar data objects defining the inputs |
|  std::vector\< string > | [mandatory\_inputs](#afa3ec58e043b78b59032b10a046e427b) defines the mandatory input idents |
|  number | [minimum\_cop](#a90d02972fa21551bc75a79c411f1081b) minimum [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) value for a single item in a FCoP-value to be accepted as active input parameter (relative, 0.01=1%) |
|  number | [minimum\_cop\_avg](#a8f289a4ff96f4a902ec187af0a20ca98) minimum [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) value for the average FCoP-value to be accepted as active input parameter (relative, 0.01=1%) |
|  bool | [overwrite\_existing](#ade25e60bd85c8b4abd4f5b416cae0eb9) if true, replace existing output objects. if false: throw an error if an output object already exists |
|  toolbox::RandomFieldDecompositionFromSamples | [response](#a8ae229617ae149528fc20ec659009d6a) settings for creation of internal random field model If the random field model is configured to create any output, we will not use it! In this case you need to create a random field model explicitly. |

## Detailed Description

Creates a FMOP.

## Member Function Documentation

### addConfig() \[1/2]

```cpp theme={null}
addConfig(CreateModelBase config)
```

adds a configuration to the FMOP.

**Parameters**

| Name | Description |
| - | - |
| config | The configuration to be added |

### addConfig() \[2/2]

```cpp theme={null}
addConfig(handler::CreateScalarMOP config)
```

adds a [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) configuration to the FMOP.

**Parameters**

| Name | Description |
| - | - |
| config | The [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) configuration to be added |

### check()

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

destructor

checks the settings

**Parameters**

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

**Exceptions**

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

### checkOverwriteExisting()

```cpp theme={null}
bool checkOverwriteExisting(Structure database)
```

checks if any FCoP values are already existing in the database

**Parameters**

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

**Returns**

true if any FCoP objects or FMOP models were already created.

### compute()

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

computes the new objects

**Parameters**

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

### getScalarMOPConfig() \[1/2]

```cpp theme={null}
handler::CreateScalarMOP getScalarMOPConfig()
```

Access the attached [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md).

**Returns**

A reference to the attached [CreateScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_create_scalar_m_o_p.md)

### getScalarMOPConfig() \[2/2]

```cpp theme={null}
handler::CreateScalarMOP getScalarMOPConfig()
```

Access the attached [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md).

**Returns**

A reference to the attached [CreateScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_create_scalar_m_o_p.md)

### loadJson()

```cpp theme={null}
virtual loadJson(JsonValue root)
```

`virtual`

Function to read and set up the model configuration through a JSON string.

**Parameters**

| Name | Description |
| - | - |
| root | The json string to set up the configuration from |

### parseJson()

```cpp theme={null}
virtual bool parseJson(string str)
```

`virtual`

Parse a json configuration from a given JSON string.

**Parameters**

| Name | Description |
| - | - |
| str | the String to parse |

**Returns**

true iff parsing was successful

### saveJson()

```cpp theme={null}
virtual JsonValue saveJson()
```

`override` `virtual`

Function to write the Models configuration data as a JSON string.

**Returns**

The configuration of the model as JSON string

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

## Member Data Documentation

### compute\_DummyMOP

```cpp theme={null}
bool compute_DummyMOP
```

Create a simple scalar [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). This [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) can be exported as an OMDB file, for outlier detection in OptiSLang post-processing.

**See also**

[MOPContainer::writeInternalMOP\_OMDBFile](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p_container.md#a4b62e4b6dbc152d68e1f5d07c484bfea)

### DISOWN

```cpp theme={null}
apply SWIGTYPE * DISOWN
```

**Initial value:**

```lua theme={null}
{handler::CreateScalarMOP * create_scalar_mop}

         addScalarMOP( handler::CreateScalarMOP * create_scalar_mop )
```
