LTM and LTM-API¶
This is the combined documentation of LTM (EMPS/EOPS) and LTM-API.
End user experience comparing classic LTM with LTM-API.¶
New to LTM?¶
Go over to overview for a quick overview.
Motivating example¶
With the classic file based approach, adding or removing data from a model is time consuming and error-prone.
In LtmApi, with a couple of lines of code it is possible to add or remove areas, add dclines, assign loads, capacities and much more. LTM-API keeps track of the internal references and will let you know if there are any inconsistencies.
# Add areas
numedal = session.model.add("area", "numedal")
tev = session.model.add("area", "tev")
# Add DC-line
dc = session.model.add("dcline", "dc_numedal_tev")
# Connect DC between areas
session.connect(numedal, dc)
session.connect(dc, tev)
This, and much more is possible with LTM-API.
There are two introductionary notebooks, Live LTM and Live LTM - minimal version.
The notebook Live LTM is more complete, while Live LTM - minimal version is a minimal example with EMPS.