gams.control.execution.GamsCheckpoint Class Reference
A GamsCheckpoint class captures the state of a GamsJob after the GamsJob.run method has been carried out. More...
Public Member Functions | |
def | __init__ (self, workspace, checkpoint_name=None) |
Constructor. | |
def | add_modelinstance (self, modelinstance_name=None) |
Create model instance. | |
Properties | |
property | workspace = property(get_workspace) |
Get the GamsWorkspace. | |
property | name = property(get_name) |
Get the checkpoint name. | |
Detailed Description
A GamsCheckpoint class captures the state of a GamsJob after the GamsJob.run method has been carried out.
Another GamsJob can continue (or restart) from a GamsCheckpoint. A GamsCheckpoint constructed with a file name will create a file (extension .g00) for permanent storage when supplied as parameter on the GamsJob.run method. Moreover, a GamsModelInstance is also initialized from a checkpoint that contains the model definition of the model instance.
Constructor & Destructor Documentation
◆ __init__()
def gams.control.execution.GamsCheckpoint.__init__ | ( | self, | |
workspace, | |||
checkpoint_name = None |
|||
) |
Constructor.
- Parameters
-
workspace GamsWorkspace containing GamsCheckpoint checkpoint_name Identifier of GamsCheckpoint (determined automatically if omitted)
Member Function Documentation
◆ add_modelinstance()
def gams.control.execution.GamsCheckpoint.add_modelinstance | ( | self, | |
modelinstance_name = None |
|||
) |
Create model instance.
- Parameters
-
modelinstance_name Identifier of GamsModelInstance (determined automatically if omitted)
- Returns
- GamsModelInstance instance