ILOG CPLEX .NET Reference Manual

Cplex.MIPCallback.GetObjCoefs Method (INumVar[], Int32, Int32)

Returns the linear objective function coefficients for a set of variables in the model being solved.

protected virtual double[] GetObjCoefs(
   INumVar[] vars,
   int start,
   int num
);

Parameters

vars
An array containing the variables whose linear objective function coefficients are being queried.
start
The index of the first variable in var for which to query the linear objective function coefficients.
num
The number of consecutive variables in var for which to query the linear objective function coefficients.

Return Value

An array of double values containing the linear objective function coefficients for the specified variables in the problem being solved. If obj is the returned array, obj[j] is the linear objective function coefficient for variable var[j+start], for j = 0, ..., num-1.

See Also

Cplex.MIPCallback Class | ILOG.CPLEX Namespace | Cplex.MIPCallback.GetObjCoefs Overload List