Skip to content

Commit 4c34a54

Browse files
authored
Merge pull request #481 from control-toolbox/475-bug-sol-getters-for-exa-ipopt
first commit
2 parents d885c0e + 1292772 commit 4c34a54

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)