GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — genoxide/examples at main · tachsin/genoxide

Expand file tree

/

examples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

examples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
abs_typed
abs_typed
 
 
accuracy_and_size
accuracy_and_size
 
 
ackley
ackley
 
 
adam
adam
 
 
asynchronous
asynchronous
 
 
axis_parallel_ellipsoid
axis_parallel_ellipsoid
 
 
bayesian_optimization
bayesian_optimization
 
 
beale
beale
 
 
bent_cigar
bent_cigar
 
 
bnh
bnh
 
 
bo_asynchronous
bo_asynchronous
 
 
bo_constrained
bo_constrained
 
 
bo_hartmann6
bo_hartmann6
 
 
bohachevsky1
bohachevsky1
 
 
bohachevsky2
bohachevsky2
 
 
bohachevsky3
bohachevsky3
 
 
booth
booth
 
 
branin
branin
 
 
buche_rastrigin
buche_rastrigin
 
 
c1_dtlz1_3obj
c1_dtlz1_3obj
 
 
c1_dtlz3_3obj
c1_dtlz3_3obj
 
 
c2_dtlz2_3obj
c2_dtlz2_3obj
 
 
c3_dtlz1_3obj
c3_dtlz1_3obj
 
 
c3_dtlz4_3obj
c3_dtlz4_3obj
 
 
cantilever_beam
cantilever_beam
 
 
car_side_impact
car_side_impact
 
 
car_side_impact_3obj
car_side_impact_3obj
 
 
cart_pole
cart_pole
 
 
cec2006_g01
cec2006_g01
 
 
cec2006_g02
cec2006_g02
 
 
cec2006_g03
cec2006_g03
 
 
cec2006_g04
cec2006_g04
 
 
cec2006_g05
cec2006_g05
 
 
cec2006_g06
cec2006_g06
 
 
cec2006_g07
cec2006_g07
 
 
cec2006_g08
cec2006_g08
 
 
cec2006_g09
cec2006_g09
 
 
cec2006_g10
cec2006_g10
 
 
cec2006_g11
cec2006_g11
 
 
cec2006_g12
cec2006_g12
 
 
cec2006_g13
cec2006_g13
 
 
cec2006_g14
cec2006_g14
 
 
cec2006_g15
cec2006_g15
 
 
cec2006_g16
cec2006_g16
 
 
cec2006_g17
cec2006_g17
 
 
cec2006_g18
cec2006_g18
 
 
cec2006_g19
cec2006_g19
 
 
cec2006_g20
cec2006_g20
 
 
cec2006_g21
cec2006_g21
 
 
cec2006_g22
cec2006_g22
 
 
cec2006_g23
cec2006_g23
 
 
cec2006_g24
cec2006_g24
 
 
constr
constr
 
 
continuation
continuation
 
 
convex_c2_dtlz2_3obj
convex_c2_dtlz2_3obj
 
 
convex_dtlz2
convex_dtlz2
 
 
ctp1
ctp1
 
 
ctp2
ctp2
 
 
ctp3
ctp3
 
 
ctp4
ctp4
 
 
ctp5
ctp5
 
 
ctp6
ctp6
 
 
ctp7
ctp7
 
 
ctp8
ctp8
 
 
das_cmop1
das_cmop1
 
 
das_cmop2
das_cmop2
 
 
das_cmop3
das_cmop3
 
 
das_cmop4
das_cmop4
 
 
das_cmop5
das_cmop5
 
 
das_cmop6
das_cmop6
 
 
das_cmop7
das_cmop7
 
 
das_cmop8
das_cmop8
 
 
das_cmop9
das_cmop9
 
 
dc1_dtlz1_3obj
dc1_dtlz1_3obj
 
 
dc1_dtlz3_3obj
dc1_dtlz3_3obj
 
 
dc2_dtlz1_3obj
dc2_dtlz1_3obj
 
 
dc2_dtlz3_3obj
dc2_dtlz3_3obj
 
 
dc3_dtlz1_3obj
dc3_dtlz1_3obj
 
 
dc3_dtlz3_3obj
dc3_dtlz3_3obj
 
 
deceptive_trap
deceptive_trap
 
 
different_powers
different_powers
 
 
disc_brake
disc_brake
 
 
discus
discus
 
 
dixon_price
dixon_price
 
 
double_pole
double_pole
 
 
double_pole_no_velocities
double_pole_no_velocities
 
 
dtlz1_3obj
dtlz1_3obj
 
 
dtlz2_3obj
dtlz2_3obj
 
 
dtlz3_3obj
dtlz3_3obj
 
 
dtlz4_3obj
dtlz4_3obj
 
 
dtlz5_3obj
dtlz5_3obj
 
 
dtlz6_3obj
dtlz6_3obj
 
 
dtlz7_3obj
dtlz7_3obj
 
 
dtlz8_3obj
dtlz8_3obj
 
 
dtlz9_3obj
dtlz9_3obj
 
 
easom
easom
 
 
eggholder
eggholder
 
 
fonseca_fleming
fonseca_fleming
 
 
four_bar_truss
four_bar_truss
 
 
gear_train
gear_train
 
 

README.md

Outline

Examples

Each example is a folder with the same program in Rust (main.rs) and Python (main.py), and a README.md that describes the problem, cites its source and gives the known optimum. The README's YAML front matter (title, category, summary, reference, reference_url, optimum, languages, order) is what the docs site builds its example pages from. CI runs every example in both languages. The problems of one paper (ZDT, DTLZ, WFG, CEC 2006...) share an optional family, all in one category: the project page shows them as tabs of one another, labelled by the optional tab (the title when absent), and the docs site's navigation in a section of their own.

Both versions use the same algorithm, settings and seed, and print the same output. The exception is a fitness function in numpy with functions such as cosine, whose last bit can differ from Rust's: the runs then drift apart. The test problems of genoxide.problems are evaluated in Rust in both languages, with genoxide's portable math, so their runs don't, on any platform.

Run a Rust example from the root of the repository:

cargo run --release --example tsp_berlin52

and a Python one after pip install genoxide:

python examples/tsp_berlin52/main.py
Example Category Languages Interactive run
OneMax binary Rust, Python tachsin.gr
LeadingOnes binary Rust, Python tachsin.gr
Deceptive trap binary Rust, Python tachsin.gr
Royal road R1 binary Rust, Python tachsin.gr
Royal road R2 binary Rust, Python tachsin.gr
NK landscape binary Rust, Python tachsin.gr
0/1 knapsack constrained Rust, Python tachsin.gr
N-Queens 8×8 permutation Rust, Python tachsin.gr
N-Queens 16×16 permutation Rust, Python tachsin.gr
N-Queens 32×32 permutation Rust, Python tachsin.gr
N-Queens 64×64 permutation Rust, Python tachsin.gr
N-Queens 128×128 permutation Rust, Python tachsin.gr
Travelling salesman (berlin52) permutation Rust, Python tachsin.gr
Job shop scheduling (ft06) permutation Rust, Python tachsin.gr
Sphere continuous Rust, Python tachsin.gr
Axis-parallel ellipsoid continuous Rust, Python tachsin.gr
Schwefel 1.2 continuous Rust, Python tachsin.gr
Schwefel 2.21 continuous Rust, Python tachsin.gr
Schwefel 2.22 continuous Rust, Python tachsin.gr
Zakharov continuous Rust, Python tachsin.gr
Trid continuous Rust, Python tachsin.gr
Dixon-Price continuous Rust, Python tachsin.gr
Powell continuous Rust, Python tachsin.gr
Sum of different powers continuous Rust, Python tachsin.gr
Step continuous Rust, Python tachsin.gr
Quartic continuous Rust, Python tachsin.gr
Rotated hyper-ellipsoid continuous Rust, Python tachsin.gr
High-conditioned elliptic continuous Rust, Python tachsin.gr
Bent cigar continuous Rust, Python tachsin.gr
Discus continuous Rust, Python tachsin.gr
Different powers continuous Rust, Python tachsin.gr
Rosenbrock continuous Rust, Python tachsin.gr
Levy continuous Rust, Python tachsin.gr
Styblinski-Tang continuous Rust, Python tachsin.gr
Michalewicz continuous Rust, Python tachsin.gr
Ackley continuous Rust, Python tachsin.gr
Rastrigin function continuous Rust, Python tachsin.gr
Griewank continuous Rust, Python tachsin.gr
Schwefel 2.26 continuous Rust, Python tachsin.gr
Himmelblau's function continuous Rust, Python tachsin.gr
Branin continuous Rust, Python tachsin.gr
Goldstein-Price continuous Rust, Python tachsin.gr
Six-hump camel continuous Rust, Python tachsin.gr
Three-hump camel continuous Rust, Python tachsin.gr
Beale continuous Rust, Python tachsin.gr
Booth continuous Rust, Python tachsin.gr
Matyas continuous Rust, Python tachsin.gr
Bohachevsky 1 continuous Rust, Python tachsin.gr
Bohachevsky 2 continuous Rust, Python tachsin.gr
Bohachevsky 3 continuous Rust, Python tachsin.gr
Hartmann 3-D continuous Rust, Python tachsin.gr
Hartmann 6-D continuous Rust, Python tachsin.gr
Shekel 5 continuous Rust, Python tachsin.gr
Shekel 7 continuous Rust, Python tachsin.gr
Shekel 10 continuous Rust, Python tachsin.gr
Shekel's foxholes continuous Rust, Python tachsin.gr
Langermann continuous Rust, Python tachsin.gr
Kowalik continuous Rust, Python tachsin.gr
Easom continuous Rust, Python tachsin.gr
Eggholder continuous Rust, Python tachsin.gr
Schaffer F6 continuous Rust, Python tachsin.gr
Schaffer F7 continuous Rust, Python tachsin.gr
Penalized 1 continuous Rust, Python tachsin.gr
Penalized 2 continuous Rust, Python tachsin.gr
Büche-Rastrigin continuous Rust, Python tachsin.gr
Non-continuous Rastrigin continuous Rust, Python tachsin.gr
Weierstrass continuous Rust, Python tachsin.gr
Katsuura continuous Rust, Python tachsin.gr
HappyCat continuous Rust, Python tachsin.gr
HGBat continuous Rust, Python tachsin.gr
Pressure vessel design constrained Rust, Python tachsin.gr
Welded beam design constrained Rust, Python tachsin.gr
Tension/compression spring constrained Rust, Python tachsin.gr
Speed reducer constrained Rust, Python tachsin.gr
Three-bar truss constrained Rust, Python tachsin.gr
Cantilever beam constrained Rust, Python tachsin.gr
Car side impact constrained Rust, Python tachsin.gr
CEC 2006 g01 constrained Rust, Python tachsin.gr
CEC 2006 g02 constrained Rust, Python tachsin.gr
CEC 2006 g03 constrained Rust, Python tachsin.gr
CEC 2006 g04 constrained Rust, Python tachsin.gr
CEC 2006 g05 constrained Rust, Python tachsin.gr
CEC 2006 g06 constrained Rust, Python tachsin.gr
CEC 2006 g07 constrained Rust, Python tachsin.gr
CEC 2006 g08 constrained Rust, Python tachsin.gr
CEC 2006 g09 constrained Rust, Python tachsin.gr
CEC 2006 g10 constrained Rust, Python tachsin.gr
CEC 2006 g11 constrained Rust, Python tachsin.gr
CEC 2006 g12 constrained Rust, Python tachsin.gr
CEC 2006 g13 constrained Rust, Python tachsin.gr
CEC 2006 g14 constrained Rust, Python tachsin.gr
CEC 2006 g15 constrained Rust, Python tachsin.gr
CEC 2006 g16 constrained Rust, Python tachsin.gr
CEC 2006 g17 constrained Rust, Python tachsin.gr
CEC 2006 g18 constrained Rust, Python tachsin.gr
CEC 2006 g19 constrained Rust, Python tachsin.gr
CEC 2006 g20 constrained Rust, Python tachsin.gr
CEC 2006 g21 constrained Rust, Python tachsin.gr
CEC 2006 g22 constrained Rust, Python tachsin.gr
CEC 2006 g23 constrained Rust, Python tachsin.gr
CEC 2006 g24 constrained Rust, Python tachsin.gr
Gear train design integer Rust, Python tachsin.gr
ZDT1 multi-objective Rust, Python tachsin.gr
ZDT2 multi-objective Rust, Python tachsin.gr
ZDT3 multi-objective Rust, Python tachsin.gr
ZDT4 multi-objective Rust, Python tachsin.gr
ZDT5 multi-objective Rust, Python tachsin.gr
ZDT6 multi-objective Rust, Python tachsin.gr
Schaffer 1 multi-objective Rust, Python tachsin.gr
Schaffer 2 multi-objective Rust, Python tachsin.gr
Fonseca-Fleming multi-objective Rust, Python tachsin.gr
Kursawe's disconnected front multi-objective Rust, Python tachsin.gr
Poloni multi-objective Rust, Python tachsin.gr
BNH, a constrained two-objective problem multi-objective Rust, Python tachsin.gr
SRN (Srinivas and Deb) multi-objective Rust, Python tachsin.gr
TNK (Tanaka) multi-objective Rust, Python tachsin.gr
OSY (Osyczka and Kundu) multi-objective Rust, Python tachsin.gr
CONSTR multi-objective Rust, Python tachsin.gr
WFG1 multi-objective Rust, Python tachsin.gr
WFG2 multi-objective Rust, Python tachsin.gr
WFG3 multi-objective Rust, Python tachsin.gr
WFG4 multi-objective Rust, Python tachsin.gr
WFG5 multi-objective Rust, Python tachsin.gr
WFG6 multi-objective Rust, Python tachsin.gr
WFG7 multi-objective Rust, Python tachsin.gr
WFG8 multi-objective Rust, Python tachsin.gr
WFG9 multi-objective Rust, Python tachsin.gr
DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ2 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ3 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ4 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ5 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ6 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ7 with 3 objectives multi-objective Rust, Python tachsin.gr
Viennet 1 multi-objective Rust, Python tachsin.gr
Viennet 2 multi-objective Rust, Python tachsin.gr
Viennet 3 multi-objective Rust, Python tachsin.gr
CTP1 multi-objective Rust, Python tachsin.gr
CTP2 multi-objective Rust, Python tachsin.gr
CTP3 multi-objective Rust, Python tachsin.gr
CTP4 multi-objective Rust, Python tachsin.gr
CTP5 multi-objective Rust, Python tachsin.gr
CTP6 multi-objective Rust, Python tachsin.gr
CTP7 multi-objective Rust, Python tachsin.gr
CTP8 multi-objective Rust, Python tachsin.gr
C1-DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
C1-DTLZ3 with 3 objectives multi-objective Rust, Python tachsin.gr
C2-DTLZ2 with 3 objectives multi-objective Rust, Python tachsin.gr
Convex C2-DTLZ2 with 3 objectives multi-objective Rust, Python tachsin.gr
C3-DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
C3-DTLZ4 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ8 with 3 objectives multi-objective Rust, Python tachsin.gr
DTLZ9 with 3 objectives multi-objective Rust, Python tachsin.gr
DC1-DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
DC1-DTLZ3 with 3 objectives multi-objective Rust, Python tachsin.gr
DC2-DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
DC2-DTLZ3 with 3 objectives multi-objective Rust, Python tachsin.gr
DC3-DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
DC3-DTLZ3 with 3 objectives multi-objective Rust, Python tachsin.gr
DAS-CMOP1 multi-objective Rust, Python tachsin.gr
DAS-CMOP2 multi-objective Rust, Python tachsin.gr
DAS-CMOP3 multi-objective Rust, Python tachsin.gr
DAS-CMOP4 multi-objective Rust, Python tachsin.gr
DAS-CMOP5 multi-objective Rust, Python tachsin.gr
DAS-CMOP6 multi-objective Rust, Python tachsin.gr
DAS-CMOP7 multi-objective Rust, Python tachsin.gr
DAS-CMOP8 multi-objective Rust, Python tachsin.gr
DAS-CMOP9 multi-objective Rust, Python tachsin.gr
Convex DTLZ2 with 3 objectives multi-objective Rust, Python tachsin.gr
Scaled DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
Scaled DTLZ2 with 3 objectives multi-objective Rust, Python tachsin.gr
Inverted DTLZ1 with 3 objectives multi-objective Rust, Python tachsin.gr
MW1 multi-objective Rust, Python tachsin.gr
MW2 multi-objective Rust, Python tachsin.gr
MW3 multi-objective Rust, Python tachsin.gr
MW4 multi-objective Rust, Python tachsin.gr
MW5 multi-objective Rust, Python tachsin.gr
MW6 multi-objective Rust, Python tachsin.gr
MW7 multi-objective Rust, Python tachsin.gr
MW8 multi-objective Rust, Python tachsin.gr
MW9 multi-objective Rust, Python tachsin.gr
MW10 multi-objective Rust, Python tachsin.gr
MW11 multi-objective Rust, Python tachsin.gr
MW12 multi-objective Rust, Python tachsin.gr
MW13 multi-objective Rust, Python tachsin.gr
MW14 multi-objective Rust, Python tachsin.gr
Two-bar truss multi-objective Rust, Python tachsin.gr
Welded beam, two objectives multi-objective Rust, Python tachsin.gr
Disc brake multi-objective Rust, Python tachsin.gr
Speed reducer, two objectives multi-objective Rust, Python tachsin.gr
Four-bar truss multi-objective Rust, Python tachsin.gr
Car side impact, three objectives multi-objective Rust, Python tachsin.gr
Rocket injector multi-objective Rust, Python tachsin.gr
Vehicle crashworthiness multi-objective Rust, Python tachsin.gr
Water resource planning multi-objective Rust, Python tachsin.gr
Conceptual marine design multi-objective Rust, Python tachsin.gr
XOR neuroevolution neuroevolution Rust, Python tachsin.gr
XOR by NEAT neuroevolution Rust, Python tachsin.gr
Cart-pole neuroevolution Rust, Python tachsin.gr
Double pole balancing neuroevolution Rust, Python tachsin.gr
Double pole balancing without velocities neuroevolution Rust, Python tachsin.gr
Two spirals neuroevolution Rust, Python tachsin.gr
Koza's quartic genetic programming Rust, Python tachsin.gr
Koza's 11-multiplexer genetic programming Rust, Python tachsin.gr
|x| by strongly typed GP genetic programming Rust, Python tachsin.gr
Nguyen-1 genetic programming Rust, Python tachsin.gr
Nguyen-5 genetic programming Rust, Python tachsin.gr
Nguyen-9 genetic programming Rust, Python tachsin.gr
Nguyen-1 to 12 genetic programming Rust, Python
Accuracy against size genetic programming Rust, Python tachsin.gr
Asynchronous evaluation engine Rust tachsin.gr
Neuroevolution on the GPU engine Rust tachsin.gr
Nelder-Mead on Rosenbrock local Rust, Python tachsin.gr
Nelder-Mead with restarts on Himmelblau local Rust, Python tachsin.gr
L-BFGS-B on Rosenbrock in 100 dimensions local Rust, Python tachsin.gr
L-BFGS-B on a minimum at the bound local Rust, Python tachsin.gr
SHADE, then L-BFGS-B local Rust, Python tachsin.gr
Adam with a learning-rate schedule local Rust, Python tachsin.gr
MMA on a million variables local Rust, Python tachsin.gr
Continuation by Gaussian smoothing local Rust, Python tachsin.gr
Bayesian optimization of Branin bayesian Rust, Python tachsin.gr
Bayesian optimization in batches on Hartmann 6-D bayesian Rust, Python tachsin.gr
Asynchronous Bayesian optimization bayesian Rust tachsin.gr
Constrained Bayesian optimization bayesian Rust, Python tachsin.gr

The GPU example is a crate of its own, with wgpu as a dependency: cargo run --release --manifest-path examples/gpu/Cargo.toml.

Adding an example

Add a folder examples/<name>/ with main.rs, main.py (unless the Python package lacks a feature it needs, which its README says) and a README.md with the front matter, and a row to the table above. Cargo finds main.rs as the example <name>, CI runs every main.rs and main.py, and the docs site makes a page for it, whose build fails if the table lacks the example. The categories are binary, permutation, integer, continuous, multi-objective, constrained, neuroevolution, genetic programming, engine, local and bayesian.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.