XPRBgetbyname
PurposeSynopsisvoid *XPRBgetbyname(XPRBprob prob, const char *name, int type);
Arguments
prob Reference to a problem. name The name of the object. type The type of the object sought. This is one of:
XPRB_VAR XPRB_ARR XPRB_CTR XPRB_SOS XPRB_IDX Return valueReference to a BCL object of the indicated type if function executed successfully, NULL if object not found or in case of an error.ExampleThis example finds the variable with the name abc3.XPRBprob prob; XPRBvar x1; ... x1 = XPRBgetbyname(prob, "abc3", XPRB_VAR);Further informationThe function returns the reference to an object of the indicated type or NULL. The same name may be used for objects of different types within one problem definition.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.