plot_feasible.m
plot_feasible(A, b, c, lower_b, upper_b, varargin)
Plots the feasible region of the 2D linear program
maximize f = c'*x
subject to A x <= b
on the region bounded by lower_b and upper_b.
It can plot the region, bounding lines, their intersection points and vertices of the feasible region along with the maximum. Its primary use (for me) is for students learning Linear Algebra.
Its has lots of options for making the plot look pretty, or annotating vertices, etc. And you can put iso-objective function lines across the plot to help. Multiple feasible region plots are also possible, to show overlaps.
Citation pour cette source
Matthew Roughan (2026). plot_feasible.m (https://fr.mathworks.com/matlabcentral/fileexchange/24816-plot_feasible-m), 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.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
