On Tue, 24 Jan 2012, Raketenschnitzel wrote:
The specialty about this is the easy form of the constraint: one column its always the same number. Like that:power1 power2 power3 .... january c1 c2 c3 february c1 c2 c3 ... Is there an easy way to declare such a constraint in one line, or do I really have to make a table with an entry for each row and column?
I forget the exact syntax, but you can do something like this: C[powers] = (c1, c2, c3) V[powers, months] V[p, m] <= C[p] for p in powers, m in months -- 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
