The question arises when working at the following problem:
A light wire is bent into a right angle and a heavy ball is attached to the bend. The wire is placed onto supports with height difference $h$ and horizontal distance $a$. Find the position of the wire in its equilibrium. Express the position as the angle between the bisector of the right angle and the vertical. Neglect any friction between the wire and the supports;the supports have little grooves keeping all motion in the plane of the wire and the figure.
So it is not a hard problem. The solutions is as follows:
Since the wire always forms a right angle the ball is constrained to move in a circle whose diameter is the line that connects the points where the wire is contact with the support.
Then if it is in equilibrium its potential energy is minimum. That happens in the lowest point of the circle and it is solved.
But there is something I do not understand about that last idea. I thought that you could apply that only if all forces acting on the body were conservative, if that is not the case the potential would be minimum when the conservative forces are $0$ and since non-conservative forces are acting the body would not be in equilibrium. And here you have the forces exerted by the parts of the wire so you wouldn't be able to apply it.
I know that solution can't be wrong but I don't know what's wrong in what I think, so can you tell what is confusing me?