title: 2D bin packing with predefined gaps in container
body: <p>I have a problem with optimal placing of rectangular objects with different size and amount in rectangular container. The problem can be perfectly solved with the one of 2D bin packing algorithms but only on empty container. For me it is almost always not a case. My containers can have a restricted places where no object can be placed.
  <a href="https://i.stack.imgur.com/V463L.png" rel="nofollow noreferrer">Packing example</a></p>
  
  <p>Surely I am not the first one who encountered this kind of problem and I hope someone already developed a good solution for it. Anything is good: book references, articles, code snippets, etc.
  Formal algorithms are prefered upon neural networks and this kind of things. </p>