A nonstandard maximization problem