@@ -49,7 +49,6 @@ immutable Tape
4949 gU:: Float64
5050 cnsts:: Vector
5151 fix_val
52- fix_ind
5352end
5453
5554"""
@@ -69,7 +68,6 @@ Tape() = ([],
6968 0.0 ,
7069 0.0 ,
7170 [],
72- [],
7371 [])
7472
7573"""
@@ -113,7 +111,7 @@ function Generate_Tape(exp::Expr,nx::Int64,gL,gU)
113111 NodeCounter,Interval[Interval (- Inf ,Inf ) for i= 1 : NodeCounter],
114112 FW_Arg,[Expr (:call ) for i= 1 : NodeCounter],nx,
115113 RW_Arg,[Expr (:call ) for i= 1 : NodeCounter],gL,gU,
116- deepcopy (ConstList),[],[] )
114+ deepcopy (ConstList),[])
117115 global EdgeList = []
118116 global HeaderList = Symbol[]
119117 global ConstList = []
@@ -135,7 +133,7 @@ function Generate_Fixed_Tape(exp::Expr,nx::Int64,gL,gU,vals)
135133 # Sets up node finding object and generates graph to global
136134 X_NodeF:: Vector{Any} = vcat (Any[NodeFinder (i) for i= 1 : nx],vals)
137135 global NodeCounter = deepcopy (nx)
138- fX! = @eval x:: Vector{NodeFinder } -> $ exp
136+ fX! = @eval x:: Vector{Any } -> $ exp
139137 Base. invokelatest (fX!,X_NodeF)
140138
141139 # generates forward tape
@@ -295,10 +293,11 @@ and the initial interval bounds `X::Vector{Interval{T}}`.
295293function DAGContractor! (X:: Vector{Interval{T}} ,x:: TapeList ,r) where {T}
296294 Xprev:: Vector{Interval} = copy (X) # sets variable bounds on first Array to Box Bounds
297295 SetConstraintNode! (x)
298- SetConstantNode! (x)
296+ # SetConstantNode!(x)
299297 for i= 1 : r
300298 for j= 1 : length (x. sto)
301299 SetVarBounds! (x. sto[j],Xprev) # take refined bounds from previous graph
300+ SetConstantNode! (x)
302301 ForwardPass! (x. sto[j]) # run forward and reverse pass
303302 ReversePass! (x. sto[j])
304303 Xprev = x. sto[j]. Intv_Storage[1 : length (X)]
0 commit comments