3

I am sorry if this question is an extremely naive question. Consider I have an optimization problem with an objective function as follows:

$\max_x \{f(x) - g(x)\}$

Does that mean, As $g(x)$ has a negative sign, I am maximizing $f(x)$ while I want to minimize $g(x)$.

P.S: This question is related to the mean-variance (or in general return - risk) portfolio optimization. Thanks in advance.

Mohsin
  • 61

2 Answers2

2

No, you are not maximizing $f(x)$ or minimizing $g(x)$. You are maximizing $f(x) - g(x)$, which may not be the same.

For example, take $f(x) = \sin(x)$ and $g(x) = \cos (x)$. Then the maximum of $f(x)$ is $1$ and the minimum of $g(x)$ is $-1$, but the maximum of $\sin x - \cos x$ is equal to $\sqrt 2$ and is not attained either at the maximum of $f$ nor at the minimum of $g$.

5xum
  • 123,496
  • 6
  • 128
  • 204
2

(Assuming that $f$ and $g$ are themselves positive valued functions), your idea is sort of right, but sort of wrong. You are trying to maximize $f-g$, so this involves making $g$ small and making $f$ big, but it's misleading to say you want to maximize $f(x)$ and minimize $g(x)$ because there may be some tradeoff between the two. What you want to do is exactly what you wrote mathematically: to maximize the difference.

You can imagine that $f$ is revenue, and $g$ is cost, for example, when a company makes $x$ products. If their maximum profit is attained by making 30,000 products, this doesn't mean that $g(x)$ is minimized at 30,000. Clearly it would cost less to make just $25,000$ products, but the point is that the extra revenue from making $30,000$ outweighs this cost. There is a trade-off between $f$ and $g$. Thus you want to maximize exactly what you wrote down, $f(x) - g(x)$, i.e. the company's profit function.

hunter
  • 29,847