简体   繁体   English

Microsoft Solver Foundation UnsolvableModelException

[英]Microsoft Solver Foundation UnsolvableModelException

I am trying to solve an LP(a network problem) using Microsoft Solver Foundation. 我正在尝试使用Microsoft Solver Foundation解决LP(网络问题)。 My code is in C#. 我的代码在C#中。 I get the following error: UnsolvableModelException was unhandled. 我收到以下错误: UnsolvableModelException未处理。 The solver(s) threw an exception while solving the model. 求解器在求解模型时引发异常。 But when I solve the same problem on a smaller sized network, I don't get this error. 但是,当我在较小的网络上解决相同的问题时,却没有收到此错误。 So is the error coming because the number of constraints and variables is too large? 那么,由于约束和变量的数量太大,是否会出现错误? What is the reason for the error? 错误的原因是什么?

Thanks in advance. 提前致谢。

Number of constraints and/or variables might be the problem. 约束和/或变量的数量可能是问题。 Which edition of SF do you use? 您使用哪个版本的SF? You can find more about editions related constraints here . 您可以在此处找到有关版本相关约束的更多信息。 Also, you can experience the same problem if you use Gurobi Optimizer through Solver Foundation for large scale problems. 另外,如果通过Solver Foundation使用Gurobi Optimizer解决大规模问题,则可能会遇到相同的问题。

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

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