pub struct NegativeReinforcement<T> { /* private fields */ }Expand description
Velocity update with negative reinforcement, global and current best and worst positions. v_i = xi * (v_i + phi_best_personal * rb_p * (p_best_i - x_i) + phi_best_current * rb_c * (c_best_i - x_i) + phi_best_global * rb_g * (g_best_i - x_i) - phi_worst_personal * rw_p * (p_worst_i - x_i) - phi_worst_current * rw_c * (c_worst_i - x_i) - phi_worst_global * rw_g * (g_worst_i - x_i))
v_i - velocity projection for dimension i,
p_best_i - personal best coordinate,
c_best_i - best coordinate for current swarm,
g_best_i - global best coordinate,
p_worst_i - personal worst coordinate,
c_worst_i - worst coordinate for current swarm,
g_worst_i - global worst coordinate,
xi - parameter,
x_i - current coordinate,
phi_best_personal, phi_best_current, phi_best_global, phi_worst_personal, phi_worst_current, phi_worst_global - parameters,
rb_p, rb_c, rb_g, rw_p, rw_c, rw_g - random values in (0, 1),