-
优化设计中共轭梯度法,单纯形法等方法的matlab代码
《优化设计》这门课程中的优化方法的作业,代码思路清晰,运行后没问题。包括,powell法,共轭梯度法,牛顿法,阻尼牛顿法,单纯形法,变尺度法等等。梯度法在第二个目标函数优化时并没有达到理想的点,陷入局部最优,阻尼牛顿法在第二个目标
函数处也精度不高。 用共轭梯度法配合牛顿法一维搜索来第二个目标函数时出现了 NaN 的情况, 是因为牛顿法的代码中运行时出现了分母为0的情况, 但是我在分母加了一个很小的数0.000001之后还会出
现,而已开始用变尺度法和牛顿法优化的时候也出现的 NaN 问题就消失了
- 2022-02-07 22:58:22下载
- 积分:1
-
我的课程设计:实现任意长整数的求和。自己写的哦
我的课程设计:实现任意长整数的求和。自己写的哦 -my program: get the sum of arbitrary array
- 2022-02-01 06:33:11下载
- 积分:1
-
Repayment of the principal Act, such as the original C code, based on matlab. Th...
等本金法还款C的原代码,基于matlab.此为1.0版,以后会增加2.0版.大家支持.-Repayment of the principal Act, such as the original C code, based on matlab. This is version 1.0, version 2.0 will increase. U.S. support.
- 2022-02-21 20:09:02下载
- 积分:1
-
fortran对称正定矩阵求逆
可以用来计算对称正定矩阵的逆矩阵,比通常的求逆程序的计算效率快很多,经过测试很好用,计算非常准确,使用方便,与大家共享。
- 2022-05-19 01:47:52下载
- 积分:1
-
数字罗盘HMC5883L的LPC1769
该项目展示了如何使用HMC5883L磁力作为数字罗盘,并打印出值度在控制台上显示,其中磁力面临的方向。范围是0-359度,其中0表示北,90是东,180是南部和270是北方。但是,不包括倾斜补偿。h和.c文件包含随主程序。I2C用于磁力和数字罗盘之间的通信。我提到http://bildr.org/2012/02/hmc5883l_arduino/的代码,改变以适合LPC1769。你可以找到更多的信息有关引脚连接。就个人而言,我用4.7K欧姆上拉电阻。
- 2023-05-30 15:45:03下载
- 积分:1
-
最小生成树的两种算法实现
资源描述最小生成树的两种算法实现,是中国顶尖名校——北京航空航天大学的计算机软件基础(数据结构)课程作业;完成很好,可以给数据结构入门使用
- 2023-08-30 11:55:03下载
- 积分:1
-
一般的数值求解算法
一般的数值求解算法-general numerical algorithm
- 2023-04-12 10:20:03下载
- 积分:1
-
这是一个简单的演示如何评价文本的数学表达式
This a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functions. The code consists of
three simple classes: 1) Calc - which does the main calculations, 2) Stack -
which is used to push and pop intermediate operators and numbers and 3)
Symbol Table. The symbol table is a collection of calc symbols, a type structure
consisting of various elements, including the expression name, function name,
and the final value of the expression The evaluation procedure is done in three
steps: 1) simplify the expression by removing all the elements within () and
storing them in subexpressions within the symbol table. 2) Each of these sub
expressions are then converted to RPN format (Reverse polar notation) and
evaluated 3) Finally, the main expression is converted to RPN and evaluated-This is a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functi
- 2022-02-20 06:26:41下载
- 积分:1
-
拉格朗日、牛顿、分段线性插值
算法需要的是针对同一组数据,采用拉格朗日法,牛顿插值法,分段线性插值法来进行比较不同算法下同一数据的精度情况和误差情况
- 2022-04-30 11:02:51下载
- 积分:1
-
层次聚类算法
层次聚类 层次聚类算法与之前所讲的顺序聚类有很大不同,它不再产生单一聚类,而是产生一个聚类层次。说白了就是一棵层次树。介绍层次聚类之前,要先介绍一个概念——嵌套聚类。
- 2022-07-24 14:59:20下载
- 积分:1