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

# ResponseVarArr Class

**Namespace:** `Phoenix.Optimization`

## Overview

summary> Get/set flag indicatining if response variable array has error /summary>

## Inheritance

![ResponseVarArr](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_var_arr.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=29c449c42326dbec4b3cd5ee6cb59b3e)

## Declaration

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

## Description

summary> Get/set flag indicatining if response variable array has error /summary>

## Public Member Functions

| Type | Name | Description |
| - | - | - |
| [ResponseVariable]() | `AddNew (string name, bool isInMC, bool isItOutput)` | |
| bool | `CheckIndexAndDuplicatedNames (bool doPopulateErrText)` | |
| void | `Clear ()` | |
| void | `CopyTo (ResponseVarArr arrTo)` | |
| [ResponseVariable]() | `FindByName (string name)` | |
| [ResponseVariable]() | `FindOrCreateNewVar (string name, bool isInMC=true, bool isItOutput=true)` | |
| IEnumerator\< ResponseVariable > | `GetEnumerator ()` | |
| bool | `IsEqualTo (ResponseVarArr varArrToCompare)` | |
| ResponseVarArr | `MakeCopy ()` | |
| bool | `RemoveVar (int varIndex, bool doRebuildIndexAndCheckName=true)` | |
| bool | `RemoveVar (ResponseVariable var, bool doRebuildIndexAndCheckName=true)` | |
| | `ResponseVarArr ()` | summary> Get/set flag indicatining if response variable array has error /summary> |

## Properties

| Type | Name | Description |
| - | - | - |
| int | `Count [get]` | |
| string | `ErrText [get, set]` | summary> Gets "Count" /summary> |
| bool | `HasErrors [get, set]` | summary> Get/Set Error text /summary> |
| [ResponseVariable]() | `this[int index] [get]` | |
| [ResponseVariable]() | `this[string name] [get]` | Return the first occurence of the |

## Constructor & Destructor Documentation

### ResponseVarArr()

```csharp theme={null}
ResponseVarArr ( )
```

summary> Get/set flag indicatining if response variable array has error /summary>

## Member Function Documentation

### CheckIndexAndDuplicatedNames

```csharp theme={null}
bool CheckIndexAndDuplicatedNames ( bool doPopulateErrText)
```

**Returns:**

* true if there is duplicated names otherwise returns false

### ErrText

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

summary> Gets "Count" /summary>

### HasErrors

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

summary> Get/Set Error text /summary>

### this

```csharp theme={null}
ResponseVariable this[string name]
```

Return the first occurence of the

**Parameters:**

* `name` -

## Property Documentation

### ErrText

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

summary> Gets "Count" /summary>

### HasErrors

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

summary> Get/Set Error text /summary>

### this

```csharp theme={null}
ResponseVariable this[string name]
```

Return the first occurence of the
