mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 07:48:50 -06:00
Fix tests
This commit is contained in:
@@ -121,7 +121,12 @@
|
||||
"capacity": 1000,
|
||||
"opening cost": [3000, 3000],
|
||||
"fixed operating cost": [50.0, 50.0],
|
||||
"variable operating cost": [50.0, 50.0]
|
||||
"variable operating cost": [50.0, 50.0],
|
||||
"disposal": {
|
||||
"P3": {
|
||||
"cost": [100.0, 100.0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L4": {
|
||||
"latitude": 0.75,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (C) 2020 Argonne National Laboratory
|
||||
# Written by Alinson Santos Xavier <axavier@anl.gov>
|
||||
|
||||
module ReverseManufacturing
|
||||
module RELOG
|
||||
include("dotdict.jl")
|
||||
include("instance.jl")
|
||||
include("graph.jl")
|
||||
|
||||
@@ -155,13 +155,13 @@ end
|
||||
|
||||
function solve(filename::String; optimizer=Cbc.Optimizer)
|
||||
println("Reading $filename...")
|
||||
instance = ReverseManufacturing.load(filename)
|
||||
instance = RELOG.load(filename)
|
||||
|
||||
println("Building graph...")
|
||||
graph = ReverseManufacturing.build_graph(instance)
|
||||
graph = RELOG.build_graph(instance)
|
||||
|
||||
println("Building optimization model...")
|
||||
model = ReverseManufacturing.build_model(instance, graph, optimizer)
|
||||
model = RELOG.build_model(instance, graph, optimizer)
|
||||
|
||||
println("Optimizing...")
|
||||
JuMP.optimize!(model.mip)
|
||||
|
||||
Reference in New Issue
Block a user