r/excel•
umchilli

Excel solver problem with parallel constraint

Waiting on OP

Hey guys, I've been struggling with this issue, I really hope someone can help, or at least point me in the right direction with google search.

I need to use Excel solver to (linearly) find the quickest overall time from several start nodes to the end node so that each node is covered. Each node has a duration, say 2,3,5, and some are interconnected and they all have to end up in a single final node with 'duration' 0.

I can easily model this and I have the solution working. However, as additional problem, I have the constraint that two of middle nodes 'share resources' so that while one node is running, the other cannot run. I found a solution using binary variable so that either first runs then the second, or second runs, then the first, but that's not really what it's supposed to do I imagine. Hypothetically with node 1 having duration 3, and node 2 having duration 2, it might be more optimal overall to first run 1 duration on node 1, so it has 2 durations left, after that run full node 2, and then finally run remaining 2 durations on node 1. Is there any way to model this linerally?

Posted Oct 2, 2019, 10:44 PM UTC

11
NecessaryPurple21•

This sounds a lot like a variation on the Traveling Salesman problem. Setting aside why you're doing this in Excel, I think it would be a big help if you could provide us a better understanding of your data - for example screenshots and formulas being used right now, and an example of the intended result. A problem this complex is difficult to approach with just a paragraph of explanation.

1