Originally posted by: Rafael Colares
I'm sorry to insist Daniel. I have seen the doc but it remains unclear to me how I should procede to solve my problem.
The getBranch() method requires IloNumVarArray vars, IloNumArray bounds, IloCplex::BranchDirectionArray dirs, IloInt i as entry parameters, where i is the i-th branch and thus must be between 0 and getNbranches()-1.
Consider that IloNumVarArray S_vec is my vector of not-yet fixed variables with corresponding new bounds stored in IloNumArray S_bounds and the respective directions on which to branch stored in IloCplex::BranchDirectionArray S_dirs. Then, I should call getBranch(S_vec, S_bounds, S_dirs, n) for n in 0...getNbranches()-1?
The return value would be the num with which I should call makeBranch(IloInt num, NodeData * data=0) ? Or should I somehow pass the information of S_vec, S_bounds, S_dirs as a NodeData * data?
Initially, I thought I could just use makeBranch(const IloIntVarArray vars, const IloNumArray bounds, const IloCplex::BranchDirectionArray dirs, IloNum objestimate, NodeData * data=0) with vars = S_vec U cplexVar, where cplexVar is the branching variable selected by CPLEX...
Again, I am sorry to be so insistent, but unfortunately the doc could not help me and I could not find any examples using getBranch method...
Thanks for your attention.
#CPLEXOptimizers#DecisionOptimization