@@ -88,6 +88,7 @@ exposeQpObjectDense(pybind11::module_ m)
8888 bool compute_preconditioner,
8989 optional<T>,
9090 optional<T>,
91+ optional<T>,
9192 optional<T>)>(&dense::QP<T>::init),
9293 " function for initialize the QP model." ,
9394 pybind11::arg_v (" H" , nullopt , " quadratic cost" ),
@@ -105,7 +106,11 @@ exposeQpObjectDense(pybind11::module_ m)
105106 pybind11::arg_v (
106107 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
107108 pybind11::arg_v (
108- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
109+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
110+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
111+ nullopt ,
112+ " manual minimal H eigenvalue proposed to regularize H"
113+ " in case it is non convex." ))
109114 .def (" init" ,
110115 static_cast <void (dense::QP<T>::*)(optional<dense::MatRef<T>>,
111116 optional<dense::VecRef<T>>,
@@ -119,6 +124,7 @@ exposeQpObjectDense(pybind11::module_ m)
119124 bool compute_preconditioner,
120125 optional<T>,
121126 optional<T>,
127+ optional<T>,
122128 optional<T>)>(&dense::QP<T>::init),
123129 " function for initialize the QP model." ,
124130 pybind11::arg_v (" H" , nullopt , " quadratic cost" ),
@@ -140,7 +146,11 @@ exposeQpObjectDense(pybind11::module_ m)
140146 pybind11::arg_v (
141147 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
142148 pybind11::arg_v (
143- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
149+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
150+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
151+ nullopt ,
152+ " manual minimal H eigenvalue proposed to regularize H"
153+ " in case it is non convex." ))
144154 .def (" solve" ,
145155 static_cast <void (dense::QP<T>::*)()>(&dense::QP<T>::solve),
146156 " function used for solving the QP problem, using default parameters." )
@@ -163,6 +173,7 @@ exposeQpObjectDense(pybind11::module_ m)
163173 bool update_preconditioner,
164174 optional<T>,
165175 optional<T>,
176+ optional<T>,
166177 optional<T>)>(&dense::QP<T>::update),
167178 " function used for updating matrix or vector entry of the model using "
168179 " dense matrix entries." ,
@@ -183,7 +194,11 @@ exposeQpObjectDense(pybind11::module_ m)
183194 pybind11::arg_v (
184195 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
185196 pybind11::arg_v (
186- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
197+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
198+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
199+ nullopt ,
200+ " manual minimal H eigenvalue proposed to regularize H"
201+ " in case it is non convex." ))
187202 .def (
188203 " update" ,
189204 static_cast <void (dense::QP<T>::*)(optional<dense::MatRef<T>>,
@@ -198,6 +213,7 @@ exposeQpObjectDense(pybind11::module_ m)
198213 bool update_preconditioner,
199214 optional<T>,
200215 optional<T>,
216+ optional<T>,
201217 optional<T>)>(&dense::QP<T>::update),
202218 " function used for updating matrix or vector entry of the model using "
203219 " dense matrix entries." ,
@@ -222,7 +238,11 @@ exposeQpObjectDense(pybind11::module_ m)
222238 pybind11::arg_v (
223239 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
224240 pybind11::arg_v (
225- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
241+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
242+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
243+ nullopt ,
244+ " manual minimal H eigenvalue proposed to regularize H"
245+ " in case it is non convex." ))
226246 .def (" cleanup" ,
227247 &dense::QP<T>::cleanup,
228248 " function used for cleaning the workspace and result "
@@ -297,7 +317,11 @@ exposeQpObjectSparse(pybind11::module_ m)
297317 pybind11::arg_v (
298318 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
299319 pybind11::arg_v (
300- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
320+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
321+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
322+ nullopt ,
323+ " manual minimal H eigenvalue proposed to regularize H"
324+ " in case it is non convex." ))
301325
302326 .def (" update" ,
303327 &sparse::QP<T, I>::update,
@@ -319,7 +343,11 @@ exposeQpObjectSparse(pybind11::module_ m)
319343 pybind11::arg_v (
320344 " mu_eq" , nullopt , " dual equality constraint proximal parameter" ),
321345 pybind11::arg_v (
322- " mu_in" , nullopt , " dual inequality constraint proximal parameter" ))
346+ " mu_in" , nullopt , " dual inequality constraint proximal parameter" ),
347+ pybind11::arg_v (" manual_minimal_H_eigenvalue" ,
348+ nullopt ,
349+ " manual minimal H eigenvalue proposed to regularize H"
350+ " in case it is non convex." ))
323351 .def (" solve" ,
324352 static_cast <void (sparse::QP<T, I>::*)()>(&sparse::QP<T, I>::solve),
325353 " function used for solving the QP problem, using default parameters." )
0 commit comments