矩陣的最大特征值的冪法. 對于工程計算而言,矩陣的特征值和特征向量都是相當(dāng)重要和常見的數(shù)據(jù),這里給出的冪法是一種常見的求解方法,用的是迭代的思想。 符號說明: 1A為待求的矩陣, 2Uk,Vk為迭代用的列向量。 3最后的最大特征值maxLamda由最后一次的max(Uk)-----求Uk中的絕對值最大的元素的絕對值.所決定。 而maxLamda所對應(yīng)的特征向量由最后一次迭代的Vk所決定. 主要的想法就是先選一個不為0的初始向量U0!=0,然后按下面的式子迭代。
上傳時間: 2015-06-24
上傳用戶:exxxds
參照棧類模板的例子編寫一個隊列類模板class <T> Queue,私有成員包括:隊首指針Front,隊尾指針Tail,隊列容積max。實現(xiàn):構(gòu)造函數(shù)Queue,析構(gòu)函數(shù),入隊函數(shù)In,出隊函數(shù)Out(每次出隊,后面的元素自動前移一位),判隊列空函數(shù)Empty。并分別用隊列類模板定義int和float對象,調(diào)用各個成員函數(shù)
上傳時間: 2013-12-03
上傳用戶:BIBI
% [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation) % Finds a maximum of a function of several variables. % fmaxga solves problems of the form: % max F(X) subject to: LB <= X <= UB % BestPop--------最優(yōu)的群體即為最優(yōu)的染色體群 % Trace----------最佳染色體所對應(yīng)的目標(biāo)函數(shù)值 % FUN------------目標(biāo)函數(shù) % LB-------------自變量下限 % UB-------------自變量上限 % eranum---------種群的代數(shù),取100--1000(默認(rèn)1000) % popsize--------每一代種群的規(guī)模;此可取50--100(默認(rèn)50) % pcross---------交叉的概率,此概率一般取0.5--0.85之間較好(默認(rèn)0.8) % pmutation------變異的概率,該概率一般取0.05-0.2左右較好(默認(rèn)0.1) % options--------1×2矩陣,options(1)=0二進(jìn)制編碼(默認(rèn)0),option(1)~=0十進(jìn)制編碼,option(2)設(shè)定求解精度(默認(rèn)1e-4)
標(biāo)簽: pmutation BestPop popsize maximum
上傳時間: 2015-07-16
上傳用戶:Altman
FPGA數(shù)字鐘的設(shè)計,用VHDL語言編程,max+plus仿真,可在實際電路中驗證
標(biāo)簽: 數(shù)字
上傳時間: 2015-07-25
上傳用戶:924484786
本軟件在CPLD上實現(xiàn)數(shù)字PWM控制,用Verilog HDL語言編寫,在MAX PLUS II調(diào)試成功,可用
上傳時間: 2015-08-04
上傳用戶:dancnc
一個小程序,用Veilog HDL編寫的,可以用于籃球比賽的倒計時牌,已在max-plusII上仿真通過。
標(biāo)簽: 程序
上傳時間: 2015-08-15
上傳用戶:許小華
1.功能 利用廣義逆求解無約束條件下的優(yōu)化問題(C語言) 2.參數(shù)說明 int m : 非線性方程組中方程個數(shù) int n : 非線性方程組中未知數(shù)個數(shù) double eps1 : 控制最小二乘解的精度要求 double eps2 : 用于奇異值分解中的控制精度要求 double x[n] : 存放非線性方程組解的初始近似值X(0),要求各分量不全為0 int ka : Ka=max{m,n}+1 void (*f)() : 指向計算非線性方程組中各方程左端函數(shù)值的函數(shù)名(用戶自編) void (*s)() : 指向計算雅可比矩陣的函數(shù)名 int ngin() : 函數(shù)返回一個標(biāo)志值 3.文件說明 ngin.c函數(shù)文件 ngin0.c主函數(shù)文件
上傳時間: 2013-12-23
上傳用戶:大三三
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標(biāo)簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
* CONSTRAINTS * This module does not handle data which is considered out of range by the * application(i.e. fixed constants which represent error condition) * * Maximum weight value must be limited to 128 to prevent an overflow * condition during the calculation. * * The internal data type must be large enough to handle the calculations. * The maximum possible internal value * = Max Input Value * (weight - 1) + Max Input Value * If a maximum weight of 128 is used, the internal data type should be 2 * times the size of the input data type.
標(biāo)簽: CONSTRAINTS considered module handle
上傳時間: 2015-09-07
上傳用戶:qunquan
智能機(jī)器小車主要完成尋跡功能,由機(jī)械結(jié)構(gòu)和控制單元兩個部分組成。機(jī)械結(jié)構(gòu)是一個由底盤、前后輔助輪、控制板支架、傳感器支架、左右驅(qū)動輪、步進(jìn)電機(jī)等組成。控制單元部分主要由主要包含傳感器及其調(diào)理電路、步進(jìn)電機(jī)及驅(qū)動電路、控制器三個部分。本設(shè)計的核心為控制器部分,采用Altera MAX7000S系列的EPM7064LC84-15作主控芯片。CPLD芯片的設(shè)計主要在MAX+plusⅡ10.0環(huán)境下利用VHDL語言編程實現(xiàn)。驅(qū)動步進(jìn)電機(jī)電路主要利用ULN2803作為驅(qū)動芯片。
標(biāo)簽: 智能機(jī)
上傳時間: 2015-09-07
上傳用戶:cjf0304
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1