Dumps the current model and internal data into a file.

Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)

Syntax

C#
public virtual void DumpModel(
	string filename
)

Parameters

filename
Type: System..::..String

Remarks

This method dumps the currently loaded model into the file named filename. This file name must have extension .cpo. The file is an ordinary text file which can be used to help IBM support resolve a user problem. The names of variables and constraints will be contained inside the file as well as parameter settings. The names of variables and constraints can be anonymized using the parameter CP.IntParam.ModelAnonymizer.

If DumpModel is called during the search then the dump contains current domains of all variables (instead of initial domains) and current objective cuts. Constraints that were added during the search (such as no-goods or constraints added during LNS moves) are not included in the dump.

Note that the dump file is human readable, but it contains not only the model but also internal data that makes the dump hard to read. The function ExportModel(String) produces model file that is easier to read.

The dumped model can be imported back into CP Optimizer using function ImportModel(String). Due to the internal data in the dump file, the behavior of CP Optimizer on the model after import is the same as on the original model.

Note that model dump should not be edited, otherwise CP Optimizer may refuse to load the model. In this case, remove section internals from the dump.

See Also