Skip to content

Commit 8731113

Browse files
committed
Fix tests
1 parent 778e7ec commit 8731113

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

Project.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name = "DecisionFocusedLearningBenchmarks"
22
uuid = "2fbe496a-299b-4c81-bab5-c44dfc55cf20"
3-
authors = ["Members of JuliaDecisionFocusedLearning"]
43
version = "0.4.0"
4+
authors = ["Members of JuliaDecisionFocusedLearning"]
5+
6+
[workspace]
7+
projects = ["docs", "test"]
58

69
[deps]
710
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
@@ -20,7 +23,6 @@ Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
2023
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
2124
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
2225
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
23-
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
2426
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
2527
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2628
Metalhead = "dbeba491-748d-5e0e-a39e-b530a07fa0cc"
@@ -52,7 +54,6 @@ Ipopt = "1.6"
5254
IterTools = "1.10.0"
5355
JSON = "1"
5456
JuMP = "1.22"
55-
JuliaFormatter = "1.0.62"
5657
LaTeXStrings = "1.4.0"
5758
LinearAlgebra = "1"
5859
Metalhead = "0.9.4"
@@ -67,6 +68,3 @@ SparseArrays = "1"
6768
Statistics = "1"
6869
StatsBase = "0.34.4"
6970
julia = "1.10"
70-
71-
[workspace]
72-
projects = ["docs", "test"]

src/DynamicAssortment/environment.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Environment for the dynamic assortment problem.
77
$TYPEDFIELDS
88
"""
99
@kwdef mutable struct Environment{I<:Instance,R<:AbstractRNG,S<:Union{Nothing,Int}} <:
10-
Utils.AbstractEnvironment
10+
AbstractEnvironment
1111
"associated instance"
1212
instance::I
1313
"current step"

src/Maintenance/Maintenance.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ struct MaintenanceBenchmark <: AbstractDynamicBenchmark{true}
4444
@assert K <= N "number of maintained components $K > number of components $N"
4545
@assert K >= 0 && N >= 0 "number of components should be positive"
4646
@assert 0 <= p <= 1 "degradation probability $p is not in [0, 1]"
47-
# ...
4847
return new(N, K, n, p, c_f, c_m, max_steps)
4948
end
5049
end

src/Maintenance/environment.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Environment for the maintenance problem.
66
# Fields
77
$TYPEDFIELDS
88
"""
9-
@kwdef mutable struct Environment{I<:Instance,R<:AbstractRNG,S<:Union{Nothing,Int}} <:
10-
Utils.AbstractEnvironment
9+
@kwdef mutable struct Environment{R<:AbstractRNG,S<:Union{Nothing,Int}} <:
10+
AbstractEnvironment
1111
"associated instance"
12-
instance::I
12+
instance::Instance
1313
"current step"
1414
step::Int
1515
"degradation state"

0 commit comments

Comments
 (0)