用matlab编写数值优化方法(最速下降法,惩罚函数法),具体题目如下:
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/08/31 22:03:44
用matlab编写数值优化方法(最速下降法,惩罚函数法),具体题目如下:
1.Unconstrained Minimization
Minimize following quadratic functions by resorting to the steepest descent.Use different starting points and discuss the results.
(A)\x05f(x) = 2x12 + x22 _2x1x2 + 8x1 _6x2 +5\x05
(B) f(x) = 100x12 + x22 _2x1x2 _198x1 + 99
(C) f(x) = x12 + x22 + 2x1x2 _2x1 + 1
2.Quasi-unconstrained Minimization
You are provided with two main FORTRAN programs (2D.for and 10D.for) calling a subroutine (QUASI.for).This subroutine has to be completed by you to solve quadratic unconstrained minimization problems with the steepest descent method.
First introduce in QUASI.for the same changes as in part 1.You must therefore introduce lower and upper bounds on the variables.
The following quadratic functions are considered:
(A) f(x) = 2x12 + x22 _2x1x2 + 8x1 _6x2 +5\x05\x05\x05(2D.for)
Case 1:5 > xi > -5
Case 2:5 > xi > 0
Case 3:1 > xi > -5
Case 4:1 > xi > 0
(B) (10D.for)
Case 1:10 > xi > -10
Case 2:5 > xi > -5
Case 3:5 > xi > 0
Case 4:0 > xi > -5
Case 5:10 > xi > 0
Case 6:0 > xi > -10
3.Constrained Minimization
Consider the following quadratic problem with the constrained minimization.You must solve it by developing the programs with the internal penalty method and external penalty method respectively.
Use the different the penalty factors and discuss the results.
min (x1-1)2+(x2-1)2
s.t.x1+x2-10
1.Unconstrained Minimization
Minimize following quadratic functions by resorting to the steepest descent.Use different starting points and discuss the results.
(A)\x05f(x) = 2x12 + x22 _2x1x2 + 8x1 _6x2 +5\x05
(B) f(x) = 100x12 + x22 _2x1x2 _198x1 + 99
(C) f(x) = x12 + x22 + 2x1x2 _2x1 + 1
2.Quasi-unconstrained Minimization
You are provided with two main FORTRAN programs (2D.for and 10D.for) calling a subroutine (QUASI.for).This subroutine has to be completed by you to solve quadratic unconstrained minimization problems with the steepest descent method.
First introduce in QUASI.for the same changes as in part 1.You must therefore introduce lower and upper bounds on the variables.
The following quadratic functions are considered:
(A) f(x) = 2x12 + x22 _2x1x2 + 8x1 _6x2 +5\x05\x05\x05(2D.for)
Case 1:5 > xi > -5
Case 2:5 > xi > 0
Case 3:1 > xi > -5
Case 4:1 > xi > 0
(B) (10D.for)
Case 1:10 > xi > -10
Case 2:5 > xi > -5
Case 3:5 > xi > 0
Case 4:0 > xi > -5
Case 5:10 > xi > 0
Case 6:0 > xi > -10
3.Constrained Minimization
Consider the following quadratic problem with the constrained minimization.You must solve it by developing the programs with the internal penalty method and external penalty method respectively.
Use the different the penalty factors and discuss the results.
min (x1-1)2+(x2-1)2
s.t.x1+x2-10
例1 求 f = 2 在0
matlab 最速下降法求解
关于matlab最优化中fmincon函数
用matlab的optimization工具箱遗传算法优化函数,被优化的函数和条件约束如下,请问为会有报错(图片)
用matlab编写函数
编写一个MATLAB函数,实现如下分段函数 要求如下:
我在用matlab编写一地震波数值模拟程序,运行时总显示有错,求高手指教.程序如下
编写一个matlab程序,但是算出了的结果不是一个数值,而是一大堆算式……具体程序如下
如何编写MATLAB程序画函数图像 函数如下
什么是记忆优化法记忆优化法包括什么具体的小方法?
matlab中eig函数应用 matlab中提供算具体数值结构的阵型和频率的方法,这个函数能算带字母的结构吗?
(2) 设方程式为y’=-40y,y(0)=2用欧拉数值方法与ode45求方程式的数值解 请大神用MATLAB编写啊
用MATLAB解题(用数值积分法)