File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ attributes (properties) of transitions in the stochastic program.
2424"""
2525abstract type AbstractTransitionAttribute end
2626
27+ if VERSION >= v " 0.7-"
28+ Base. broadcastable (attr:: Union {AbstractStochasticProgramAttribute,
29+ AbstractNodeAttribute,
30+ AbstractTransitionAttribute}) = Ref (attr)
31+ end
32+
2733"""
2834 get(sp::AbstractStochasticProgram, attr::AbstractStochasticProgramAttribute)
2935
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ using LightGraphs
88Stochastic program instance.
99"""
1010abstract type AbstractStochasticProgram <: LightGraphs.AbstractGraph{Int} end
11+ if VERSION >= v " 0.7-"
12+ Base. broadcastable (sp:: AbstractStochasticProgram ) = Ref (sp)
13+ end
1114
1215"""
1316 stochasticprogram(args...)
You can’t perform that action at this time.
0 commit comments