Cplex is the class used to create and solve LP (linear program), QP (program with quadratic terms in the objective function), QCP (quadratically constrained program), and MIP (mixed integer program) Mathematical Programming models.

The Cplex..::..Callback type exposes the following members.

Constructors

  Name Description
Protected method Cplex..::..Callback
Initializes a new instance of the Cplex..::..Callback class

Methods

  Name Description
Protected method Abort
Aborts current optimization.
Public method Clone
Protected method createCppimpl
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected method GetCplexTime
This method returns a time stamp, useful in measuring elapsed time in seconds. To measure time spent between a starting point and ending point of an operation, take the result of this method at the starting point; take the result of this method at the end point; subtract the starting time stamp from the ending time stamp; the subtraction yields elapsed time in seconds.
Public method getCppImpl
Protected method GetDetTime
This method returns a deterministic time stamp in ticks. To measure elapsed deterministic time in ticks between a starting point and ending point of an operation, take the deterministic time stamp at the starting point; take the deterministic time stamp at the ending point; subtract the starting deterministic time stamp from the ending deterministic time stamp. The absolute value of the deterministic time stamp is not meaningful.
Protected method GetEndDetTime
Protected method GetEndTime
This method returns a time stamp specifying when the time limit will occur. To compute remaining time in seconds, subtract the result of
CopyC#
GetCplexTime
from the result of this method. This computation yields either wall clock time (also known as real time) or CPU time, depending on the clock type set by the parameter
CopyC#
ClockType
. The absolute value of the time stamp is not meaningful.
Protected method getEnvImpl
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected method GetModel
Returns the model being solved when the invoking callback is called, that is the active model.
Protected method GetNcols
Returns the number of columns of the matrix representation of the active model being solved when the invoking callback is called.
Protected method GetNQCs
Returns the number of quadratic constraints in the active model being solved when the invoking callback is called.
Protected method GetNrows
Returns the number of rows of the matrix representation of the active model being solved when the invoking callback is called.
Protected method GetStartDetTime
Protected method GetStartTime
This method returns a time stamp specifying when the solving process was started. To compute elapsed time in seconds, subtract the result of
CopyC#
GetCplexTime
from the result of this method. This computation yields either wall clock time (also known as real time) or CPU time, depending on the clock type set by the parameter
CopyC#
ClockType
. The absolute value of the time stamp is not meaningful.
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Protected method Main
The method to be implemented by user callback classes.
Protected method makeClone
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method removeCppimpl
Public method ToString (Overrides Object..::..ToString()()()().)

Fields

  Name Description
Protected field _callbackIImpl

See Also