I want to write a code of an OPL model. This model is about p center problems. The objective function of this model is as same as p median problem, except that we need to minimize the maximum weighted distance instead of minimize the sum of total weighted distance. Do you have any idea how can I write this objective function in cplex?