Skip to content

Graph optimization ​

All examples

Evolve a neighborhood network with Genetic Assembly. Move junctions and facilities, add or remove connections, and explore the trade-offs between travel, service, and cost.

How the study works ​

Eight homes stay fixed within a 1,000 × 1,000 metre site. The optimizer controls six optional junctions and four optional service facilities, their positions, and every possible connection between active nodes. Facilities alternate shopping and recreation. Active nodes must be at least 20 metres apart and the entire active graph must be connected. Invalid designs are retained as infeasible evidence, not rewarded for missing trips. Edges are straight, bidirectional walking connections; crossings do not create junctions.

The 100 residents each request shopping and recreation at fixed times. Demand, walking speed, facility capacity, and activity duration stay fixed across designs. Genetic Assembly uses NSGA-II in a browser WASM worker. The Workers slider defaults to the browser-reported logical processor count, capped at the SDK maximum of 64. Lower it to any whole number down to one to reduce concurrent candidate simulations. The solver and selected-candidate replay use separate workers; actual evaluation concurrency is also bounded by the number of candidates awaiting evaluation. No server or account is required. Start the search explicitly and cancel it at any time.

Generation views contain all designs evaluated through that generation. Their fronts are the SDK's cumulative best discovered so far fronts. The SDK also retains the actual surviving population and its separate Pareto front at each generation. Convergence shows the best value of each objective separately; these values may belong to different designs. Finalist validation uses separate simulation seeds and has its own Pareto front. Search and validation scores must not be combined.

During optimization, solver progress replaces the playback scrubber and the graph previews an evaluated design after each completed generation. Once optimization finishes or is cancelled, playback is prepared for the displayed candidate. Selecting a candidate reruns one search seed for agent playback. This single replay can differ from its two-seed average metrics. History is kept in memory until a new search or navigation. This example demonstrates a bounded design space, not a real planning cost model.

For application integration, see Optimize grabm simulations.

Last updated:

Documentation for the grABM library.