Skip to content

Commit

Permalink
Cahnge ipopt _optimize method name
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Jun 27, 2024
1 parent 24bd702 commit 177ffd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ipopt_model_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ NB_MODULE(ipopt_model_ext, m)
const std::vector<VariableIndex> &>(&IpoptModel::add_nl_expression),
nb::arg("constraint"), nb::arg("f"), nb::arg("var"))

.def("optimize", &IpoptModel::optimize, nb::call_guard<nb::gil_scoped_release>())
.def("_optimize", &IpoptModel::optimize, nb::call_guard<nb::gil_scoped_release>())
.def("set_raw_option_int", &IpoptModel::set_raw_option_int)
.def("set_raw_option_double", &IpoptModel::set_raw_option_double)
.def("set_raw_option_string", &IpoptModel::set_raw_option_string);
Expand Down
3 changes: 1 addition & 2 deletions src/pyoptinterface/_src/ipopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ def optimize(self, jit_engine="LLVM"):
elif jit_engine == "LLVM":
self.jit_compiler = LLJITCompiler()
compile_functions_llvm(self, self.jit_compiler)

super().optimize()
super()._optimize()

def register_function(
self, f, /, var, param=(), var_values=None, param_values=None, name=None
Expand Down

0 comments on commit 177ffd2

Please sign in to comment.