简体   繁体   English

如何解决此CPLEX异常?

[英]How to solve this CPLEX exception?

I have made a program to solve a (non trivial) optimization problem with CPLEX. 我编写了一个程序来解决CPLEX的(非平凡的)优化问题。 I have reviewed the code and the modelisation several times and I don't see problems. 我已经多次审查了代码和建模,但没有发现问题。 However, when I launch the process, the following error message appears : 但是,当我启动该过程时,会出现以下错误消息:

Concert exception 'ilog.cplex.CpxException: CPLEX Error 5002: Q in ''q1'' is not positive semi-definite 音乐会异常'ilog.cplex.CpxException:CPLEX错误5002:“ q1”中的Q不是正半定号

Does it imply that there is a mistake in my stuff or is there a trick to avoid this ? 是暗示我的东西有错误还是有技巧避免这种情况?

Thanks in advance ! 提前致谢 !

The link below give solutions for some cases of quadratic terms. 下面的链接为某些二次项提供了解决方案。 This document can help you about how to handle quadratic terms if your case is one of them mentioned in the document. 如果您的案例是本文档中提到的其中一种,则本文档可以帮助您了解如何处理二次术语。

http://ampl.com/MEETINGS/TALKS/2013_07_Rome_WB9.pdf http://ampl.com/MEETINGS/TALKS/2013_07_Rome_WB9.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM