An effective approach for the optimal focusing of array fields subject to arbitrary upper bounds