Skip to main content

Crate flexpool_sim

Crate flexpool_sim 

Source
Expand description

flexpool replay: the sandbox and the test oracle.

  • series — bitemporal observations read through a series::View fixed to a decision instant; reading what was not yet known is an error, never a silent wrong answer.
  • synthetic — a deterministic, plausible German day-ahead day from a seed.
  • import — strict CSV import of a real day’s prices.
  • scenario — the one file that drives the demo, tests and bug reports.
  • clock — a forward-only test clock that jumps between the gates the rules define.
  • replay — all of it together for one scenario day.

No I/O and no real clock: callers read files and pass text; time is the test clock.

Re-exports§

pub use clock::Clock;
pub use clock::ClockError;
pub use clock::Event;
pub use clock::EventKind;
pub use replay::Replay;
pub use replay::ReplayError;
pub use scenario::MarketSource;
pub use scenario::Scenario;
pub use scenario::ScenarioProblem;
pub use series::LookAhead;
pub use series::Observation;
pub use series::Series;
pub use series::View;

Modules§

clock
A forward-only test clock that jumps between the gates the rules define.
import
Strict import of a day’s day-ahead prices from CSV (market-replay/SR-002).
replay
One scenario day replayed: rules, clock and bitemporal market data together.
scenario
Scenario files: one small TOML file that drives the demo, a test or a bug report.
series
Bitemporal series: every value knows the interval it is about and the instant it became known.
synthetic
A deterministic, plausible German day-ahead day.