Finding an Optimal Path

版本 (1.1 MB) 作者: Mary Fenelon
Solve the path planning problem of going through a vector field of wind in the least possible time using MATLAB and Optimization Toolbox.
5.5K 次下载
更新时间 2020/4/9


This demo shows how to use MathWorks products to solve a path-planning problem.

The objective is to find the optimal path (path of least time) through a randomly generated vector field of wind values.

A Live Script shows how to set up both time-independent and time-dependent versions of the optimization problem.

An app created with App Designer shows an interactive way to do this analysis. The path may be defined by dragging control points with the mouse and the parameters (path distance and time) are updated on-the-fly.

Another Live Script shows how to use MATLAB Coder to generate C/C++ code for the optimization step and compares its run time to that of using MATLAB code.

The scripts and GUIDE app used in the “Finding Optimal Path Using Optimization Toolbox” video by Teja Muppirala are in the R2015b folder.


Mary Fenelon (2024). Finding an Optimal Path (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Multiobjective Optimization 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!



版本 已发布 发行说明

Uploaded the 2.0 version.

R2020a folder: Migrated app to App Designer. Added code generation using MATLAB Coder.
R2015b folder: Fixed GUIDE app.

Updated license