Explore the fundamentals

The gallery is the interactive companion to Start modelling. It follows the same four concepts and uses the same kinds of questions.

$ pip install 'modello[gui]'
$ python -m examples.gallery

From a checkout, use uv run --extra gui python -m examples.gallery. Open http://127.0.0.1:5070. Choose a model, inspect Equations, and select Explore a question. The navigation leads to the next concept.

Four fundamentals

Concept

Question to express

Starting result

Scalar models

Size a brace or infer a missing side.

A 3 cm run and 4 cm rise give a 5 cm brace.

Component models

Determine a quantity inside a parcel’s base from its full clearance.

A 3 × 4 cm base and 12 cm height give 13 cm clearance.

Vector models

Evaluate or fit a line against sensor readings.

The proposed line has squared error 1; fitting reduces it to 0.7.

Recurrent models

Post fills or infer a sale price from a closing balance.

The account closes with 4 shares and USD 908.

The same five questions

Every model starts with a numeric result and offers:

  1. Calculate results: follow the known inputs to their consequences.

  2. Infer missing inputs: release inputs and supply an outcome or fitting condition to determine them.

  3. Try different inputs: change measurements or collection length while keeping the same equations.

  4. Leave inputs unknown: retain a formula in the missing quantities.

  5. Check the observations: try a deliberately conflicting claim.

Each question starts from the original observations. Questions do not accumulate constraints from earlier questions. An inverse question releases the quantity it is inferring.

A rejected question keeps its explanation visible and preserves the last successful results. Choose Calculate results to return to the starting case. Use Reset inputs to discard custom changes.

Apply the ideas to your own problem

The Python walkthrough shows the declarations behind each concept. Use components to reuse a model, vectors for measurements and objectives, and model vectors for related states.

The separate Extensions page contains the opt-in Itô example. The GUI guide shows how to open your own model in the same explorer.