What is the maximum of the given function in the closed square $D$?

Click For Summary
SUMMARY

The maximum of the function \( f(x_1, x_2) = x_1 + x_2 \) within the closed square \( D \) defined by the vertices \( (0,0), (1,0), (1,1), (0,1) \) is 2, achieved at the point \( (1,1) \). The analysis confirms that all other feasible points yield values less than 2, establishing \( (1,1) \) as the optimal solution. The discussion emphasizes the importance of evaluating corner points in linear programming to determine maxima.

PREREQUISITES
  • Understanding of linear programming concepts
  • Familiarity with evaluating functions over a defined domain
  • Knowledge of partial derivatives and their role in optimization
  • Ability to analyze corner points in geometric constraints
NEXT STEPS
  • Study the method of evaluating corner points in linear programming problems
  • Learn about the role of partial derivatives in finding maxima and minima
  • Explore the implications of including boundaries in optimization problems
  • Investigate other optimization techniques beyond linear programming
USEFUL FOR

Mathematicians, students studying optimization, and professionals in fields requiring linear programming analysis will benefit from this discussion.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

We consider the function $f(x_1,x_2)=x_1+x_2$ and the (closed) square $D$ with edges $(0,0), (1,0), (1,1), (0,1)$.

Check if $f$ has a maximum in $D$ and if so, find the points of $D$ at which this maximum is achieved.$$\max_{(x_1,x_2) \in D} (x_1+x_2)$$

View attachment 4792

$$(S)\left\{\begin{matrix}
x_1 \geq 0\\
x_2 \geq 0\\
x_1 \leq 1\\
x_2 \leq 1
\end{matrix}\right.$$

so $D=\{ (x_1, x_2) \in \mathbb{R}^2: x_1, x_2 \text{ satisfy } (S)\}$.

$$x_1, x_2 \geq 0$$

Obviously $\max_{(x_1, x_2) \in D} (x_1+x_2) \leq \max_{(x_1, x_2) \in D} x_1 + \max_{(x_1, x_2) \in D} x_2 \leq 1+1=2 $

and $\max_{(x_1, x_2) \in D} (x_1+x_2)=f(1,1)$, so $(1,1)$ is the optimal solution of the linear programming problem.
How do we deduce that the maximum of the given function is $2$. Because of the fact that the maximum is less or equal to $2$ and there is a point $(1,1)$ for which the value $2$ is achieved?
 

Attachments

  • square.png
    square.png
    2.8 KB · Views: 119
Physics news on Phys.org
evinda said:
Hello! (Wave)

and $\max_{(x_1, x_2) \in D} (x_1+x_2)=f(1,1)$, so $(1,1)$ is the optimal solution of the linear programming problem.

Small correction: it's "an" optimal solution.
We don't know yet if it is "the" optimal solution. (Nerd)
How do we deduce that the maximum of the given function is $2$. Because of the fact that the maximum is less or equal to $2$ and there is a point $(1,1)$ for which the value $2$ is achieved?

Yes. (Smile)

Still, I believe the question asks for "all" points... (Sweating)
 
I like Serena said:
Small correction: it's "an" optimal solution.
We don't know yet if it is "the" optimal solution. (Nerd)

Why? Aren't all the other values that $f$ could get smaller? Or am I wrong? (Thinking)
I like Serena said:
Yes. (Smile)

Still, I believe the question asks for "all" points... (Sweating)

So in order to show that we have one optimal solution do we have to reject the other feasible solutions?
 
evinda said:
Why? Aren't all the other values that $f$ could get smaller? Or am I wrong? (Thinking)

So in order to show that we have one optimal solution do we have to reject the other feasible solutions?

Indeed. And that's exactly the point.
Because all other values that $f$ could get are smaller, it is "the" maximum. (Happy)

Moveover, if the boundary were not included, there would be no maximum, only a supremum. (Nerd)
 
I like Serena said:
Indeed. And that's exactly the point.
Because all other values that $f$ could get are smaller, it is "the" maximum. (Happy)

Moveover, if the boundary were not included, there would be no maximum, only a supremum. (Nerd)

In order to reject the other feasible solutions do we have to compute the values $f(0,0), f(1,0), f(0,1)$ and the value of $f\left( \frac{1}{m}, \frac{1}{n}\right), n,m \in \mathbb{N}$ ? (Thinking)
 
evinda said:
In order to reject the other feasible solutions do we have to compute the values $f(0,0), f(1,0), f(0,1)$ and the value of $f\left( \frac{1}{m}, \frac{1}{n}\right), n,m \in \mathbb{N}$ ? (Thinking)

From a linear programming point of view, indeed we need to check all the corner points.
But that only works if the function to maximize is a linear function.

Where do your $f\left( \frac{1}{m}, \frac{1}{n}\right)$ come from? (Wondering)

More generally, we would take the partial derivatives and see where they are zero.
Additionally, we would inspect the boundaries to see if there is a maximum there.
For linear programming problems that can be simplified to just looking at the corner points. (Nerd)
 
I like Serena said:
From a linear programming point of view, indeed we need to check all the corner points.
But that only works if the function to maximize is a linear function.

Where do your $f\left( \frac{1}{m}, \frac{1}{n}\right)$ come from? (Wondering)

More generally, we would take the partial derivatives and see where they are zero.
Additionally, we would inspect the boundaries to see if there is a maximum there.
For linear programming problems that can be simplified to just looking at the corner points. (Nerd)

Ah I didn't know that if we have a linear programming problem we look only at the corner points. (Whew)

So we say that $\max_{(x_1, x_2) \in D} (x_1+x_2) \leq 2$ and

$$f(0,0)=0 \\ f(1,0)=1 \\ f(1,1)=2 \\ f(0,1)=1$$

thus the maximum of the function $f$ is $2$ and is achieved for $(x_1, x_2)=(1,1)$, right?
 
evinda said:
Ah I didn't know that if we have a linear programming problem we look only at the corner points. (Whew)

So we say that $\max_{(x_1, x_2) \in D} (x_1+x_2) \leq 2$ and

$$f(0,0)=0 \\ f(1,0)=1 \\ f(1,1)=2 \\ f(0,1)=1$$

thus the maximum of the function $f$ is $2$ and is achieved for $(x_1, x_2)=(1,1)$, right?

Yep! (Happy)
 
I like Serena said:
Yep! (Happy)

Nice... Thank you! (Smile)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K