You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal: To construct a path that has the shortest distance.
Here I implemented Pyomo framework to solve the Mixed-Integer Linear Programming(MILP) optimization problem, and make comparison with Greedy Algorithm.
Directed Diagram:
Steps:
Define Parameters, Variables, and Sets. (see notebook)
Mathematical formulation: Define object function and constraints.(see notebook)
Optimization programming.
The solution by Pyomo framework with total distance 20.
The solution by Greedy Heuristic Algorithm with total distance 25.
Conclusion:
With Pyomo framework, we got the optimal solution 20.
Through Greedy Heuristic Algorithm, we got the optimal solution 25, which demonstrates there is no algorithms that always provides the best solution. It depends on the problem statement and objective.