Rename package to RELOG

This commit is contained in:
2020-05-22 08:45:00 -05:00
parent 0e451069fe
commit bb88e6e2e1
7 changed files with 20 additions and 20 deletions

View File

@@ -1,13 +1,13 @@
# Copyright (C) 2020 Argonne National Laboratory
# Written by Alinson Santos Xavier <axavier@anl.gov>
using ReverseManufacturing
using RELOG
@testset "Graph" begin
@testset "build_graph" begin
basedir = dirname(@__FILE__)
instance = ReverseManufacturing.load("$basedir/../instances/s1.json")
graph = ReverseManufacturing.build_graph(instance)
instance = RELOG.load("$basedir/../instances/s1.json")
graph = RELOG.build_graph(instance)
process_node_by_location_name = Dict(n.location.location_name => n
for n in graph.process_nodes)

View File

@@ -1,12 +1,12 @@
# Copyright (C) 2020 Argonne National Laboratory
# Written by Alinson Santos Xavier <axavier@anl.gov>
using ReverseManufacturing
using RELOG
@testset "Instance" begin
@testset "load" begin
basedir = dirname(@__FILE__)
instance = ReverseManufacturing.load("$basedir/../instances/s1.json")
instance = RELOG.load("$basedir/../instances/s1.json")
centers = instance.collection_centers
plants = instance.plants

View File

@@ -1,14 +1,14 @@
# Copyright (C) 2020 Argonne National Laboratory
# Written by Alinson Santos Xavier <axavier@anl.gov>
using ReverseManufacturing, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats
using RELOG, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats
@testset "Model" begin
@testset "build" begin
basedir = dirname(@__FILE__)
instance = ReverseManufacturing.load("$basedir/../instances/s1.json")
graph = ReverseManufacturing.build_graph(instance)
model = ReverseManufacturing.build_model(instance, graph, Cbc.Optimizer)
instance = RELOG.load("$basedir/../instances/s1.json")
graph = RELOG.build_graph(instance)
model = RELOG.build_model(instance, graph, Cbc.Optimizer)
process_node_by_location_name = Dict(n.location.location_name => n
for n in graph.process_nodes)
@@ -43,7 +43,7 @@ using ReverseManufacturing, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormat
end
@testset "solve" begin
solution = ReverseManufacturing.solve("$(pwd())/../instances/s1.json")
solution = RELOG.solve("$(pwd())/../instances/s1.json")
JSON.print(stdout, solution, 4)
@test "costs" in keys(solution)

View File

@@ -3,7 +3,7 @@
using Test
@testset "ReverseManufacturing" begin
@testset "RELOG" begin
include("instance_test.jl")
include("graph_test.jl")
include("model_test.jl")