Skip to main content
FRAMES NO FRAMES

Class IloCplex::NetworkCallbackI

Definition file: ilcplex/ilocplexi.h
Map of IloCplex::NetworkCallbackIIloCplex::NetworkCallbackIIloCplex::NetworkCallbackIIloCplex::OptimizationCallbackIIloCplex::CallbackI

An instance of the class IloCplex::NetCallbackI represents a user-written callback in an application that uses an instance of IloCplex with the network optimizer. The callback is executed each time the network optimizer issues a log file message.

The methods of this class are protected for use in deriving a user-written callback class and in implementing the main method there.

If an attempt is made to access information not available to an instance of this class, an exception is thrown.

See Also:

Method Summary
public IloNumgetInfeasibility() const
public IloIntgetNiterations() const
public IloInt64getNiterations64() const
public IloNumgetObjValue() const
protected Callback::TypegetType() const
public IloBoolisFeasible() const
protected NetworkCallbackI(IloEnv env)
Inherited Methods from OptimizationCallbackI
getModel, getNcols, getNQCs, getNrows
Inherited Methods from CallbackI
abort, duplicateCallback, getCplexTime, getDetTime, getEndDetTime, getEndTime, getEnv, getStartDetTime, getStartTime, getType, main
Method Detail

NetworkCallbackI

protected NetworkCallbackI(IloEnv env)

This constructor creates a callback for use with the network optimizer.


getInfeasibility

public IloNum getInfeasibility() const

This method returns the current primal infeasibility measure of the network solution in the instance of IloCplex at the time the invoking callback is executed.


getNiterations

public IloInt getNiterations() const

This method returns the number of network simplex iterations completed so far by an instance of IloCplex at the invoking callback is executed.


getNiterations64

public IloInt64 getNiterations64() const

This method returns the number of network simplex iterations completed so far by an instance of IloCplex at the invoking callback is executed.


getObjValue

public IloNum getObjValue() const

This method returns the current objective value of the network solution in the instance of IloCplex at the time the invoking callback is executed.

If you need the object representing the objective itself, consider the method IloCplex::getObjective instead.


isFeasible

public IloBool isFeasible() const

This method returns IloTrue if the current network solution is primal feasible.


getType

protected Callback::Type getType() const

This method returns the callback type of the invoking callback object.