mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-05 23:38:52 -06:00
Start implementation of circular model
This commit is contained in:
@@ -5,6 +5,7 @@ version = "0.1.0"
|
||||
|
||||
[deps]
|
||||
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
|
||||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
|
||||
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
|
||||
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
|
||||
RELOG = "7cafaa7a-b311-45f0-b313-80bf15b5e5e5"
|
||||
|
||||
@@ -5,6 +5,7 @@ using RELOG
|
||||
using JuliaFormatter
|
||||
|
||||
include("instance/parse_test.jl")
|
||||
include("model/build_test.jl")
|
||||
|
||||
basedir = dirname(@__FILE__)
|
||||
|
||||
@@ -16,6 +17,7 @@ function runtests()
|
||||
@testset "RELOG" begin
|
||||
instance_parse_test_1()
|
||||
instance_parse_test_2()
|
||||
model_build_test()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
10
test/src/model/build_test.jl
Normal file
10
test/src/model/build_test.jl
Normal file
@@ -0,0 +1,10 @@
|
||||
using RELOG
|
||||
using Test
|
||||
using HiGHS
|
||||
using JuMP
|
||||
|
||||
function model_build_test()
|
||||
instance = RELOG.parsefile(fixture("simple.json"))
|
||||
model = RELOG.build_model(instance, optimizer=HiGHS.Optimizer, variable_names=true)
|
||||
print(model)
|
||||
end
|
||||
Reference in New Issue
Block a user