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 で Problem-Based Optimization Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!