Retrieve Objective Coefficients at Specified Columns and/or Constant Term
Retrieve Objective Coefficients at Specified Columns and/or Constant Term
This is an advanced version of getObjCoefGLPK. Here, j can be an integer vector.
getObjCoefsGLPK(lp, j)
Arguments
lp: An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.
j: Vector of column numbers.
Details
Interface to the C function getObjCoef which calls the GLPK function glp_get_obj_coef.
Returns
The objective coefficient at all specified columns (j) (the corresponding structural variable) is returned. If j is 0, the constant term shift of the objective function is returned.