Finding an Optimal Path
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.
Citation pour cette source
Mary Fenelon (2024). Finding an Optimal Path (https://www.mathworks.com/matlabcentral/fileexchange/36321-finding-an-optimal-path), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
PathOptimizationDemo/R2015b
PathOptimizationDemo/R2020a/codeGeneration
PathOptimizationDemo/R2020a
PathOptimizationDemo/R2020a/codeGeneration
Version | Publié le | Notes de version | |
---|---|---|---|
2.0.0.1 | Uploaded the 2.0 version. |
||
2.0.0.0 | R2020a folder: Migrated app to App Designer. Added code generation using MATLAB Coder.
|
||
1.0.0.1 | Updated license |
||
1.0.0.0 |