You could define new variables "Abs1" and "Abs2" to represent the absolute values, so that your objective function becomes
minimize VALOR:
W1 * Abs1/UMAX + W2 * Abs2/CMAX;
Then add constraints to relate the new variables to the absolute values;
Abs1 >= METAU - OBJ1
Abs1 >= OBJ1 - METAU
Abs2 >= METAC - OBJ2
Abs2 >= OBJ2 - METAC
These constraints imply that, for example, Abs1 >= abs(METAU - OBJ1) -- but since the objective is being minimized, then as long as W1 and UMAX are nonnegative params, you will have Abs1 = abs(METAU - OBJ1) in any optimal solution.
If one of METAU, OBJ1 is a variable and the other one is a param, then you could also use AMPL's piecewise-linear notation.
--
Robert Fourer
am...@googlegroups.com