Skip to content

Commit bb6cfe3

Browse files
CalebDerricksonamontoison
authored andcommitted
add constatint in VecchiaKKTSystem
1 parent dd10a87 commit bb6cfe3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/models/kkt/VecchiaKKT.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ struct VecchiaKKTSystem{T, VT, MT<:AbstractMatrix{T}, QN<:MadNLP.AbstractHessian
3636
buffer::VT
3737

3838
linear_solver::LS
39+
40+
# constraint vector
41+
c::VT
3942
end
4043

4144
#=
@@ -94,6 +97,9 @@ end
9497
# Setting the buffer avoids edge cases for small k values
9598
buffer = CUDA.zeros(T, max(p+n, 3*n))
9699

100+
# Query for constraint vector
101+
c = # ???
102+
97103
return VecchiaKKTSystem{T, VT, AbstractMatrix{T}, MadNLP.AbstractHessian{T, VT}, typeof(linear_solver)}(
98104
p,
99105
n,
@@ -104,7 +110,8 @@ end
104110
jac,
105111
hess,
106112
buffer,
107-
linear_solver
113+
linear_solver,
114+
c
108115
)
109116
end
110117

0 commit comments

Comments
 (0)