I'm not so sure about this. We are not even the point where auto placement and routing for PCB is there. And the reason is simple, the amount of constraints required is just too much work to put in for a person. They may as well do it themselves at that point.
I would expect most design is like this. There are thousands of constraints a designer has in the back of their head, most they are not even consciously aware of. The optimization of the objective is the trivial part. Defining the proper objective function will be very hard.