Skip to contents

rharv 0.3.0

Release polish and fixes from a pre-release review.

  • Fixed rh_size_for(vary = "demand") for targets below 100%: the search bound was clipped at the zero-deficit maximum, silently understating the result (also affected rh_iso_curve()/rh_resource_curve() solving for demand at sub-100 levels).

  • rh_size_for(vary = "capacity") now clamps a fixed initial to the trial capacity (it used to error) and accepts a per-day demand vector; it also validates that base contains the required parameters.

  • rh_guarantee_curve() returns NA for infeasible points instead of aborting the whole frontier; rh_guaranteed_capacity() detects supply-limited (structurally infeasible) problems early with a clear message.

  • rh_plot_resource_curve() falls back to facets when a resource is entirely unreachable; rh_plot_monthly_balance() labels months correctly for partial-year simulations; rh_plot_design_curve() gives a friendly error when grid attributes were lost; rh_series_spread() tolerates all-NA groups; the step solver rejects non-positive steps.

  • Shiny explorer: debounced recomputation of the trade-off grid and guarantee values, fast-mode now also applies to the guarantee values, and the initial storage slider stays consistent with the capacity slider.

  • The demo notebook (rh_demo()) was rewritten as an annotated, paper-style document (in Portuguese): every section states the model and its equations, runs the code, and explains how to read the result, covering the YAS and YBS operating rules, the mass-balance check, the standard versus legacy attendance algebra, and a reading guide for each chart.

  • rh_simulate() documentation now names the two overflow_timing rules by their literature names (YBS = after_demand, YAS = before_demand).

  • pkgdown now renders equations properly (MathJax enabled).

rharv 0.2.0

Analysis tools, decision plots and an interactive app.

rharv 0.1.0

Initial release.