Loading...
Searching...
No Matches
matlab.gams.control.Checkpoint Class Reference

Captures the state of a Job after the Job.run method has been carried out. More...

Public Member Functions

gams.control.ModelInstance addModelInstance (varargin)
 Create model instance.
 

Public Attributes

string fileName
 (read only) Checkpoint file name (extension .g00)
 
string name
 (read only) Checkpoint name
 
gams.control.Workspace workspace
 (read only) Reference to Workspace instance
 

Detailed Description

Captures the state of a Job after the Job.run method has been carried out.

A Checkpoint can be created via the call of Workspace.addCheckpoint method. Another Job can continue (or restart) from a Checkpoint. A Checkpoint constructed with a file name will create a file (extension .g00) for permanent storage when supplied as parameter on the Job.run method. Moreover, a ModelInstance is also initialized from a checkpoint that contains the model definition of the model instance.

See also
Job, ModelInstance, Workspace, Workspace.addCheckpoint

Member Function Documentation

◆ addModelInstance()

gams.control.ModelInstance matlab.gams.control.Checkpoint.addModelInstance ( varargin  )

Create model instance.

If modelInstanceName is not given, the name of a ModelInstance object is generated automatically.

Valid VARARGIN signatures:

  • [ ]
  • string modelInstanceName

Arguments:

Return: Reference to ModelInstance instance