Compare speed and power in Google Colab
Build a small trade study one cell at a time. You'll compare eight PEARL-inspired architectures: two payload masses, two hull shapes, and two thruster layouts. You'll run the model once, then explore the calm and head-sea results without writing any charts to disk.
The equations and numbers are synthetic. They illustrate the trade study workflow, not how to predict or size the real PEARL vehicle.
1. Open the notebook and install the framework
- Download the speed–power notebook.
- Open Google Colab, choose File → Upload notebook, and select that file. Connect to a CPU runtime with Python 3.13 or newer.
- Run the notebook's first cell. It installs the tutorial's pinned version from PyPI:
%pip install "paretorium[visualization]==0.1.1"
Colab already includes IPython. Use the visualization extra, not
notebook, so pip leaves Colab's pinned IPython in place. If an older
copy of this notebook upgraded IPython, save your work, choose
Runtime → Disconnect and delete runtime, and reconnect. Run the
corrected install cell in the fresh runtime; restarting alone does not
undo the upgrade.
When Colab resets the runtime, rerun the install cell. No wheel upload, repository checkout, or GitHub credentials are needed.
For local Jupyter, use a Python 3.13+ virtual environment and run these commands from the folder containing the downloaded notebook. Then skip its install cell:
python -m pip install "paretorium[notebook]==0.1.1" jupyterlab
python -m jupyter lab pearl-speed-power.ipynb
2. Build up the study
Run the choices and assumptions cells. Decision objects describe
what you can change: payload, hull, and thrusters. Scenario objects describe
what the design must face. Compare the declared drag multiplier in calm water
with its head-sea override. Hover over the curves for the input values.
Then run the model cell. Its simple cubic power law estimates speed at the installed propulsion limit. It also estimates total electrical demand at a common 2.7 m/s cruise target, including nonpropulsion load. The study counts a draw as feasible only if the design can reach that target and its total demand at cruise is at most 1,200 W. The computed demand is kept even in draws where the design can't achieve the target.
3. Explore the results in place
- Run the tradespace cell. Hover on a dot for its short design ID and
limit violations. Change Color by from
thrusterstohullorpayload. The colors change, but the points and front do not. - Run the scenario comparison cell. In the head-sea table, filter
for
D-003(larger payload, slender hull, twin azimuth thrusters). With the supplied seed, it meets both limits in 120 of 128 calm draws but none of the head-sea draws. The median head-sea speed still exceeds 2.7 m/s; the power budget is the problem. The two charts use the same axis ranges so you can compare the shift directly. - Run the individual draws cell. It keeps the larger payload and slender hull fixed while comparing the two thruster architectures. Each dot pairs speed and power from the same draw. Look for dots in the no-go region and compare the two sets of marginal box plots.
- Run the report preview cell. The chart and table keep their interactions inside one scrollable output.

The first notebook chart, with colors set to thruster architecture.
4. Try a change of your own
If the mission needs the larger payload, filter the summaries to
survey_plus before building the tradespace and its table. That's a new
comparison on the same run; you don't need to rerun the simulation. To
try a different head-sea drag assumption instead, change the scenario
and rerun from the assumptions cell so the model evaluates the new inputs.
Use display_notebook()
with any built-in visualization: pass an Altair chart, Figure, Table,
atlas Section, or Report. The output uses a bundled Vega runtime, so it
needs neither a CDN nor an export file for inline data. It keeps the
interactions defined by the view; for example, only charts with decision
color switching have a Color by control. Increase height= for taller
figures. See Install Paretorium for the other optional features.
If an output appears blank when reopening a notebook, rerun its cell in a connected runtime. Some notebook viewers don't execute interactive HTML from saved outputs. Use standalone HTML export when sharing a view outside the notebook.