Loading...
Searching...
No Matches
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
workspaceGamsWorkspace containing GamsCheckpoint
checkpoint_nameIdentifier 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_nameIdentifier of GamsModelInstance (determined automatically if omitted)
Returns
GamsModelInstance instance