-
youhua
fortran最优化计算方法常用程序汇编
包括一维最优化部分、无约束优化部分、约束优化部分
0.618法,分数法、二次插值法、三次插值法
共轭梯度法、DFP变尺法(导数)、DFP变尺法(差分)、阻尼最小二乘法、鲍威尔法、模式搜索法、单纯形法
混合罚函数法(SUMT调用DFP)、混合罚函数法(SUMT调用鲍威尔法)、综合约束函数双下降法、可变容差法、复合形法、网格法、随机试验法、解线性规划的单纯形法(fortran optimization calculation method used to assemble
Including one-dimensional optimization section, part of unconstrained optimization, constrained optimization part
0.618, fractional method, quadratic interpolation, cubic interpolation
Conjugate gradient method, DFP becomes ruler Act (derivative), DFP variable scale method (differential), damped least squares method, Powell method, pattern search method, the simplex method
Mixed penalty function method (SUMT call DFP), mixed penalty function method (SUMT call Powell Law), integrated dual descent constraint functions, variable tolerance method, the complex method, grid method, random test, solving linear programming simplex Method)
- 2014-05-21 10:33:13下载
- 积分:1
-
cfd-fortran
有限体积法求解流动和传热问题的经典源代码(Classic source code finite volume method for solving the problem of flow and heat transfer)
- 2013-03-27 09:35:31下载
- 积分:1
-
t_tide_v1.2beta
潮流调和分析程序,非常实用,里面有说明文件,基本原理是采用最小二乘法来求解超定矩阵,各种参数用来控制选择分潮,间隔时间等。(harmonic analysis)
- 2020-06-29 23:40:02下载
- 积分:1
-
最速下降法
说明: 最优化课程中的最速下降法matlab程序,利用了wolfe搜索和armijo线搜索(Matlab program of steepest descent method in optimization course, using Wolfe search and Armijo line search)
- 2021-03-26 18:19:13下载
- 积分:1
-
11087 统计逆序对
说明: Description
设a[0…n-1]是一个包含n个数的数组,若在ia[j],则称(i, j)为a数组的一个逆序对(inversion)。
比如 有5个逆序对。请采用类似“合并排序算法”的分治思路以O(nlogn)的效率来实现逆序对的统计。
一个n个元素序列的逆序对个数由三部分构成:
(1)它的左半部分逆序对的个数,(2)加上右半部分逆序对的个数,(3)再加上左半部分元素大于右半部分元素的数量。
其中前两部分(1)和(2)由递归来实现。要保证算法最后效率O(nlogn),第三部分(3)应该如何实现?
此题请勿采用O(n^2)的简单枚举算法来实现。
并思考如下问题:
(1)怎样的数组含有最多的逆序对?最多的又是多少个呢?
(2)插入排序的运行时间和数组中逆序对的个数有关系吗?什么关系?
输入格式
第一行:n,表示接下来要输入n个元素,n不超过10000。
第二行:n个元素序列。
输出格式
逆序对的个数。
输入样例
5
2 3 8 6 1
输出样例
5(Set a[0... N-1] is a n array containing n numbers. If there is a [i] > a [j] i n the case of I < j, then (i, j) is a n inversion pair of a array.
For example, has five reverse pairs. Please use the idea of "merge sorting algorithm" to achieve the statistics of inverse pairs with O (nlogn) efficiency.
The number of inverse pairs of a sequence of n elements consists of three parts:
(1) The number of reverse pairs in the left half, (2) the number of reverse pairs in the right half, (3) the number of elements in the left half is greater than that in the right half.
The first two parts (1) and (2) are implemented by recursion. To ensure the final efficiency of the algorithm O (nlogn), how should the third part (3) be implemented?
Do not use O (n ^ 2) simple enumeration algorithm to solve this problem.)
- 2019-01-07 23:52:06下载
- 积分:1
-
abaqus to flac小程序
利用abaqus软件建模,然后将inp文件导入flac软件中。(ABAQUS software is used to model, and then the InP file is imported into the FLAC software.)
- 2021-02-06 18:29:56下载
- 积分:1
-
Trilateration-Network
测绘程序,计算测边网各点坐标的评查程序,值得借鉴(Mapping program to calculate the coordinates of each point measured the side-netting of assessment investigative procedures, worth learning)
- 2013-08-20 15:13:21下载
- 积分:1
-
pianxin
计算偏心圆导热计算以及同位网格上的SIMPLE算法
(Calculating thermal calculations and eccentric position on the grid with SIMPLE algorithm)
- 2013-07-02 21:26:11下载
- 积分:1
-
Least-Squre
最小二乘法拟合曲线C++代码,任意的M个数据,任意的次数N(N不易太高)。输出拟合曲线的表达式(Least Squre For ...)
- 2012-04-06 10:03:38下载
- 积分:1
-
Viscoelastic
粘弹正演程序和模型实例,2维数值模拟正演,适应于粘弹介质,(This program can be two-dimensional numerical simulation of acoustic wave equation, Viscoelastic isotropic media.)
- 2013-12-09 15:07:58下载
- 积分:1