Originally posted by: S.U.N.
Hello,
Is it possible to change the pointer of a node_userhandle within the cutcallback procedure ?
In my branch-and-cut the best variable to branch on is known at the end of the cutcallback if no cuts is found. I would like to assign this information to the node in the cutcallback procedure to avoid having to recompute it again at the start of the branchcallback. (Can be time-consuming)
Having the possibility to change the pointer itself (the address it points to, instead of the content), would allow me to simply create a fixed array "(int) VAR" where "VAR(i)=i", and then assign to the node a pointer to the address of "VAR(variable_to_branch_on)". (Therefore, no need to add new cells during branching and no need to handle the destruction of cells assigned to a deleted node).
So, how can I change the pointer of a node_userhandle from the cutcallback procedure ?
Best regards,
Sandra
#CPLEXOptimizers#DecisionOptimization