⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Cost Optimization: Economic Dispatch Simulator

Five production plants, five different cost curves, one shared demand target. This simulator runs a live penalized-gradient-descent optimizer that redistributes output across the plants every frame, minimizing total production cost until every plant's marginal cost converges to the same shadow price — the textbook condition for an optimal multi-plant allocation. Drag the demand or fuel-price sliders and watch the bars visibly renegotiate the split in real time, or push the step size too far and watch the same descent overshoot and oscillate, exactly as it does in real numerical optimizers.