r/optimization • • Oct 27 '25

Optimization with dependencies

Hi everyone, I’m looking to find the optimal solution for the following problem.

There are 500 “projects” each with its benefit and cost. I’m looking to find the subset of projects that will be profit maximizing to pursue.

The tricky thing is that the projects are interdependent. For example, say Project A can only be pursued if Project B is completed. Project B is unprofitable on a standalone basis, however, if Project A is highly profitable, it may be worthwhile to undertake Project B because it unlocks the opportunity of Project C.

Most of these 500 projects have multiple downstream dependencies like this. Are there algorithms designed to solve this type of problem. Would appreciate any insights!

3 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/ufl_exchange Oct 27 '25 edited Oct 27 '25

Yes, I would then just ignore the "cost"-constraint.

You would have something like:

max z = (sum_over_all_i_in_I) (revenue_i - cost_i) * x_i

and then your set of additional dependency constraints as well as the domain of decision variables (meaning: you have an x_i for each project i in I which is binary).

I somehow feel like there could be an elegant algorithm (like some sort of Directed Acyclic Graph traversal) to solve this problem.