【ilcplex】IloEnv

【参考】http://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.6.3/ilog.odms.cpo.help/refcppcpoptimizer/html/classes/IloEnv.html

The class of environments for models or algorithms in Concert Technology.
Concert Technology中模型或算法的环境类。

An instance of this class is an environment, managing memory and identifiers for modeling objects. Every Concert Technology object, such as an extractable object, a model, or an algorithm, must belong to an environment. In C++ terms, when you construct a model (an instance of IloModel) or an algorithm (an instance of IloCplex, IloCP, or IloSolver, for example), then you must pass one instance of IloEnv as an argument of that constructor.
这个类的一个实例是一个环境,管理用于建模对象的内存和标识符。 每个Concert Technology对象(例如可提取对象,模型或算法)都必须属于环境。 在C ++术语中,当您构造模型(IloModel的实例)或算法(例如IloCplex,IloCP或IloSolver的实例)时,您必须传递IloEnv的一个实例作为该构造函数的参数


我理解成,每次都带上环境参数即可

待续...


你可能感兴趣的:(ilcplex,C++)