I'm using Gurobi to solve the model: min c*x s.t. A*x = b for many b's (i.e. a few million), but the same c and A. Right now, I'm looping through all of the potential b's and solving each separately (for some background, I'm computing minimum travel times on a given transit network for different origin/destination combinations, so the b vector just includes a -1,1 for the origin/destination nodes and 0s for all other nodes). However, I wonder if this is the most efficient way of doing this (for example, I think I'm repeating the same pre-solve step in every iteration, and maybe there's a way to avoid doing this).
I'd appreciate any ideas.
Thanks!
Alex