Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Simulating Physical Systems

Fit the conveyor’s unknown gain

Coding challenges

BOTIE

Calculate command dot response and command dot command, then divide the first by the second.
Ready to test
0 passed · 0 failed · 2 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Calculate command dot response and command dot command, then divide the first by the second.

The simulator’s structure is plausible, but its gain does not match the measured conveyor.

Keep command-response agreement and command energy on separate dot-product branches.

Examples and results
Measured commands
  1. 01
  2. 12
  3. 23
Measured displacements
  1. 02
  2. 14
  3. 26
Required result
2
Measured commands
  1. 0-2
  2. 11
Measured displacements
  1. 0-6
  2. 13
Required result
3
Try a fresh construction

This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.

Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

Finite aligned measurements with nonzero command energy; no actuator is driven. Python handles missing excitation explicitly. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

A different command scale tests the fitted rule

This check uses the pieces from “Estimate the unknown parameter”.

BOTIE

The commands are [2,4] and responses [3,6]. Predict the estimated gain while keeping the units and through-origin model unchanged.
Measured commands
  1. 02
  2. 14
Measured displacements
  1. 03
  2. 16

Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

What residual pattern would suggest a delay instead of a wrong gain?

Use failed predictions to question model structure as well as parameter values.

Finite aligned measurements with nonzero command energy; no actuator is driven. Python handles missing excitation explicitly.

Continue the courseThe Policy Works in One Simulator Setting →
← Give Two Policies the Same Simulated Shift