On Sun, 21 Oct 2012, Meketon, Marc wrote:
Xypron used "M" as a large constant (e.g., 9999). Not as a binary variable.param M := 9999; var B{J,K} >= 0; s.t. a{j in J}: -M*sum{k in K}B[j,k] <= A[j] <= M*sum{k in K}B[j,k];
Simply picking a large value for one's big M is a bad idea. One should try to at least approximate the smallest valid value. M appears twice. Probably they should be two different big Ms. -- Michael [email protected] "On Monday, I'm gonna have to tell my kindergarten class, whom I teach not to run with scissors, that my fiance ran me through with a broadsword." -- Lily _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
