Repository navigation
0.16.0 #256
birnbaum
announced in
Announcements
0.16.0
#256
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This release introduces a native simulation backend, structured experiment results, and a rebuilt viewer for simulation studies.
We also simplified the modeling API and now model grid connections explicitly as dispatchable resources.
Native simulation backend
Install
vessim[mosaik]and selectbackend="mosaik"when creating the environment.Environment.run()now returns aRunResultwith the final state and execution information.Recording and metrics
Recorderfor metrics, optional time series, and experiment metadata.Use
Recorder("results/run")to save a run, orRecorder(timeseries=False)to collect metrics without retaining its trajectory.Metric,ElectricityImportCost,ElectricityExportRevenue, andGridImportEmissionsfor custom objectives and price or carbon accounting.ExperimentResultfor loading, inspecting, and saving recorded runs.Results include configuration, parameters, metric definitions, and execution status.
Vessim Viewer
python -m vessim view results/study --export report.Modeling API
ConsumerandProducerfor demand and generation.Both accept a number or a
Signal, whileActorsupports components that can change direction.GridConnectionas a dispatchable resource with import and export limits, ramp constraints, and disconnection support.Infeasible demand or surplus now raises an error.
Trace.select()to use different columns of a shared input trace.Breaking changes
RecorderreplacesMemoryLoggerandCsvLogger.Saved results now use
experiment.jsonand an optionaltimeseries.csv, replacing the previousmetadata.yamlformat.The new viewer requires recordings in the new format.
GridConnection()explicitly to a microgrid's dispatchables when it can exchange power with the grid.DefaultDispatchPolicy(mode=...)was removed.Custom policies must assign balanced resource setpoints and return
Noneinstead of returning residual grid power.consumerargument was removed.Replace
Actor("load", StaticSignal(700), consumer=True)withConsumer("load", signal=700).Custom actors now implement
sample(elapsed)to return power and diagnostic state, replacing the separatepower()andstate()hooks.silextra is nowlive, andSilSignalis nowLiveSignal.Install live integrations with
pip install 'vessim[live]'.Call
env.prepare()and connect external simulators throughenv.entities[microgrid_name].Use
Environment.live()for indefinite runs.Live polling starts when the simulation runs, and closed live signals cannot be reused.
Standalone use of Vessim signals as a data-access API is deprecated.
Documentation and examples
Fixes and compatibility
ClcBatteryand strengthened validation of battery parameters and resource setpoints.Full Changelog: 0.15.1...0.16.0
This discussion was created from the release 0.16.0.
All reactions