Repository navigation
v2.0.0
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.
opentopis no longer a namespace extension ofopenap; it installs as a top-level package. - Command-line interface.
opentop optimizeandopentop gengridexpose 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_costandgrid_costcolumns. - PyPI publishing moved to OIDC trusted publishing.
Install
pip install --upgrade opentopSee the README and the user guide for details.