We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
default_consolidate
1 parent 8c652af commit c55c6c4Copy full SHA for c55c6c4
src/systems/system.jl
@@ -76,6 +76,9 @@ struct System <: AbstractSystem
76
end
77
78
function default_consolidate(costs, subcosts)
79
+ if !(costs isa Union{AbstractArray, Symbolic{<:AbstractArray}})
80
+ costs = (costs,)
81
+ end
82
return sum(costs; init = 0.0) + sum(subcosts; init = 0.0)
83
84
0 commit comments