문제

Following this post - http://zverovich.net/2013/06/27/visualizing-geographical-ampl-data-using-ipython-and-google-charts.html

I tried something like this:

...
option solver '..\Gecode\include\gecode';
solve;

CreateProcess("..\Gecode\include\gecode.exe") failure!
Error code 2.

and running without:

"Cannot invoke minos: no such program."

After installing gecode on Windows, I don't see a particular file to point to. Does the IPython project need any other AMPL files besides ampl.exe, or is it just missing gecode?

도움이 되었습니까?

해결책

To be able to call solve you need to install solvers as well. Normally solver executables are placed on the search path to make them available from AMPL, although you can specify the full path to a solver executable in the solver option, e.g.

option solver 'path/to/solver';

Several open-source solvers, including gecode, are available for download from the AMPL Google Code repository.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top