Comments (3)
Hi Tom,
This does seem like a real bug - Gross export during the $/MWh 200 price period should be 1 MW, with losses of 0.1 MW and net export of 0.9 MW.
The Export
and Losses
are ok (they sum to one) - the issue is with the Gross
and Net
, which I think is calclulated in generate_outputs
.
from energy-py-linear.
Fixed this - the issue was in Battery.calc_net
- changed to net = import - export - loss
This now results in
[OrderedDict([('Import [MW]', 1.0),
('Export [MW]', 0.0),
('Gross [MW]', 1.0),
('Net [MW]', 1.0),
('Losses [MW]', 0.0),
('Charge [MWh]', 0.0),
('Prices [$/MWh]', 100),
('Forecast [$/MWh]', 100),
('Actual [$/1hr]', 100.0),
('Forecast [$/1hr]', 100.0)]),
OrderedDict([('Import [MW]', 0.0),
('Export [MW]', 0.90909091),
('Gross [MW]', -0.90909091),
('Net [MW]', -1.000000001),
('Losses [MW]', 0.090909091),
('Charge [MWh]', 1.0),
('Prices [$/MWh]', 200),
('Forecast [$/MWh]', 200),
('Actual [$/1hr]', -200.00000020000002),
('Forecast [$/1hr]', -200.00000020000002)]),
OrderedDict([('Import [MW]', None),
('Export [MW]', None),
('Gross [MW]', None),
('Net [MW]', None),
('Losses [MW]', None),
('Charge [MWh]', 0.0),
('Prices [$/MWh]', None),
('Forecast [$/MWh]', None),
('Actual [$/1hr]', None),
('Forecast [$/1hr]', None)])]
from energy-py-linear.
👍
from energy-py-linear.
Related Issues (20)
- Proposed enhancement to output structure HOT 2
- Publish to https://pypi.org HOT 2
- Forecast length does not match the Price length
- Propose a change to the battery efficiency default HOT 2
- Power constraint HOT 1
- Error trying to use forecasts in optimisation HOT 3
- Share code HOT 1
- Python 3.11 compatibility HOT 2
- To add cost of battery charge/discharge cycle HOT 16
- to add minimum SOC of battery HOT 2
- SOC not calculated for battery asset HOT 2
- Contourpy / Visual Basic
- Wrapt and meson-python Intallation issue HOT 1
- Logger attempts to make directory even if file logging set to false HOT 3
- Operation count does not match price periods HOT 3
- Add Custom Objective Function Terms into `epl.Accounts` HOT 1
- License HOT 3
- Set constraint to limit number of battery cycles HOT 1
- Failing tests HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from energy-py-linear.