IBM Support

Export anonymized models with generic names in CPLEX Optimization Studio

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;}

[{"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"12.6.2;12.6.1;12.6.0.1;12.6;12.5.1;12.5.0.1;12.5;12.4.0.1;12.4;12.3;12.2.0.1;12.2;12.6.3","Edition":"All Editions;Edition Independent","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21984887