Getting the dual formulation in CPLEX concert technology

倾然丶 夕夏残阳落幕 提交于 2019-12-08 03:40:06

问题


I have seen the answer to this similar question but it does not answer my question. Is there any way to get objective function and constraints of the dual formulation directly within your algorithm rather than writing them into a DUA file and then reading them? I know that I can solve the dual formulation by using

cplex.setParam(IloCplex::Param::Preprocessing::Dual, 1);

But I do not want to solve the dual formulation. I want to access objective function and any constraint of the dual formulation so I could modify them as part of my algorithm. I use CPLEX 12.8 (Concert technology, C++ API) and would like to access the dual formulation within my algorithm.


回答1:


No, this is not possible using any of the Concert APIs (i.e., C++, Java, or .NET).

As mentioned here on the IBM developerWorks forum, it is possible to do this with the C API. The Concert APIs do not allow access to the presolve model, so this is not possible.



来源:https://stackoverflow.com/questions/50057420/getting-the-dual-formulation-in-cplex-concert-technology

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!