Biogas imports -------------- Alt text **Technology ID: BIOGAS_IMPORTS** **Input energy interface, with default energy:** - CO2_CONSUMPTION: co2 **Output energy interface, with default energy:** - PRODUCTION: gas **Technology behaviors:** - MUST_RUN - VOLUME_TARGET **Technology parameters:** | ID | Label | Unit | Behaviors | Description | | --- | --- | --- | --- | --- | | CO2_CONSUMPTION_YIELD | CO2 consumption yield w.r.t production | t/MW.h | | Yield between the CO2 consumption and the production | | PMAX | Pmax | MW | not MUST_RUN | Installed power capacity | | MIN_LOAD | Fleet min load | % | not MUST_RUN | Minimum production level, expressed as a percentage of the available capacity | | AVAILABILITY | Availability | % | not MUST_RUN | Available capacity, expressed as a percentage of the installed capacity | | MINIMUM_VOLUME | Minimal target volume | MW.h | VOLUME_TARGET and not MUST_RUN | Minimal export volume over the horizon | | STORAGE_CAPACITY | Storage capacity | MW.h | VOLUME_TARGET and not MUST_RUN | Storage capacity | | MIN_PROFILE | Minimal export profile | % | VOLUME_TARGET and not MUST_RUN | Minimal export profile | | STORAGE_AVAILABILITY | Storage availability | % | VOLUME_TARGET and not MUST_RUN | Storage availability, expressed as a percentage of the installed storage capacity | | IMPORTS | Imports | MW | MUST_RUN | Sets inelastic imports | | PRODUCTION_COST_CURVE | Production cost | Euro/MW.h HHV | | Production cost (emission cost excluded) | | | **Model code:** ``` python # Asset parameters definition cost = asset.getData(PRODUCTION_COST_CURVE) # Modelling asset state ON stateON = AssetState('ON') addEnergyYield(stateON, asset.getData(CO2_CONSUMPTION_YIELD), asset.getParameter(ENERGY_DELIVERY), asset.getParameter(CO2_PICKUP), False, True) if asset.isActiveBehavior(BH_MUST_RUN): stateON.setEquality(asset.getParameter(ENERGY_DELIVERY), False, asset.getData(IMPORTS)) else: addTargetInVolume(asset, stateON, interfaceName=ENERGY_DELIVERY, isInput=False, maxVolume=STORAGE_CAPACITY, minVolume=MINIMUM_VOLUME, maxProfile=STORAGE_AVAILABILITY, minProfile=MIN_PROFILE) addEnergyProduction(asset, stateON, energyDelivery=ENERGY_DELIVERY, productionCost=None, pmax=PMAX) addEnergyCost(stateON, asset.getParameter(ENERGY_DELIVERY), False, cost, asset=asset) finalize(stateON) ```