Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when creating new spreadsheet #3

Open
4er4er4er opened this issue Feb 15, 2020 · 1 comment
Open

Crash when creating new spreadsheet #3

4er4er4er opened this issue Feb 15, 2020 · 1 comment

Comments

@4er4er4er
Copy link

4er4er4er commented Feb 15, 2020

When writing this table,

model diet.mod;
data diet.dat;
solve;

table dietResults OUT "amplxl" "Buy.xlsx" "Results":
   [FOOD], cost, Buy, Buy.rc ~ BuyRC, {j in FOOD} Buy[j]/f_max[j] ~ BuyFrac;
write table dietResults;

if the specified spreadsheet file Buy.xlsx does not exist, the amplxl handler creates the file, but then crashes:

ampl: load amplxl.dll;
ampl: include dietOutput.run
MINOS 5.51: optimal solution found.
6 iterations, objective 88.2
cannot open file
sw: 

image

Buy.xlsx does get created, but it is empty. The AMPL files are dietOutput.run, diet.mod, diet.dat.

@nfbvs
Copy link
Contributor

nfbvs commented Feb 20, 2020

Fixed in 22976d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants