I just get three lines of literally “nothing” printed out. I’m expecting a bunch of matrices that would hopefully be filled with values near zero. From the docs, it looks like you can assign a start_value directly on a constraint, which is what that is presumably printing (I don’t want that, so haven’t set that). If I do e.g. display(dyn1) I get a large symbolic expression composed of all my variables, and my variables should all have starting values. How do I push those starting values through the constraint expression and print it out?
Thanks, both of those look like they work, but the primal_infeasibility_report() is a bit harder to read. Using display(value(start_value, dyn1)) gives me all the zeros I was looking for, though.
The return value is a dictionary, so it’s intended to be iterated over, rather than pretty printing. You could do something like:
julia> for (k, v) in primal_feasibility_report(start_value, model)
println("Constraint $(name(k)) is infeasible by $v")
println("The primal value is ", value(start_value, k))
end
Constraint c2 is infeasible by 3.0
The primal value is 2.0