How osmangokalp/contopt-js works
CONTOPT-JS is a browser-oriented JavaScript library for bound-constrained, single-objective continuous optimization. Its workflow is to configure an optimizer, run a metaheuristic in a worker against either a benchmark objective or the sensor-coverage case study, and report the best solution and evaluation count. The repository contains six algorithm implementations, a shared optimizer base, benchmark functions, and sensor-specific adaptations. The tree and excerpts establish worker messaging and sensor evaluation; page-to-worker wiring is inferred from the documented example pages, whose source was not sampled.
Main entry points: benchmarkExperimentsPage.html Benchmark examples · sensorDeploymentCaseStudyPage.html Sensor case study · EvolutionStrategies.js Evolution strategies · SimulatedAnnealing.js Annealing
Components 19
Browser examples
- Benchmark examples
public_html/benchmarkExperimentsPage.html - Sensor case study
public_html/sensorDeploymentCaseStudyPage.html - Sensor display
public_html/SensorPanel.js
Metaheuristic algorithms
- Bee colony
public_html/ArtificialBeeColony.js - Differential evolution
public_html/DifferentialEvolution.js - Evolution strategies
public_html/EvolutionStrategies.js - Genetic algorithm
public_html/GeneticAlgorithm.js - Particle swarm
public_html/ParticleSwarmOptimization.js - Annealing
public_html/SimulatedAnnealing.js - Bee sensor adapter
public_html/ArtificialBeeColony_Sensor.js - DE sensor adapter
public_html/DifferentialEvolution_Sensor.js - GA sensor adapter
public_html/GeneticAlgorithm_Sensor.js - PSO sensor adapter
public_html/ParticleSwarmOptimization_Sensor.js
Optimization foundation
- Optimizer base
public_html/ContinuousOptimizer.js - Solution state
public_html/Solution.js - Gaussian RNG
public_html/GaussianRNG.js
Objective problems
- Benchmark objectives
public_html/BenchmarkFunctions.js - Coverage problem
public_html/SensorDeploymentProblem.js
Other components
- User
Connections 48
- User → Benchmark examples: configures run
- User → Sensor case study: configures case
- Benchmark examples → Bee colony: starts worker
- Benchmark examples → Differential evolution: starts worker
- Benchmark examples → Evolution strategies: starts worker
- Benchmark examples → Genetic algorithm: starts worker
- Benchmark examples → Particle swarm: starts worker
- Benchmark examples → Annealing: starts worker
- Sensor case study → Bee sensor adapter: starts worker
- Sensor case study → DE sensor adapter: starts worker
- Sensor case study → GA sensor adapter: starts worker
- Sensor case study → PSO sensor adapter: starts worker
- Bee colony → Optimizer base: inherits and calls
- Differential evolution → Optimizer base: inherits and calls
- Evolution strategies → Optimizer base: inherits and calls
- Genetic algorithm → Optimizer base: inherits and calls
- Particle swarm → Optimizer base: inherits and calls
- Annealing → Optimizer base: inherits and calls
- Bee colony → Solution state: stores candidates
- Differential evolution → Solution state: stores candidates
- Evolution strategies → Solution state: stores candidates
- Genetic algorithm → Solution state: stores candidates
- Particle swarm → Solution state: stores candidates
- Annealing → Solution state: stores candidates
- Bee colony → Benchmark objectives: evaluates objective
- Differential evolution → Benchmark objectives: evaluates objective
- Evolution strategies → Benchmark objectives: evaluates objective
- Genetic algorithm → Benchmark objectives: evaluates objective
- Particle swarm → Benchmark objectives: evaluates objective
- Annealing → Benchmark objectives: evaluates objective
- Evolution strategies → Gaussian RNG: samples mutations
- Annealing → Gaussian RNG: samples neighbors
- Bee sensor adapter → Bee colony: extends algorithm
- DE sensor adapter → Differential evolution: extends algorithm
- GA sensor adapter → Genetic algorithm: extends algorithm
- PSO sensor adapter → Particle swarm: extends algorithm
- Bee sensor adapter → Coverage problem: scores coverage
- DE sensor adapter → Coverage problem: scores coverage
- GA sensor adapter → Coverage problem: scores coverage
- PSO sensor adapter → Coverage problem: scores coverage
- Sensor case study → Coverage problem: provides case data
- Sensor case study → Sensor display: displays deployment
- Bee colony → Benchmark examples: posts best result
- Differential evolution → Benchmark examples: posts best result
- Evolution strategies → Benchmark examples: posts best result
- Genetic algorithm → Benchmark examples: posts best result
- Particle swarm → Benchmark examples: posts best result
- Annealing → Benchmark examples: posts best result