How To Use

This is a python package (i.e. a collection of subpackages and modules accompanied by an installer). As such, it can be used in three main ways :

  • imported in a user-defined script and launched by the python interpreter :

python my_script.py

For beginners, it may be easier to start from one of the tens of test scripts available from the /tests folder

  • imported in another package :

from pommes.model import build_model
  • interactively in the Ipython Notebook launched using :

jupyter notebook

several example notebooks are available alongside the documentation.

To follow a run, call pommes.configure_logging() first; see Logging.

Before solving a new dataset – or once a solve has returned infeasible – pommes.pre_analysis() compares, per area, resource and year, the demand with the largest supply the data allow, checks the capacity bounds and the carbon goal, and the fossil exit from 2050 on; see Pre-analysis of a dataset.