Skip to main content
engratepy is Engrate’s Python SDK for Cost of Energy.
Use it to:
  • calculate tariff cost from your own time-series data
  • discover which input datasets a tariff needs
  • embed tariff cost into optimisation models (HiGHS and Gurobi)

Authenticate

Create a client with your API key:

Discover Required Input Datasets

Before calculating or optimising, you can ask the SDK which datasets the tariff requires for the calculation period:

Calculate Cost

Run a cost calculation over a period:

Use in Optimisation Models

engratepy can even add tariff costs directly to solver models:
The model is extended in place, and cost is returned per component, either as a variable into the model, with constraints tying it to your decision variables, or as plain numbers where it is fixed. Need support for another solver? We would love to hear from you - contact support@engrate.io and we can discuss your use case.

Cookbook

For full working examples, take a look at our cookbook.

License

engratepy is available under an evaluation license. You are welcome to use it for internal evaluation, testing, learning, and prototyping in non-production environments. Production or commercial use requires a separate signed commercial license with Engrate. To discuss commercial licensing, contact support@engrate.io.