ILOG CPLEX .NET Reference Manual

Cplex.MIPCallback.GetObjCoefs Method (INumVar[])

Returns the linear objective function coefficients for an array of variables in the model being solved.

protected virtual double[] GetObjCoefs(
   INumVar[] vars
);

Parameters

vars
An array of variables whose linear objective function coefficients are being queried.

Return Value

An array of double values containing the linear objective function coefficients for the specified variables in the problem being solved. If the returned array is called obj, obj[j] is the linear objective function coefficient for variable var[j].

See Also

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