Skip to content

Commit

Permalink
AbstractFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungFaithful committed Apr 29, 2019
1 parent ca88cde commit d83c0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/workflow_introduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ts_input_data = load_timeseries_data_provided("GER_1"; T=24)

#= ClustData
How the struct is setup:
ClustData{region::String,K::Int,T::Int,data::Dict{String,Array},weights::Array{Float},mean::Dict{String,Array},sdv::Dict{String,Array}} <: TSData
ClustData{region::String,K::Int,T::Int,data::Dict{String,Array},weights::Array{AbstractFloat},mean::Dict{String,Array},sdv::Dict{String,Array}} <: TSData
-region: specifies region data belongs to
-K: number of periods
-T: time steps per period
Expand Down
4 changes: 2 additions & 2 deletions src/utils/datastructs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct OptVariable{T,N,Ax,L<:NTuple{N,Dict}} <: AbstractArray{T,N}
end

"""
OptResult{status::Symbol,objective::Number,variables::Dict{String,Any},sets::Dict{String,Array},opt_config::Dict{String,Any},opt_info::Dict{String,Any}}
OptResult{status::Symbol,objective::AbstractFloat,variables::Dict{String,Any},sets::Dict{String,Array},opt_config::Dict{String,Any},opt_info::Dict{String,Any}}
- `status`: Symbol about the solution status of the model in normal cases `:OPTIMAL`
- `objective`: Value of the objective function
- `variables`: Dictionary with each OptVariable as an entry
Expand All @@ -39,7 +39,7 @@ end
"""
struct OptResult
status::Symbol
objective::Number
objective::AbstractFloat
variables::Dict{String,Any}
sets::Dict{String,Array}
opt_config::Dict{String,Any}
Expand Down

0 comments on commit d83c0a3

Please sign in to comment.