Skip to content

Commit 1292772

Browse files
committed
first commit
1 parent d885c0e commit 1292772

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/solve.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ function parse_description(description)
102102
error("no known model (:adnlp, :exa) in method", method)
103103
end
104104

105+
# patch: replaces ipopt by madnlp for :exa as long as the issue with getters for a posteriori treatment is not fixed
106+
if (:exa method) && (:ipopt method)
107+
nlp_solver = CTDirect.MadNLPBackend()
108+
@warn "currently replacing Ipopt with MadNLP for :exa"
109+
end
110+
105111
return nlp_solver, nlp_model
106112
end
107113

0 commit comments

Comments
 (0)