Skip to main content

ModelCenter Custom Optimization Algorithm SDK 2026 R1

MaxIterationsException Class

Last update: 19.06.2026

Namespace: Phoenix.Optimization

Overview

The maximum number of iterations was reached before an optimum was found.

Inheritance

MaxIterationsException

Declaration

class MaxIterationsException

Description

The maximum number of iterations was reached before an optimum was found.

Public Member Functions

Type Name Description
MaxIterationsException () Initializes a new instance of the MaxIterationsException class.
MaxIterationsException (string msg) Initializes a new instance of the MaxIterationsException class with a specified error message.
MaxIterationsException (string msg, Exception inner) Initializes a new instance of the MaxIterationsException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Public Member Functions inherited from EarlyTerminationException

Type Name Description
EarlyTerminationException () Initializes a new instance of the EarlyTerminationException class.
EarlyTerminationException (string msg) Initializes a new instance of the EarlyTerminationException class with a specified error message.
EarlyTerminationException (string msg, Exception inner) Initializes a new instance of the EarlyTerminationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Public Member Functions inherited from OptimizationException

Type Name Description
OptimizationException () Initializes a new instance of the OptimizationException class.
OptimizationException (string msg) Initializes a new instance of the OptimizationException class with a specified error message.
OptimizationException (string msg, Exception inner) Initializes a new instance of the OptimizationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Constructor & Destructor Documentation

MaxIterationsException()

MaxIterationsException ( )

Initializes a new instance of the MaxIterationsException class.

MaxIterationsException()

MaxIterationsException ( string msg)

Initializes a new instance of the MaxIterationsException class with a specified error message.

Parameters:

  • msg - Message for the exception

MaxIterationsException()

MaxIterationsException ( string msg, Exception inner )

Initializes a new instance of the MaxIterationsException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters:

  • msg - The error message that explains the reason for the exception.
  • inner - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

MaxIterationsException()

MaxIterationsException ( `SerializationInfo` info, `StreamingContext` context )

Initializes a new instance of the MaxIterationsException class with serialized data.

Parameters:

  • info - The SerializationInfo that holds the serialized object data about the exception being thrown.
  • context - The StreamingContext that contains contextual information about the source or destination.

Property Documentation

MaxIterationsException()

MaxIterationsException ( )

Initializes a new instance of the MaxIterationsException class.

MaxIterationsException()

MaxIterationsException ( string msg)

Initializes a new instance of the MaxIterationsException class with a specified error message.

MaxIterationsException()

MaxIterationsException ( string msg, Exception inner )

Initializes a new instance of the MaxIterationsException class with a specified error message and a reference to the inner exception that is the cause of this exception.

MaxIterationsException()

MaxIterationsException ( `SerializationInfo` info, `StreamingContext` context )

Initializes a new instance of the MaxIterationsException class with serialized data.

Connect with Ansys