If I have a model with two integer variables X_it and a Y_i, but the X_it takes on a value based on Y_i - how do I communicate to AMPL/solvers that I would only like to execute branch and bound on Y_i? Does setting priority effectively do this? I would like to make sure that X_it is never considered during this process.
Thanks for the response! I was thinking there might be a benefit to retaining Y and branching/bounding on it rather than a bunch of binaries. I completely disregarded the fact that there would be no guarantee that the X's were binary and not fractional at the nodes.
On Wed, Nov 2, 2022 at 9:54 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
If you set a much higher priority on the Y_i variables than on the X_it variables, then it is likely that the solution will be found and proved without any branching on the X_it variables. However, that is not guaranteed, as each solver has its own methods of making branching decisions.
I can see how Y[i] might be defined by an expression like sum {t in T} t * X[i,t], where sum {t in T} X[i,t] = 1. Then the Y[i] variables could be substituted out of the problem, and necessarily the would not be branched on. I do not see a way to substitute the X[i,t] variables out of the problem, however.
--
Robert Fourer
am...@googlegroups.com