Skip to content

Commit

Permalink
Feature: public methods to interface with new backend model instance (#…
Browse files Browse the repository at this point in the history
…471)

* Split BackendModel ABC for latex backend
* Move backend API away from Model object
* Add param updater, variable fixer/unfixer
* Store input dataset in backend
* Reorganise files; add backend updater funcs
* update api docs

---------

Co-authored-by: Stefan Pfenninger <[email protected]>
  • Loading branch information
brynpickering and sjpfenninger authored Oct 23, 2023
1 parent 5591b09 commit 42500c7
Show file tree
Hide file tree
Showing 25 changed files with 2,120 additions and 1,782 deletions.
9 changes: 9 additions & 0 deletions doc/api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ Time series
.. automodule:: calliope.time.funcs
:members: resample

.. _api_backend_interface:

Methods to interface with the optimisation problem (a.k.a., `backend`)
======================================================================

.. autoclass:: calliope.backend.backend_model.BackendModel
:members:
:inherited-members:

.. _api_utility_classes:

Utility classes: AttrDict, Exceptions, Logging
Expand Down
3 changes: 2 additions & 1 deletion doc/user/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ General strategies

.. code-block:: python
model.to_lp('my_saved_model.lp')
model.build()
model.backend.to_lp('my_saved_model.lp')
Improving solution times
------------------------
Expand Down
Loading

0 comments on commit 42500c7

Please sign in to comment.