<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>典型的单目标问题 on MU</title><link>https://choy-mutao.github.io/pso_30/problems/so/</link><description>Recent content in 典型的单目标问题 on MU</description><generator>Hugo</generator><language>zh-cn</language><atom:link href="https://choy-mutao.github.io/pso_30/problems/so/index.xml" rel="self" type="application/rss+xml"/><item><title>Parabola(Sphere) Formula</title><link>https://choy-mutao.github.io/pso_30/problems/so/parabola/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://choy-mutao.github.io/pso_30/problems/so/parabola/</guid><description>Code 我们先简单看一段代码, 这是 SPSO 中的一个测试函数
C #include &amp;#34;structs.h&amp;#34; double ParabolaShpere(struct position xs, double p) { int D = xs.size; // 粒子群的 d-dimension double f = 0, xd; p = 0; // Shift for (int d = 0; d &amp;lt; D; d++) { xd = xs.x[d] - p; f = f + xd * xd; } return f; } 数学解释 如果我们有一个 点 \(x = (x_1, x_2, \cdots, x_D)\), 则这段代码的输出为: \(f = \sum_{d=0}^{D-1}(x_d - p)^2\), 这就是点 \(x\) 到 \(P = (p, p, \cdots, p)_D\) 的欧几里得范数的平方;</description></item></channel></rss>