NREL / reV

Renewable Energy Potential (reV) Model
https://nrel.github.io/reV/
BSD 3-Clause "New" or "Revised" License
107 stars 24 forks source link

Add BOS cost to bespoke optimization #453

Closed ppinchuk closed 5 months ago

ppinchuk commented 5 months ago

This PR adds the capability to specify a BOS cost for the bespoke optimization.

Three distances are allowed: avg_sl_dist_to_center_m, avg_sl_dist_to_medoid_m, and nn_conn_dist_m. The first two are self-explanatory. The last one is a simple greedy nearest-neighbor connection algorithm that gives connections that look something like this:

image

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.40%. Comparing base (081d70e) to head (beb1f69).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #453 +/- ## ========================================== + Coverage 87.27% 87.40% +0.12% ========================================== Files 122 122 Lines 17484 17600 +116 ========================================== + Hits 15260 15383 +123 + Misses 2224 2217 -7 ``` | [Flag](https://app.codecov.io/gh/NREL/reV/pull/453/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NREL) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/NREL/reV/pull/453/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NREL) | `87.40% <100.00%> (+0.12%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NREL#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.