标题: VC2008与lingo11破解版混合编程,遭遇变量限制 [打印本页] 作者: madder123 时间: 2014-9-28 11:31 标题: VC2008与lingo11破解版混合编程,遭遇变量限制 做C++调用lingo11进行优化的混合编程,方法大致是把lingo的dll文件放置在c程序的目录文件下,当所要解的规划问题涉及变量较少时,运行正常,后来一个优化涉及527个变量,结果不能运算,出现了
[Error Code: 108]
The model's dimensions exceed the capacity of this version:
DIMENSION ACTUAL LIMIT
Constraints 7 150
Nonlinear Variables 0 30
Integer Variables 0 30
Total Variables 527 300
Contact LINDO Systems regarding larger versions of LINGO.
也就是说dll在被C++调用时并没有破解,仍然是300个变量上限。
后来换了许多所谓破解版本的DLL覆盖在c程序目录下,有的仍是上面的错误,有的是下面的新错误。
[Error Code: 191]
The LINDO API returned the following error code: 2026
LINDO API routine: LSsolve
License is too small for the given problem.
[Error Code: 193]
A solution is not available for this model.
Running output operations ...
The model's dimensions exceed the capacity of this version:
DIMENSION ACTUAL LIMIT
Constraints 7 250
Nonlinear Variables 0 50
Integer Variables 0 50
Total Variables 527 500