mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 07:48:50 -06:00
Create solver page; add Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user