⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 functions.txt

📁 C语言开发的微粒群优化算法源程序
💻 TXT
字号:
DD-sum
DD-product
Sphere
Rosenbrock
Alpine
Griewank
Rastrigin
Fifty-fifty
Ackley
Foxholes
Apple_trees
Frequency_Assignment
PSO_for_PSO
<NA>
El_Farol

MyFunction


A few explanations. To understand than, you need the following three files:
PSO.c  (version Simplified Adaptive)
parameters.txt
myfunction.c


1) DD-sum
Find (x1, x2 ..... xDD) so that x1+x2 ... + xDD=S (given target)
Examples of parameters:
function dim  xmin    xmax   target      eps    granul printlevel  save
1         10   1      100     30        0.001      0       1        0
1         10   1      100     30        0.1        1       1        0  // Here the numbers are integers

2) DD-product
Find (x1, x2 ..... xDD) so that x1*x2 ... *xDD=S (given target)
Two examples with integers (factorisation)
function dim  xmin    xmax   target      eps    granul printlevel  save
2         2     2      100    1457       0.1     1       1          0
2         3     2      100    24769      0.01    1       1          0

3) Sphere
Find (x1, x2 ..... xDD) so that x1*x2 ... *xDD=S (given target. Usually 0, for classical tests)

For the following classical functions, please see the C source code
4) Rosenbrock
5) Alpine
6) Griewank
7) Rastrigin
9) Ackley
10) Foxholes 2D

8) Fifty-fifty
Let d be integer_part(DD/2).
Let d1 be d+1.
Find (x1, x2 ..... xDD) so that x1+ ...+ xd = xd1+ ... + xDD
Particularly amusing with integers (just try "manually" !)
function dim  xmin    xmax   target      eps    granul printlevel  save
8        20     1      100     0         0.1       1        1       0
8        20     1       30     0         0.1       1        1       0 


99) MyFunction (well, in fact it is _your_ function)
Have a look at the file myfunction.c and write your own.
If you use is "as is", you can try the following parameters:
function dim  xmin    xmax   target      eps    granul printlevel  save
9        3     2      100     0         0.01      1       1        0 

to find three integer numbers x,y,z so that x^2+y^2=z^2.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -