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

# ModelEvaluation Class

**Namespace:** `Phoenix.Optimization`

## Overview

Class to hold the results of a model evaluation.

## Inheritance

![ModelEvaluation](https://mintlify.s3.us-west-1.amazonaws.com/synopsys-00a47cbc/docs/modelcenter/modelcenter-custom-optimization-algorithm-sdk/2026-r1/api/Namespaces/NamespaceList/Phoenix/Optimization/ModelEvaluation)

## Declaration

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

## Description

Class to hold the results of a model evaluation.

## Public Member Functions

| Type | Name | Description |
| - | - | - |
| | `ModelEvaluation ()` | Constructor |
| | `ModelEvaluation (double[] objectiveValues)` | Constructor |
| | `ModelEvaluation (double[] objectiveValues, bool runFailure)` | Constructor |
| | `ModelEvaluation (double[] objectiveValues, double[] constraintValues, bool runFailure)` | Constructor |
| | `ModelEvaluation (ModelEvaluation eval)` | Copy constructor |

## Properties

| Type | Name | Description |
| - | - | - |
| double\[] | `ConstraintValues [get]` | Double array containing the values of the constraints. |
| double\[] | `ObjectiveValues [get]` | Double array containing the values of the objectives |
| bool | `RunFailure [get]` | Boolean contain stating whether the model evaluation was successful. |

## Constructor & Destructor Documentation

### ModelEvaluation()

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

Constructor Constructs a failed model evaluation. This constructor primarily exists to allow ModelEvaluation to be serialized.

### ModelEvaluation()

```csharp theme={null}
ModelEvaluation ( double[] objectiveValues)
```

Constructor Assumes that there are no constraints. If objectiveValues is not null then the Run is assumed to not be failed, otherwise the Run is assumed to be failed.

**Parameters:**

* `objectiveValues` - double array of objective values

### ModelEvaluation()

```csharp theme={null}
ModelEvaluation ( double[] objectiveValues, bool runFailure )
```

Constructor Assumes that there are no constraints. If objectiveValues is not null, then the runFailure value is used, otherwise the Run is assumed to be failed.

**Parameters:**

* `objectiveValues` - double array of objective values
* `runFailure` - boolean Run failure value

### ModelEvaluation()

```csharp theme={null}
ModelEvaluation ( double[] objectiveValues, double[] constraintValues, bool runFailure )
```

Constructor If objectiveValues is not null, then the runFailure value is used, otherwise the Run is assumed to be failed.

**Parameters:**

* `objectiveValues` - double array of objective values
* `constraintValues` - double array of constraint values
* `runFailure` - boolean Run failure value

### ModelEvaluation()

```csharp theme={null}
ModelEvaluation ( ModelEvaluation eval)
```

Copy constructor

**Parameters:**

* `eval` - ModelEvaluation to be copied

## Member Function Documentation

### ConstraintValues

```csharp theme={null}
double [] ConstraintValues
```

Double array containing the values of the constraints.

### ObjectiveValues

```csharp theme={null}
double [] ObjectiveValues
```

Double array containing the values of the objectives

### RunFailure

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

Boolean contain stating whether the model evaluation was successful. The value will be true if there was an error evaluating the model, and false otherwise.

## Property Documentation

### ConstraintValues

```csharp theme={null}
double [] ConstraintValues
```

Double array containing the values of the constraints.

### ObjectiveValues

```csharp theme={null}
double [] ObjectiveValues
```

Double array containing the values of the objectives

### RunFailure

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

Boolean contain stating whether the model evaluation was successful. The value will be true if there was an error evaluating the model, and false otherwise.
