Originally posted by: A.Malik
Hello All,
I am using a branch-and-bound based algorithm for a non-linear problem with continuous variables only. At every iteration, I branch from a node with lowest lower bound to left and right node. Now, to solve the left and right node I would like to read the optimal basis of the parent node. I know using cplex.readbasis(), I can read the optimal basis and using cplex.writebasis() I can write optimal basis. However, in my case the algorithm jumps from node to node in no sequence. For example:- At root node 0 (branched to node 1 and 2), I realized I should branch from node 1 and kept on branching on node 1 branch, and never touched node 2. Now, after 10 iterations the algorithm tells me that I need to branch from node 2, now to solve the child nodes I need optimal basis of node 2, which I don't have because node 2 is history. So, is there a way to create a basis file for each node of this B&B tree. Something like: cplex.writebasis("Optimal_Basis_At_Node_%d.bas", current_node);. BTW I tried this and cplex says too many arguments.
Thanks for your time in advance.
#CPLEXOptimizers#DecisionOptimization