How do I implement a non-balanced MCF problem in MATLAB?
显示 更早的评论
I have to implement minimum cost flow on MATLAB. When my problem is balanced, I'm able to solve the problem using intlinprog of Optimization Toolbox. However when the problem is unbalanced the code throws an error which is understandable.
"Solver stopped prematurely. No integer feasible point found.
Intlinprog stopped because it exceeded the iteration limit while solving the root LP problem, options.RootLPMaxIterations = 30000 (the default value)."
I've read that adding ground nodes to the graph solves the problem (with the excess/deficit of the node set accordingly) However, how do I code the ground node given that I do not have apriori knowledge about the graph?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Traveling Salesman (TSP) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!