Skip to main content

Module constraints

Module constraints 

Source
Expand description

Code for reading commodity constraints from a CSV file.

The commodity_constraints.csv file is optional. If it is provided, the please_give_me_broken_results option in model.toml must be set to true because commodity constraints are experimental, and not yet factored in to the investment algorithm.

Structsยง

CommodityConstraintRaw ๐Ÿ”’
Constraints for each commodity

Constantsยง

COMMODITY_CONSTRAINTS_FILE_NAME ๐Ÿ”’

Functionsยง

read_commodity_constraints
Read the commodity constraints CSV file.
read_commodity_constraints_from_iter ๐Ÿ”’
Process raw commodity-constraint records into a constraints map.