> The other part was how to use MathProg to generate a specific pattern > within a row in a binary array. In my trivial example I'm saying my > worker must work 3 sequential hours, so in my case a the array is a > 5x5, a row has 5 element and my pattern happens to be 3 sequential > ones so > 1 1 1 0 0, 0 1 1 1 0, or 0 0 1 1 1 would all be valid rows >
Look at the example glpk/examples/pbn/pbn.mod that models similar constraints. _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
