I am solving a nonlinear optimization problem and I set the feasibility tolerance as:
mdl = Model(solver =KnitroSolver(feastol=0.01))
then I have several equality constraints including
@NLconstraint(mdl, psi0_con, psi[1] == psi0);
after I solve the optimization problem, I get an infeasible point and when I run:
on all of the constraints, the one that looks like the worst is:
but then when I look at the point that the optimization actually converges on, it does not look that bad:
julia> getvalue(psi0)
1.3772404760181705
julia> getvalue(psi[1])
1.3697550013526445
Any ideas why this is not a feasible point even though:
julia> getvalue(psi[1])-getvalue(psi0)
is within the tolerance that I set?