minimize ratio perimeter/sqrt(area​) of a random shape

版本 1.0.0.0 (3.9 KB) 作者: Maxim Vedenyov
Random search used. Result is circle of cause.
592.0 次下载
更新时间 2011/1/4

查看许可证

http://simulations.narod.ru/
Shape is represented as 32-vertex polygone. The program in starts with random shape. In iteration of random search it search minimum perimeter/sqrt(area) each time. In each iteration the code try random position of vertices near current positions. Zone of random search is contracted exponentially. Contraction ratio is 0.99. 1000 iterations are used. So it is 0.99^1000=0.000043 final precision. the shape size is normalized to sqrt(area) each time. Only circle has minimal ratio perimeter/sqrt(area) so as result we have circle.

Run minimal_perimeter.m to see animation.
Function perimeter.m calculates perimeter of the polygone.

minimal_perimeter_avi.m is to make avi-file
minimal_perimeter_gif.m is to make gif-file.

引用格式

Maxim Vedenyov (2024). minimize ratio perimeter/sqrt(area) of a random shape (https://www.mathworks.com/matlabcentral/fileexchange/29914-minimize-ratio-perimeter-sqrt-area-of-a-random-shape), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0