functions.html

来自「Java实现的遗传算法工具集:GA Playground」· HTML 代码 · 共 30 行

HTML
30
字号
<HTML>
<HEAD>
<TITLE>Created with DiDa</TITLE>
</HEAD>
<BODY>

<H3>Ackley's Path function</H3>

Ackley's Path is a widely used multimodal test function. 

<H4>function definition</H4> 
    f(x)=-a積xp(-b穝qrt(1/n穝um(x(i)^2)))-exp(1/n穝um(cos(c穢(i))))+a+exp(1)<p>
a=20; b=0.2; c=2穚i; i=1:n; <p>
-32.768&lt;=x(i)&lt;=32.768.<p> 

<H4>global minimum</H4> 
f(x)=0; x(i)=0, i=1:n.<p> 

<p>

<H3>Schwefel's function</H3> 

Schwefel's function is deceptive in that the global minimum is geometrically distant, over the parameter space, from the next best local minima. Therefore, the search algorithms are potentially prone to convergence in the wrong direction. 

<H4>function definition</H4> 
f(x)=sum(-x(i)穝in(sqrt(abs(x(i))))), i=1:n;<p>
-500&lt;=x(i)&lt;=500. <p>

<H4>global minimum</H4> 
    f(x)=-n

⌨️ 快捷键说明

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