Mathematical Definition
Input Domain
It can be defined into any input domain but usually evaluated on the hypercube 𝑥𝑖 ∈ [−65.536,65.536], for all 𝑖 = 1, … . , 𝑑.
Global Minima
The function has one global minimum 𝑓(𝑥 ∗ ) = 0, 𝑎𝑡 𝑥 ∗ = (0, … ,0).
Description and Features
The function is continuous function.
The function is convex function.
The function is referred as sum square’s function.
It is also an extension of the axis parallel hyper- ellipsoid function.
The function is unimodal function.
Python Implementation
% Please forward any comments or bug reports in chat
Copyright 2021. INDUSMIC PRIVATE LIMITED.THERE IS NO WARRANTY, EXPRESS OR IMPLIED. WE DO NOT ASSUME ANY LIABILITY FOR THE USE OF THIS PROGRAM. If software is modified to produce derivative works, such modified software should be clearly marked. Additionally, user can redistribute it and/or modify it under the terms of the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the GNU General Public License for more details.
% for any support connect with us on help.indusmic@gmail.com
% Author: Ekta Kumari
import matplotlib.pyplot as plt
import numpy as np
from numpy import *
from numpy import cos
from numpy import pi
from numpy import abs,sqrt
from numpy import meshgrid
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
def f(x1,x2):
return (2*(x1*x1)+(x2*x2))
x1= np.linspace(-65.536,65.536,500)
x2= np.linspace(-65.536,65.536,500)
r_min,r_max=-65.536,65.536
x1,x2=np.meshgrid(x1,x2)
results=f(x1,x2)
figure=plt.figure(figsize=(9,9))
axis=figure.gca(projection='3d')
axis.set_title('Rotated Hyper-Ellipsoid Function')
axis.contour3D(x1, x2, results,450)
axis.plot_surface(x1,x2,results, cmap=cm.YlGn)
axis.view_init(21,42)
axis.set_xlabel('X')
axis.set_ylabel('Y')
axis.set_zlabel('Z')
plt.show()
References:
[1] Jamil, Momin, and Xin-She Yang. "A literature survey of benchmark functions for global optimization problems." International Journal of Mathematical Modelling and Numerical Optimization 4.2 (2013): 150-194.
Commentaires