SCIPgetNObjVars

Function SCIPgetNObjVars 

Source
pub unsafe extern "C" fn SCIPgetNObjVars(scip: *mut SCIP) -> c_int
Expand description

gets number of active problem variables with a non-zero objective coefficient

@note In case of the original problem the number of variables is counted. In case of the transformed problem the number of variables is just returned since it is stored internally

@return the number of active problem variables with a non-zero objective coefficient

@pre This method can be called if @p scip is in one of the following stages: - \ref SCIP_STAGE_PROBLEM - \ref SCIP_STAGE_TRANSFORMED - \ref SCIP_STAGE_INITPRESOLVE - \ref SCIP_STAGE_PRESOLVING - \ref SCIP_STAGE_EXITPRESOLVE - \ref SCIP_STAGE_PRESOLVED - \ref SCIP_STAGE_INITSOLVE - \ref SCIP_STAGE_SOLVING - \ref SCIP_STAGE_SOLVED