Comments (3)
In another model, I use the 2 carriers "heat" and "district_heat".
This "large_Gas_Boiler" is providing "heat" instead of "district_heat":
large_Gas_Boiler:
carrier_in: gas
carrier_out:
district_heat: 0.9
constraints:
e_cap.max: .inf
costs:
monetary:
e_cap: 6100000.0
om_fixed: 109800.0
depreciation:
plant_life: 21.0
name: Gas Boiler
parent: conversion_plus
primary_carrier: district_heat
from calliope.
Thanks for this Arnaud. It was being caused by a in constraint generation:
carriers_out = model.get_carrier(y, 'out', all_carriers=True)
if c not in carriers_out:
return c_prod == 0
if c in carriers_out and model._locations.at[x, y] == 0:
return c_prod == 0
In the examples you give, with only one carrier out, model.get_carrier
returns a string e.g. district_heat
. So the carrier heat
would be flagged as being "in" district_heat
. If there were multiple output carriers, e.g. district_heat
and power
, model.get_carrier
would return a tuple (power
, district_heat
), and heat
would not be flagged as "in" this.
Conversion plus has quite a few quirks, I'll see if this can be resolved easily and then aim to fix it. If it causes issues downstream then it could take me a bit longer to sort.
from calliope.
Fixed in commit cc9536c
from calliope.
Related Issues (20)
- Store example notebooks as plain text
- Document AttrDict `_REPLACE_ ` HOT 1
- Requesting v0.7 documentation improvements/fixes HOT 3
- Cannot use IDE schema validator with Calliope model YAML files HOT 1
- `purchased` binary variable isn't linked to `energy_cap` if `energy_cap_max`/`_min`/`_equals` isn't defined
- Cannot define numeric index items when loading tabular data
- Multiple rows and columns introduce false index items HOT 7
- AttrDict sorts keys on union
- Default installation does not have optional dependencies HOT 2
- Allow setting saving of shadow prices for constraints in YAML HOT 2
- Add `title` or `long-name` parameter to math syntax
- Store start and stop time stamps in model results
- Better document and test `operate` mode
- Custom constraints sum() slicing seems to fail inconsistently HOT 1
- adding scenarios and overrides
- Run Calliope multiple times with historic data before generating results HOT 1
- Pyomo v6.7.2 regression: Gurobi Python interface not found HOT 2
- Improve package/version management by moving to pixi
- Change the name of 'tech_groups' to 'tech_class' HOT 3
- Difficult to navigate through the menu HOT 1
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 calliope.