<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_objective(x):
 """Calculate the objective value and prints it."""

    value = 0
    for minp, maxp in rectangles:
        x_proj = np.minimum(np.maximum(x, minp), maxp)
        value += (x - x_proj).norm()
    print('Point = [{:.4f}, {:.4f}], Value = {:.4f}'.format(x[0], x[1], value))