[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] MIP - Simple? Problem
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] MIP - Simple? Problem |
Date: |
Sat, 12 Mar 2016 11:41:49 +0300 |
> 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.