Tag: cplex

C ++ Excel :: RangePtr range_dataFloat – expression式必须是一个指向完整对象types的指针

我正试图将以下数据导出为ex​​cel,但在range_dataFloat下的最后一行显示错误。 这是我得到的错误: Excel :: RangePtr – Expression必须是一个指向完整对象types的指针 其余的代码工作和连接到Excel,但问题是这个部分: int SW1 [2] = { 0, 0 }; // South-West coordinate of the first square int SE1 [2] = { 1, 0 }; // South-East coordinate of the first square int NW1 [2] = { 0, 1 }; // North-West coordinate of the first square int NE1 […]

如何编写CPLEX解决scheme以实现卓越

我有一个MIP问题给我在CPLEX中的3个解决scheme。 我如何采取这些解决scheme之一,并将其​​导出到Excel文件? 到目前为止,我尝试了以下操作:这是我在CPLEX命令提示符窗口中键入的内容 read try optimize display solution member Display which solution: 1 variables – write try2 sol Incumbent solution written to file 'try2'. <– OUTPUT ON SCREEN 这是一个未知的文件格式。 我不知道是什么 我想要一个excel文件。