Loading...
Searching...
No Matches
GAMS.GAMSCheckpoint Class Reference

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. More...

Public Member Functions

GAMSModelInstance AddModelInstance (string modelInstanceName=null)
 Create model instance.
 

Properties

GAMSWorkspace WorkSpace [get]
 Get the GAMSWorkspace.
 
string Name [get]
 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.

Member Function Documentation

◆ AddModelInstance()

GAMSModelInstance GAMS.GAMSCheckpoint.AddModelInstance ( string  modelInstanceName = null)
inline

Create model instance.

Parameters
modelInstanceNameIdentifier of GAMSModelInstance (determined automatically if omitted)
Returns
Reference to GAMSModelInstance

Property Documentation

◆ Name

string GAMS.GAMSCheckpoint.Name
get

Get the checkpoint name.

◆ WorkSpace

GAMSWorkspace GAMS.GAMSCheckpoint.WorkSpace
get

Get the GAMSWorkspace.