diff --git a/src/scopflow/solver/hiop/scopflow_hiop.cpp b/src/scopflow/solver/hiop/scopflow_hiop.cpp index 627b863b..7dcfa19a 100644 --- a/src/scopflow/solver/hiop/scopflow_hiop.cpp +++ b/src/scopflow/solver/hiop/scopflow_hiop.cpp @@ -245,7 +245,8 @@ bool SCOPFLOWHIOPInterface::eval_f_rterm(hiop::size_type idx, const int &n, return true; } -bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, double *x, +bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, + double *x, hiop::hiopVector &gradvec) { (void)idx; (void)n; @@ -311,11 +312,11 @@ bool SCOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, d } hiop::size_type SCOPFLOWHIOPInterface::get_num_rterms() const { - return (hiop::size_type) scopflow->Nc - 1; + return (hiop::size_type)scopflow->Nc - 1; } hiop::size_type SCOPFLOWHIOPInterface::get_num_vars() const { - return (hiop::size_type) scopflow->opflow0->nx; + return (hiop::size_type)scopflow->opflow0->nx; } void SCOPFLOWHIOPInterface::get_solution(double *x) const { diff --git a/src/scopflow/solver/hiop/scopflow_hiop.h b/src/scopflow/solver/hiop/scopflow_hiop.h index 10dbbe66..834cb2ff 100644 --- a/src/scopflow/solver/hiop/scopflow_hiop.h +++ b/src/scopflow/solver/hiop/scopflow_hiop.h @@ -23,7 +23,8 @@ class SCOPFLOWHIOPInterface : public hiop::hiopInterfacePriDecProblem { const double *hess, const char *master_options_file); - bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, double &rval); + bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, + double &rval); bool eval_grad_rterm(hiop::size_type idx, const int &n, double *x, hiop::hiopVector &grad); diff --git a/src/sopflow/solver/hiop/sopflow_hiop.cpp b/src/sopflow/solver/hiop/sopflow_hiop.cpp index 8c2ce05a..8b933ca5 100644 --- a/src/sopflow/solver/hiop/sopflow_hiop.cpp +++ b/src/sopflow/solver/hiop/sopflow_hiop.cpp @@ -283,7 +283,8 @@ bool SOPFLOWHIOPInterface::eval_f_rterm(hiop::size_type idx, const int &n, return true; } -bool SOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, double *x, +bool SOPFLOWHIOPInterface::eval_grad_rterm(hiop::size_type idx, const int &n, + double *x, hiop::hiopVector &gradvec) { (void)idx; (void)n; diff --git a/src/sopflow/solver/hiop/sopflow_hiop.h b/src/sopflow/solver/hiop/sopflow_hiop.h index aeedfa05..0aab4ffd 100644 --- a/src/sopflow/solver/hiop/sopflow_hiop.h +++ b/src/sopflow/solver/hiop/sopflow_hiop.h @@ -24,7 +24,8 @@ class SOPFLOWHIOPInterface : public hiop::hiopInterfacePriDecProblem { const double *hess, const char *master_options_file); - bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, double &rval); + bool eval_f_rterm(hiop::size_type idx, const int &n, const double *x, + double &rval); bool eval_grad_rterm(hiop::size_type idx, const int &n, double *x, hiop::hiopVector &grad);