cplexmiqp MATLAB 的 CPLEX 等效 C++

CPLEX equivalent C++ of cplexmiqp MATLAB

我有一个使用 Cplex 在 C++ 中实现的 matlab 脚本。工具箱函数 cplexmiqp 的 C++ 等价物是否存在?
如果没有,我该如何解决我的问题?我只有这个函数需要的参数来解决MIP问题(H, f, Aineq, bineq, Aeq, beq, sostype, sosind, soswt, lb, ub, ctype)

cplexmiqp is a convenience function in the CPLEX MATLAB Toolbox API. There is nothing exactly equivalent to this in the C++ API。然而,C++API其实更powerful/flexible,你绝对可以完成同样的任务。您必须使用您的输入数据构建模型,解决它,并使用 C++ API 中的方法查询解决方案。我建议您仔细查看 CPLEX 附带的 ilomiqpex1.cpp 示例。