MATLAB: Could anyone help me how to partition number into disjoint subnumber in different ways
partition
If i run the command combinat::bell(3) it gives 5.
But i want to get the disjoint partition of {{1, 2, 3}}, {{1}, {2, 3}}, {{2}, {1, 3}}, {{3}, {1, 2}}, and {{1}, {2}, {3}} in 5 different ways. Could anyone help me on this.
If I understand you correctly, you want to force bintprog to take a branch-and-bound step that you specify.
If this is your desire, then I am afraid that the answer is no, you have no control over the internal branch-and-bound steps that bintprog takes.
I do not understand why you want to do this. If you are looking for a better or faster answer, there are other options in bintprog that you can control.
Best Answer