This can be implemented as follows. Our notation is again:
An example solution can look like:
I am a full-time consultant and provide services related to the design, implementation and deployment of mathematical programming, optimization and data-science applications. I also teach courses and workshops. Usually I cannot blog about projects I am doing, but there are many technical notes I'd like to share. Not in the least so I have an easy way to search and find them again myself. You can reach me at erwin@amsterdamoptimization.com.
Interesting models. thanks for sharing. Another followup:
ReplyDeletewhat if i have a limit P on the number of patterns (p) used?
I think that would require some thought. Putting counting active patterns in the master would make it a MIP.
ReplyDeleteHi Erwin, this is very good! Thanks so much for sharing! btw, I'm trying to implement this with glpk and regarding the upper indexes k(p), I'm not sure how to implement it. Is this a function that only helps you know which pattern and variables belongs to which raw material? or is it somehow implemented as a bigger matrix?
ReplyDeleteThanks, Dan
k(p) is a mapping from a given cutting pattern p to a raw material width. Could just be an extra array indexed by a pattern number but other data structures are also possible,
ReplyDeleteGot it. Thanks Erwin!
ReplyDelete