Originally posted by: bendinio
Hi!
I'm about to implement an algorithm using ILOBRANCHCALLBACK with passing
NodeData through the search-tree. I defined my NodeData class as follows:
class passNext : public IloCplex::MIPCallbackI::NodeData {
public:
IloInt level;
IloIntArray sel_vars;
IloIntArray sel_vals;
passNext();
passNext(IloInt lvl, IloIntArray vars, IloIntArray vals) {
level = lvl + 1;
sel_vars = vars;
sel_vals = vals;}
passNext(IloInt lvl, IloInt var, IloInt val) {
level = lvl + 1;
sel_vars.add(var);
sel_vals.add(val);}
~passNext(){}; };
I'm compiling under Microsoft Visual Studio 2008 (C++) and there occurs no
error while compiling, though the execution fails on creating an object
of passNext. Visual Studio redirects me to the osfinfo.c file.
I did a lot of searching for real examples of NodeData being used to pass
information to subnodes, but i can't find anything. So I would be glad if
somebody could at least give his opinion or maybe the solution.
Thanks for reading.
bendinio
#CPLEXOptimizers#DecisionOptimization