dynamic_programming​_shortestpath

版本 1.1 (3.0 KB) 作者: Warut Boonphakdee
Solve the shortest path problem with dynamic programming
755.0 次下载
更新 2017/11/30

查看许可证

This code was designed for solving the shortest path problem with dynamic programming approach. It can run on large-scale problem as your required. Firstly, user must write the window.m file as this stagecoach problem. example.
cost=[4 11 7 0 0 0 0 0 0 0
0 0 0 9 6 0 12 0 0 0
0 0 0 0 2 2 5 0 0 0
0 0 0 8 9 0 5 0 0 0
0 0 0 0 0 0 0 3 4 0
0 0 0 0 0 0 0 2 0 0
0 0 0 0 0 0 0 5 4 0
0 0 0 0 0 0 0 7 8 0
0 0 0 0 0 0 0 0 0 12
0 0 0 0 0 0 0 0 0 13];
[m,n]=size(cost);
[optpath,totalcost ] = dynamic_programming_shortestpath(cost,n )
If you have any questions please contact me : warutboon@yahoo.com

引用格式

Warut Boonphakdee (2026). dynamic_programming_shortestpath (https://ww2.mathworks.cn/matlabcentral/fileexchange/64476-dynamic_programming_shortestpath), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息
标签 添加标签
版本 已发布 发行说明
1.1

Rectify any mistake code
Rectify any mistake code
Rectify any mistake code

1.0.0.0

Review the name of its function file
Change its title in order to search easily with google

Change its title to search easily with google