1 / 7
文档名称:

优化设计上机作业-杨洋.doc

格式:doc   大小:99KB   页数:7页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

优化设计上机作业-杨洋.doc

上传人:蓝天 2021/10/21 文件大小:99 KB

下载得到文件列表

优化设计上机作业-杨洋.doc

相关文档

文档介绍

文档介绍:中国地质大学(武汉)
优化设计上机实验报告
……基于Matlab软件的数学模型分析
学 院: 机械与电子信息学院
专业班级: 072132班
任课老师: 陈祯
学生姓名: 杨洼
优化设计上机作业
求解如下最优化问题
minf(x) = 一2兀]_ 6x2 + 彳 _ 2xrx2 +
subject to 旺 + 兀2 § 2
-%! + 2x2 <2
x2 > 0
步骤1:数学模型分析与建立
minf(x) = 一2兀]_ 6x2 + 彳 _ 2xxx2 +
subject to xi+x^2
-%! + 2x2 < 2
x2 > 0
步骤2: matlab程序编辑
clear
h=[2 -2;-2 4];
f=[-2;-6];
a=[l 1;-1 2];
b=[2;2];
lb=[0;0];
[x,favl]=quadprog(h,f,a,b,[],[],lb)
步骤3: matlab运行结果
Warning: Large-scale method does not currently solve this problem formulation,
switching to medium-scale method.
> In quadprog at 236
Optimization

favl =
-
巨° 編辑器-F:\MATLAB\U ntitl ed .m
| ~X 1 +
— clear
- h=[2 -2 -2 4];
- f=[・2;-6];
一 a=:l 1:-1 2];
- b=[2;2];
- lb=[0;0]:
一 [x, favl]=quadprog (h, f, a, b, [], [], lb)
①不熟悉MATLAB?观看此磁,查看示倪或者阅读快速入门.
Kinimum found that satisfies the constraints・
Optimization completed because the objective function is non-decreasing in feasible directions, to within the default value of the function tolerance, and constraints are satisfied to within the default value of the constraint tolerance.
〈stopping criteria details〉


A
二、某农场拟修建一批半球壳顶的圆筒形谷仓,计划每座谷仓容积为 300立方米,圆筒半径不得超过3米,高度不得超过10米。半球壳 顶的建筑造价为每平方米150元,圆筒仓壁的造价为每平方米120元, 地坪造价为每平方米50元,求造价最小的谷仓尺寸为多少?
步骤1:数学模型分析与建立
Min f(x) = 350^r2 + 2407rrh
Subject to 7cr2h +—nr" -300 = 0
0 < r < 3