This method returns true if and only if the invoking CP solver has extracted a model involving an objective.

Namespace: ILOG.CP
Assembly: ILOG.CP (in ILOG.CP.dll)

Syntax

C#
public virtual bool HasObjective()
Visual Basic
Public Overridable Function HasObjective As Boolean

See Also