Question & Answer
Question
How to export anonymized models with generic names in CPLEX Optimization Studio (both CPLEX and CP Optimizer)?
Answer
For CPLEX models, one can export models in ALP
, REW
or RLP
format using the CPXwriteprob()
function in the C API, and the exportModel
methods of the IloCplex
classes for the object oriented APIs. For more information, please refer to "Selecting a write file format" at the URL below:
http://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.6.3/ilog.odms.cplex.help/CPLEX/GettingStarted/topics/tutorials/InteractiveOptimizer/writingFile_synopsis.html
For CP Optimizer models, starting from version 12.5.1, there is an integer parameter ModelAnonymizer
. Once it is set to On
, users can export models by using dumpModel
(not exportModel
). For more details, please refer to:
C++:
http://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.6.3/ilog.odms.ide.help/refcppopl/html/enumerations/IloCP_IntParam.html
Java:
http://www.ibm.com/support/knowledgecenter/SSSA5P_12.6.3/ilog.odms.ide.help/refjavaopl/html/ilog/cp/IloCP.IntParam.html
.NET:
http://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.6.3/ilog.odms.ide.help/refdotnetopl/html/F_ILOG_CP_CP_IntParam_ModelAnonymizer.htm
OPL model can use the code below to change the parameter:
execute { IloCP.param.ModelAnonymizer=1;}
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21984887