ampl / mp

An open-source library for mathematical programming
https://mp.ampl.com
Other
229 stars 42 forks source link

smpswriter: invalid arguments to expectation #98

Closed mapgccv closed 8 years ago

mapgccv commented 8 years ago

After compiling a fresh version of smpswriter and following the instructions at https://github.com/ampl/mp/tree/master/solvers/smpswriter, I get:

ampl: shell "smpswriter farmer";
Error: invalid arguments to expectation
exit code 1

Besides, I have tried to change the objective function in format.ampl to the format shown in the page above - they are different, as in the page above the function expectation is not used, and I get the same error. Any insight?

vitaut commented 8 years ago

The information https://github.com/ampl/mp/tree/master/solvers/smpswriter refers to the old SMPS writer which is available in the released version. Please refer to #97 for the current format.

vitaut commented 8 years ago

smpswriter is working now.