I want to maximize a function that has no local maximum in a certain interval. For instance, consider the function $f(x)=x$ over the interval $[0,1]$. There is no local maximum, but the maximum value of the function is clearly $1$. Here is the function that I would like to maximize: $$f(x_1,x_2,...,x_n)=\frac{1}{\Big(1-\sum\limits_{k=1}^{n}x_k\Big)^{1-\sum\limits_{k=1}^{n}x_k}\prod\limits_{k=1}^{n}x_k^{x_k}}$$
For instance, if $k=3$, we have $$f(x_1,x_2,x_3)=\frac{1}{(1-x_1-x_2-x_3)^{1-x_1-x_2-x_3}x_1^{x_1}x_2^{x_2}x_3^{x_3}}$$
I want to maximize this function with the following constraints: $$\sum\limits_{k=1}^{n}kx_k\leq 1$$ $$0\leq x_i\leq 1$$ This family of functions seems to have no local maximima when the constraints are applied. How can I work around this and find a maximal value(s)?