Skip to content

Commit

Permalink
deploy: 2dbdbdc
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoith committed Jan 11, 2024
0 parents commit c83cca3
Show file tree
Hide file tree
Showing 376 changed files with 53,765 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ef6bfc290d10a00f8cd846640cf76085
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/api/dynamic.doctree
Binary file not shown.
Binary file added .doctrees/api/generated/cbx.dynamics.CBO.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/generated/cbx.dynamics.CBS.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/generated/cbx.dynamics.PSO.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/index.doctree
Binary file not shown.
Binary file added .doctrees/api/plotting.doctree
Binary file not shown.
Binary file added .doctrees/api/scheduler.doctree
Binary file not shown.
Binary file added .doctrees/api/utils.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/userguide/dynamics.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/userguide/index.doctree
Binary file not shown.
Binary file added .doctrees/userguide/objectives.doctree
Binary file not shown.
Binary file added .doctrees/userguide/plotting.doctree
Binary file not shown.
Binary file added .doctrees/userguide/sched.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import three_hump_camel
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -2.
y_max = 2.
f = three_hump_camel()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import McCormick
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 3.
y_min = -3
y_max = 4
f = McCormick()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(-0.54719,-1.54719, color='orange', marker='x', markersize=10)
ax0.plot(1.54719, 0.54719, color='orange', marker='x', markersize=10)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Michalewicz
fig = plt.figure(figsize=(15,5))
x_min = 0.
x_max = 4.
y_min = x_min
y_max = x_max
f = Michalewicz()

num_pts_landscape = 200
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ,30, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=30)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Ackley
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -2.
y_max = 2.
f = Ackley()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import eggholder
fig = plt.figure(figsize=(15,5))
x_min = -600
x_max = 600
y_min = x_min
y_max = x_max
f = eggholder()

num_pts_landscape = 200
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ,30, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=30)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import snowflake
fig = plt.figure(figsize=(15,5))
x_min = -2.5
x_max = 2.5
y_min = -2.5
y_max = 2.5
f = snowflake()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.get_cmap('Blues'))
ax0.contour(cs, colors='white', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='blue', marker='x', s=20)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.get_cmap('Blues'))
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Himmelblau
fig = plt.figure(figsize=(15,5))
x_min = -5.
x_max = 5.
y_min = -5.
y_max = 5.
f = Himmelblau()

num_pts_landscape = 250
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=15)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Bukin6
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -2.
y_max = 2.
f = Bukin6()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Rosenbrock
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -1.
y_max = 3.
f = Rosenbrock()

num_pts_landscape = 150
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(1,1, color='orange', marker='x', markersize=10)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import cross_in_tray
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -2.
y_max = 2.
f = cross_in_tray()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=20)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Rastrigin
fig = plt.figure(figsize=(15,5))
x_min = -2.
x_max = 2.
y_min = -2.
y_max = 2.
f = Rastrigin()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Easom
fig = plt.figure(figsize=(15,5))
x_min = 0
x_max = 2. * np.pi
y_min = 0.
y_max = 2. * np.pi
f = Easom()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
from cbx.objectives import Holder_table
fig = plt.figure(figsize=(15,5))
x_min = -10.
x_max = 10.
y_min = -10.
y_max = 10.
f = Holder_table()

num_pts_landscape = 100
xx = np.linspace(x_min, x_max, num_pts_landscape)
yy = np.linspace(y_min, y_max, num_pts_landscape)
XX, YY = np.meshgrid(xx,yy)
XXYY = np.stack((XX.T,YY.T)).T
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2))
Z[:,:,0:2] = XXYY
ZZ = f(Z)

ax0 = fig.add_subplot(121)
ax1 = fig.add_subplot(122, projection='3d')
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet)
ax0.contour(cs, colors='orange', alpha=0.2)
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=20)
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet)
ax0.set_title('Contour plot')
ax1.set_title('Surface plot')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading

0 comments on commit c83cca3

Please sign in to comment.