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

# DesignComparer Class

**Namespace:** `Phoenix.Optimization`

## Overview

Class can be used to compare two designs to each other.

## Inheritance

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

## Declaration

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

## Description

Class can be used to compare two designs to each other.

## Public Member Functions

| Type | Name | Description |
| - | - | - |
| int | `Compare (object[] x, object[] y)` | Used to perform the comparison between two designs. |

## Member Function Documentation

### Compare

```csharp theme={null}
int Compare ( object[] x, object[] y )
```

Used to perform the comparison between two designs.

**Parameters:**

* `x` - First Design to compare.
* `y` - Second Design to compare.

**Returns:**

* A value that indicates the relative order of the objects being compared.

| Value | Meaning |
| - | - |
| Less than zero | This instance precedes obj in the sort order. |
| Zero | This instance occurs in the same position in the sort order as obj. |
| Greater than zero | This instance follows obj in the sort order. |
