PPolySim OS

Optimization + Uncertainty

Find the minimum of a function by gradient descent, then quantify how uncertainty in the input propagates to the output — the two workflows behind real engineering design.

Optimization + Uncertainty StudioLive

Controls

Presets

▶ Run in Python

Data Inspector

Minimum x-1.3008
f(x) at min-3.5139
Output mean-2.308
Output σ2.207
5–95%-3.51 … 1.44

Governing equation

Reading this result: Descent from x₀ = 2.5 settled at x ≈ -1.30. With input σ = 0.4, the output spreads to about 2.21 — uncertainty stays tight near a flat minimum but gets amplified where the curve is steep.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Gradient descent uses a numerical gradient to walk downhill to a local minimum, drawing its path on the curve. Monte-Carlo uncertainty quantification then samples the input from a normal distribution around that optimum and reports the mean, standard deviation, and 5–95% band of the output — exactly how engineers turn a nominal design into a robust one.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

Related live simulations

Frequently asked questions

Is this optimization and uncertainty quantification tool really free?
Yes. Optimization + Uncertainty runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.