You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Convex.jl
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,11 @@ global DEFAULT_SOLVER = nothing
9
9
### modeling framework
10
10
include("dcp.jl")
11
11
include("expressions.jl")
12
-
include("conic_form.jl")
12
+
# need to define `Variable` before `UniqueConicForms`
13
13
include("variable.jl")
14
+
include("conic_form.jl")
15
+
# need to define `conic_form!` for `Variable`s after `UniqueConicForms`
16
+
include("variable_conic_form.jl")
14
17
include("constant.jl")
15
18
include("constraints/constraints.jl")
16
19
include("constraints/signs_and_sets.jl")
@@ -85,13 +88,9 @@ include("utilities/show.jl")
85
88
include("utilities/iteration.jl")
86
89
include("utilities/broadcast.jl")
87
90
88
-
#Temporary workaround for memory leak (https://github.com/JuliaOpt/Convex.jl/issues/83)
91
+
# Deprecated workaround for memory leak (https://github.com/JuliaOpt/Convex.jl/issues/83)
89
92
functionclearmemory()
90
-
global id_to_variables
91
-
empty!(id_to_variables)
92
-
global conic_constr_to_constr
93
-
empty!(conic_constr_to_constr)
94
-
GC.gc()
93
+
Base.depwarn("Convex.clearmemory() is deprecated, as the memory leak it works around has been closed (in https://github.com/JuliaOpt/Convex.jl/pull/322). This function no longer does anything and will be removed in a future Convex.jl release.", :clearmemory )
0 commit comments