Saying in JuMP, I want to a objective function being a conbination of the cost function f(x) and the constraint violation evaluation h(x), as @objective(model, Min, f(x) + μ * h(x)).
Is there a way for me to changeμ dynamically, based on saying h(x)?
Pretty much make JuMP work like a penalty-based solver.
So if I want to do that every iteration to help the NLP solver to converge, I then basically set max_iter to 1, changing objective based on return value, warmstart the problem and resolve?
Why would you want to do that? Solvers like Ipopt already have a sophisticated barrier algorithm. Just formulate your true model and let the solver solve it.