Create solver page; add Dockerfile

This commit is contained in:
2022-06-06 13:46:22 -05:00
parent 9112d9fde5
commit ee767b9ebd
46 changed files with 712 additions and 76 deletions

View File

@@ -3,9 +3,11 @@
using RELOG
BASEDIR = dirname(@__FILE__)
@testset "Resolve" begin
# Shoud not crash
filename = "$(pwd())/../instances/s1.json"
filename = joinpath(BASEDIR, "..", "..", "instances", "s1.json")
solution_old, model_old = RELOG.solve(filename, return_model = true)
solution_new = RELOG.resolve(model_old, filename)
end

View File

@@ -4,9 +4,11 @@
using RELOG, JSON, GZip
BASEDIR = dirname(@__FILE__)
@testset "Reports" begin
@testset "from solve" begin
solution = RELOG.solve("$(pwd())/../instances/s1.json")
solution = RELOG.solve(joinpath(BASEDIR, "..", "instances", "s1.json"))
tmp_filename = tempname()
# The following should not crash
RELOG.write_plant_emissions_report(solution, tmp_filename)