我在VB项目中有一个Cobyla对象(可能很容易是C#),用于解决7个变量的问题。每个变量都有其自己的约束。我正在像这样设置约束,但是没有遵循约束。
wwwroot/lib
有人能建议为什么不遵守约束条件吗?我认为这很容易。
答案 0 :(得分:1)
确保检查cobyla退出代码(状态属性[2])是否为CobylaStatus.Success,以确保解决方案有效。 根据Anders Gustafsson的说法,不能保证满足约束条件[1]。
[1] Accord.net Cobyla solver returns success when there are no feasiable solutions
[2] http://accord-framework.net/docs/html/T_Accord_Math_Optimization_Cobyla.htm