PPolySim OS
Use case · powered by Consumer Choice

Consumer Choice for a comparative-advantage trade

Simulate a comparative-advantage trade live in your browser. This runs the real Consumer Choice solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.

Consumer ChoiceLive

Controls

Presets

A consumer maximizes utility subject to a budget. Indifference curves connect equally-satisfying bundles; the budget line shows what income affords. The best choice is where the budget line just touches the highest reachable indifference curve — the tangency where the marginal rate of substitution equals the price ratio. Change a price and watch the optimal bundle move.

▶ Run in Python

Data Inspector

Optimal X12.5
Optimal Y16.7
Utility14.4

Governing equation

Reading this result: With Cobb-Douglas preferences the optimal bundle spends a fixed income share on each good — here 50% of income (50) buys X and 50% buys Y, no matter how prices move; a price only changes how many units that fixed budget buys.

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

or unlock everything with Pro →

About this simulation

The full Consumer Choice tool models a comparative-advantage trade with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.

More you can do with Consumer Choice

Other ways to simulate a comparative-advantage trade

Frequently asked questions

How do I simulate a comparative-advantage trade?
Open this page and use the live Consumer Choice tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
Is it free?
Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
Can I use my own numbers?
Absolutely — every input is adjustable, and with data import you can drive a comparative-advantage trade from your own measurements.