Optimization Problems via Best Proximity Point Analysis