Skip to content

Commit ef8bb14

Browse files
committed
Add description and logo
1 parent 3244b99 commit ef8bb14

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

assets/cbxpy_logo.png

12.9 KB
Loading

assets/favicon.png

2.02 KB
Loading

index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<!-- CSS for examples -->
1111
<link rel="stylesheet" href="./assets/css/examples.css" />
1212

13+
<link rel="icon" type="image/png" href="/assets/favicon.png" />
14+
<link rel="shortcut icon" type="image/png" href="/assets/favicon.png" />
15+
1316
<!-- This script tag bootstraps PyScript -->
1417
<script type="module" src="https://pyscript.net/releases/2024.1.1/core.js"></script>
1518

@@ -33,7 +36,30 @@
3336
</head>
3437
<body>
3538
<main>
36-
<h1 id="page-title">Consensus-based optimization demo </h1>
39+
<h1 id="page-title">🤝 Consensus-Based Optimization</h1>
40+
41+
<div id="intro">
42+
<p>
43+
This interactive demo showcases <strong>consensus-based optimization</strong> (CBO), a particle-based method
44+
for solving optimization problems through swarm dynamics and stochastic attraction to consensus points.
45+
</p>
46+
47+
<p>
48+
The algorithm is implemented via the
49+
<a href="https://github.com/PdIPS/CBXpy" target="_blank">CBXPy library</a> 🐍.
50+
<div><img src="assets/cbxpy_logo.png" alt="CBXPy Logo" width="300" /></div>
51+
</p>
52+
53+
<p>
54+
⚙️ You can adjust paramters, select different loss functions and drag around the gloabl minimum. The usage is optimized for laptops/desktops but mobile should also work.
55+
</p>
56+
57+
<p style="margin-top: 1em;">
58+
📝 <strong>Credit:</strong> Tim Roith
59+
</p>
60+
</div>
61+
62+
3763
<canvas id="canvas" width="600" height="300" style="border:1px solid black;"></canvas>
3864
<canvas id="loss" width="300" height="150" style="display:none;"></canvas>
3965
<script>

pyscript.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Matplotlib"
22
description = "A simple application showing how to use Matplotlib to generate a graph and display it with PyScript."
3-
packages = ["matplotlib", "scipy", "https://files.pythonhosted.org/packages/3f/af/ddc0366079b447759224d5ad92020eea6082cd9db490ef4c6633d3f63c08/cbx-1.0.1-py3-none-any.whl"]
3+
packages = ["matplotlib", "scipy", "cbx>=1.0.0"]
44

55

66
[files]

0 commit comments

Comments
 (0)