You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api.rst
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,6 +249,18 @@ Model classes
249
249
:exclude-members: defaults
250
250
:show-inheritance:
251
251
252
+
MESSAGE accepts the following *model_options* to control its behaviour:
253
+
254
+
- **cap_comm** (:class:`bool` or equivalent :class:`int` or :class:`float`):
255
+
If :any:`True`, include **comm** odity flows associated with **cap** acity changes of technologies
256
+
in :ref:`equation_commodity_balance_aux`.
257
+
If :any:`False` (the default), these flow are omitted,
258
+
and values of the associated parameters have no effect.
259
+
This corresponds to the GAMS compile-time variable ``MESSAGE_CAP_COMM``.
260
+
261
+
.. note:: For some models, this can significantly increase the linear program (LP) size
262
+
and thus the solve time.
263
+
252
264
.. autoattribute:: items
253
265
:no-value:
254
266
@@ -263,10 +275,10 @@ Model classes
263
275
The MACRO class solves only the MACRO model in “standalone” mode—that is, without MESSAGE.
264
276
It is also invoked from :class:`.MESSAGE_MACRO` to process *model_options* to control the behaviour of MACRO:
265
277
266
-
- **concurrent** (:class:`int` or :class:`float`, either :py:`0` or :py:`1`).
278
+
- **concurrent** (:class:`bool` or equivalent :class:`int` or :class:`float`).
267
279
This corresponds to the GAMS compile-time variable ``MACRO_CONCURRENT``.
268
-
If set to :py:`0` (the default), MACRO is solved in a loop, once for each node in the Scenario.
269
-
If set to :py:`1`, MACRO is solved only once, for all nodes simultaneously.
280
+
If :any:`False` (the default), MACRO is solved in a loop, once for each node in the Scenario.
281
+
If :any:`True`, MACRO is solved only once, for all nodes simultaneously.
270
282
271
283
.. autoattribute:: items
272
284
:no-value:
@@ -279,7 +291,8 @@ Model classes
279
291
MESSAGE_MACRO solves the MESSAGE and MACRO models iteratively, connecting changes in technology activity and resource demands (from MESSAGE) to changes in final demands and prices (from MACRO).
280
292
This iteration continues until the solution *converges*; i.e. the two models reach a stable point for the values of these parameters.
281
293
282
-
MESSAGE_MACRO accepts three additional *model_options* that control the behaviour of this iteration algorithm:
294
+
MESSAGE_MACRO accepts all of the *model_options* recognized by :class:`.MESSAGE` and :class:`.MACRO`,
295
+
plus additional options that control the behaviour of this iteration algorithm:
283
296
284
297
- **max_adjustment** (:class:`float`, default 0.2): the maximum absolute relative change in final demands between iterations.
285
298
If MACRO returns demands that have changed by more than a factor outside the range (1 - `max_adjustment`, 1 + `max_adjustment`) since the previous iteration, then the change is confined to the limits of that range for the next run of MESSAGE.
0 commit comments