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

Running Benders on Test_Case on 0.13.0 #30

Open
damanhab opened this issue Feb 17, 2020 · 2 comments
Open

Running Benders on Test_Case on 0.13.0 #30

damanhab opened this issue Feb 17, 2020 · 2 comments

Comments

@damanhab
Copy link

I have run the benders command on the test case provided with AntaresXpansion as follows

solv <- "C:\Program Files\RTE\Antares\7.0.1\bin\antares-7.0-solver.exe"
SSS <- "C:\Users\Administrator\Documents\R\win-library\3.6\antaresXpansion\testdata\test_case"
setSimulationPath(SSS,simulation = 0)
benders(solv, display = TRUE, report = TRUE, clean = TRUE,
parallel = TRUE, recovery_mode = FALSE, ampl_path = NULL,
opts = antaresRead::simOptions())

I get the following error:

--- ITERATION 1 (complete iteration, 156 simulated weeks) ---
ANTARES simulation running ... [done]
Solve master problem ... [done]
Error in read.table(paste0(tmp_folder, "/out_underestimator.txt"), header = FALSE) :
no lines available in input

In addition: Warning message:
In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :
running command 'C:\WINDOWS\system32\cmd.exe /c C: & cd "C:/Users/Administrator/Documents/R/win-library/3.6/antaresXpansion/testdata/test_case/user/expansion/temp" & ampl "C:/Users/Administrator/Documents/R/win-library/3.6/antaresXpansion/testdata/test_case/user/expansion/temp/master_run.ampl" ' had status 1

@MathildeFranconRTE
Copy link
Collaborator

Have you installed AMPL and a solver on your computer?

@damanhab
Copy link
Author

No I was not aware that they were needed to be installed on my computer.
I have amplr (ampl API for R) installed. and have set ampl_path = path of ampl.exe (C:\Users\azizb\OneDrive - UNSW\2020 - T1\Antares\amplide.mswin64\ampl.exe)

this has returned the following error
Solve master problem ... Error in solve_master(opts, relax_integrality, ampl_path) :
master problem returned the following error: Cannot invoke cbc: no such program.

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