pub unsafe extern "C" fn SCIPgetExprVarExprs(
scip: *mut SCIP,
expr: *mut SCIP_EXPR,
varexprs: *mut *mut SCIP_EXPR,
nvarexprs: *mut c_int,
) -> SCIP_RETCODEExpand description
returns all variable expressions contained in a given expression
The array to store all variable expressions needs to be at least of size the number of unique variable expressions in the expression which is given by SCIPgetExprNVars().
If every variable is represented by only one variable expression (common subexpression have been removed) then SCIPgetExprNVars() can be bounded by SCIPgetNTotalVars(). If, in addition, non-active variables have been removed from the expression, e.g., by simplifying, then SCIPgetExprNVars() can be bounded by SCIPgetNVars().
@note function captures variable expressions