Weak minimal elements and weak minimal solutions of a nonconvex set-valued optimization problem