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

# ResponseVariable Class

**Namespace:** `Phoenix.Optimization`

## Overview

Class to hold information about a design variable

## Inheritance

![ResponseVariable](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/modelcenter/modelcenter-custom-optimization-algorithm-sdk/api/graphics/class_phoenix_1_1_optimization_1_1_response_variable.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=7c42c5b8c81910914bc3d30e7edc6d45)

## Declaration

```csharp theme={null}
class ResponseVariable
```

## Description

Class to hold information about a design variable

## Public Member Functions

| Type | Name | Description |
| - | - | - |
| | `ResponseVariable (string name, bool isNameInMC, bool isDuplicated, bool isItOutput)` | Creates new a variable with the given name and status of presence in MC |
| void | `UpdateMe (string name, bool isNameInMc, bool isItOutput)` | |

## Properties

| Type | Name | Description |
| - | - | - |
| string | `ErrText [get]` | |
| bool | `HasError [get]` | |
| int | `Index [get, set]` | |
| bool | `IsDuplicated [get, set]` | summary> Gets a value indicating whether the variable "HasError" /summary> |
| bool | `IsItOutput [get, set]` | |
| bool | `IsNameInMc [get, set]` | summary> Gets a or sets value indicating whether the "IsDuplicated" has a #. |
| bool | `IsSelected [get, set]` | summary> Gets or sets a reference to "IsNameInMc" /summary> |
| string | `Name [get, set]` | Name of the design variable |

### Properties inherited from [IVariableName]()

| Type | Name | Description |
| - | - | - |
| string | `Name [get]` | The name of the variable |

## Constructor & Destructor Documentation

### ResponseVariable()

```csharp theme={null}
ResponseVariable ( string name, bool isNameInMC, bool isDuplicated, bool isItOutput )
```

Creates new a variable with the given name and status of presence in MC summary> Gets a reference to "Index" /summary>

**Parameters:**

* `name` - name
* `isNameInMC` - does MC has this variable name

## Member Function Documentation

### IsDuplicated

```csharp theme={null}
bool IsDuplicated
```

summary> Gets a value indicating whether the variable "HasError" /summary>

### IsNameInMc

```csharp theme={null}
bool IsNameInMc
```

summary> Gets a or sets value indicating whether the "IsDuplicated" has a #. /summary>

### IsSelected

```csharp theme={null}
bool IsSelected
```

summary> Gets or sets a reference to "IsNameInMc" /summary>

### Name

```csharp theme={null}
string Name
```

Name of the design variable summary> Gets or sets a reference to "IsSelected" /summary>

Implements IVariableName.

## Property Documentation

### IsDuplicated

```csharp theme={null}
bool IsDuplicated
```

summary> Gets a value indicating whether the variable "HasError" /summary>

### IsNameInMc

```csharp theme={null}
bool IsNameInMc
```

summary> Gets a or sets value indicating whether the "IsDuplicated" has a #. /summary>

### IsSelected

```csharp theme={null}
bool IsSelected
```

summary> Gets or sets a reference to "IsNameInMc" /summary>

### Name

```csharp theme={null}
string Name
```

Name of the design variable summary> Gets or sets a reference to "IsSelected" /summary>

Implements IVariableName.
