Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Apr 21:57
· 121 commits to main since this release

First release of opentop — v2 of openap-top. The package has been renamed and restructured: install as opentop, import as import opentop.

Highlights

  • New Opti-stack backend. NLP construction has moved to CasADi's Opti stack, removing ~400 lines of boilerplate and fixing several long-standing bugs.
  • Standalone package. opentop is no longer a namespace extension of openap; it installs as a top-level package.
  • Command-line interface. opentop optimize and opentop gengrid expose the optimizer and grid-cache builder from the shell.

Migration from v1.x

v1.x v2.0
pip install openap-top pip install opentop
from openap import top import opentop (or import opentop as top)
top.Cruise(...) opentop.Cruise(...)
optimizer.change_engine() opentop.Cruise(..., engine="CFM56-5B4")
optimizer.solution["f"] optimizer.objective_value
optimizer.solver was a ca.nlpsol now a ca.OptiSol
setup(max_iteration=...) setup(max_iter=...)
— new CLI: opentop optimize ORIGIN DEST ... / opentop gengrid ...
— new opentop.tools.cached_interpolant_from_dataframe() for disk-cached bspline interpolants

Other changes

  • Minimum Python bumped to 3.11.
  • Trajectory DataFrames now include per-segment fuel_cost and grid_cost columns.
  • PyPI publishing moved to OIDC trusted publishing.

Install

pip install --upgrade opentop

See the README and the user guide for details.