From 4ab9b3cb3ec3a47ab644f23c46f39044605ee35d Mon Sep 17 00:00:00 2001 From: "Cosmin G. Petra" Date: Mon, 6 Jan 2025 12:07:51 -0800 Subject: [PATCH] updated HiOp option names --- options/hiop.options | 4 ++-- src/opflow/solver/hiop/opflow_hiopsparse.cpp | 4 ++-- src/opflow/solver/hiop/opflow_hiopsparsegpu.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/options/hiop.options b/options/hiop.options index e0ac328af..6211c47c5 100644 --- a/options/hiop.options +++ b/options/hiop.options @@ -1,5 +1,5 @@ -#dualsUpdateType linear -#dualsInitialization zero +#duals_update_type linear +#duals_init zero #Hessian analytical_exact #KKTLinsys auto diff --git a/src/opflow/solver/hiop/opflow_hiopsparse.cpp b/src/opflow/solver/hiop/opflow_hiopsparse.cpp index 5b9ca60b6..b36cf4f8e 100644 --- a/src/opflow/solver/hiop/opflow_hiopsparse.cpp +++ b/src/opflow/solver/hiop/opflow_hiopsparse.cpp @@ -651,8 +651,8 @@ PetscErrorCode OPFLOWSolverSetUp_HIOPSPARSE(OPFLOW opflow) { // hiop->sp->options->SetNumericValue("fixed_var_perturb",1.0e-6); // hiop->sp->options->SetStringValue("mem_space","host"); - hiop->sp->options->SetStringValue("dualsUpdateType", "linear"); - hiop->sp->options->SetStringValue("dualsInitialization", "zero"); + hiop->sp->options->SetStringValue("duals_update_type", "linear"); + hiop->sp->options->SetStringValue("duals_init", "zero"); hiop->sp->options->SetStringValue("fixed_var", "relax"); hiop->sp->options->SetStringValue("Hessian", "analytical_exact"); hiop->sp->options->SetStringValue("KKTLinsys", "xdycyd"); diff --git a/src/opflow/solver/hiop/opflow_hiopsparsegpu.cpp b/src/opflow/solver/hiop/opflow_hiopsparsegpu.cpp index 3517c98ae..d7a9539db 100644 --- a/src/opflow/solver/hiop/opflow_hiopsparsegpu.cpp +++ b/src/opflow/solver/hiop/opflow_hiopsparsegpu.cpp @@ -380,7 +380,6 @@ PetscErrorCode OPFLOWSolverSetUp_HIOPSPARSEGPU(OPFLOW opflow) { hiop->sp->options->SetStringValue("mem_space", "device"); hiop->sp->options->SetStringValue("compute_mode", "gpu"); - hiop->sp->options->SetStringValue("dualsInitialization", "zero"); hiop->sp->options->SetStringValue("duals_init", "zero"); hiop->sp->options->SetStringValue("fact_acceptor", "inertia_free");