Skip to main content

ModelCenter Custom Optimization Algorithm SDK 2026 R1

DesignComparer Class

Last update: 19.06.2026

Namespace: Phoenix.Optimization

Overview

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

Inheritance

DesignComparer

Declaration

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

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.

Connect with Ansys