This exception is thrown by an attempt to add more than one objective to a model.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public class MultipleObjectiveException : Exception
Visual Basic
Public Class MultipleObjectiveException _
	Inherits Exception

Remarks

In this version of CPLEX, a model can contain only one objective object. It is planned to remove this restriction, and thus this exception, in a future version, although it is likely that algorithms will still be unable to handle models with more than one objective.

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    ILOG.Concert..::..Exception
      ILOG.CPLEX..::..MultipleObjectiveException

See Also