↧
Answer by Betcha for OR-tools: Force partial assignments
I'm not 100% sure that it is correct or optimal performance-wise, but it looks like the 3rd constraint could be handled like this:for container, container_obligations in obligations.items(): if not...
View ArticleOR-tools: Force partial assignments
I want to solve an assignment problem: putting items in containers.Each container must contain:a certain amount of items (sizes)certain allowed items (possibilities)at least one subset of items within...
View Article