rte-antares-rpackage / antaresXpansion

1 stars 6 forks source link

Running Benders on Test_Case on 0.13.0 #30

Open damanhab opened 4 years ago

damanhab commented 4 years ago

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 commented 4 years ago

Have you installed AMPL and a solver on your computer?

damanhab commented 4 years ago

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.