What is the objective function in optimization?

  • Context: Undergrad 
  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Mean Symbol
Click For Summary

Discussion Overview

The discussion revolves around the concept of the objective function in optimization, particularly in the context of linear programming (LP) and the representation of unrestricted variables. Participants explore the implications of using dual variables and the mathematical representation of these variables.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants inquire about the meaning of the notation y_i = y_i^+ - y_i^- and the implications of the plus and minus signs in this context.
  • One participant suggests that the notation is merely a way to distinguish between two sets of dual variables associated with different constraints.
  • Another participant mentions that their professor indicated the notation represents absolute values, which raises questions about the validity of subtraction in this context.
  • There is a discussion about the common usage of x^+ and x^- to represent nonnegative and nonpositive parts of a variable, respectively.
  • Some participants express confusion regarding the conditions under which x^+ and x^- can be equal to x, particularly when x is negative.
  • One participant argues that the relationship y = y^+ - y^- does not imply that y can only be positive, emphasizing that y can be negative depending on the values of y^+ and y^-.
  • Another participant highlights the importance of understanding the inclusion of unrestricted decision variables in linear programming and the assumptions that both y^+ and y^- are nonnegative.
  • There is a mention of the objective function's goal in maximizing the value within the constraint set, which some participants connect to the broader discussion of linear optimization problems.

Areas of Agreement / Disagreement

Participants express differing views on the interpretation of the notation and the implications for the objective function. There is no consensus on the meaning of the plus and minus signs or the conditions under which the variables can take on certain values.

Contextual Notes

Participants note that the discussion is influenced by the specific context of linear programming and the assumptions made about the variables involved. The mathematical steps and definitions are not fully resolved, leading to ongoing debate.

flyingpig
Messages
2,574
Reaction score
1
http://web.mit.edu/15.053/www/AMP-Chapter-04.pdf

Go to page 8/45

Where it tackles on the case of y being an unrestricted variable. They have the following

y_i = y_i^+ - y_i^-

WHat do the plus and minus thing mean? It says they are both positive in page 9/45.

Thank you
 
Last edited by a moderator:
Mathematics news on Phys.org
I don't think it means anything other than as a way to distinguish two sets with m variables, all using essentially the same name.

IOW, y1+, y2+, ..., ym+ are the dual variables associated with the first m constraints, while y1-, y2-, ..., ym- are the dual variables associated with the second m constraints.
 
My prof said something about representing their absolute values, but it doesn't make sense to have subtraction
 
A common usage is

x^+ = \begin{cases}<br /> x &amp;\text{if } x \ge 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}

x^- = \begin{cases}<br /> -x &amp;\text{if } x \le 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}
 
So if x => 0, then x^+ is x and x^-1 = 0

So x^+ - 0 = x^+

If x <=0, then x^- = -x and x^+ = 0

0 - (-x) = x, but x<=0, so that doesn't work
 
Flyingpig,

I don't understand what you mean by "doesn't work".

x = x^+ - x^-

in all cases. You just showed that.
 
No but x can't be negative. I just showed in

0 - (-x) = x, but x <=0,
 
It depends on the context. For the LP, especially if you are using Simplex or another method that requires the decision variables to be positive, it is a way of allowing a variable that can also be negative.

\sum_{i}^{m} b_{i} y_{i} = \sum_{i}^{m} b_{i} y^{+}_{i} - \sum_{i}^{m} b_{i} y^{-}_{i}

So now y_{i} is unrestricted.
 
Why can't you do addition?
 
  • #10
flyingpig said:
Why can't you do addition?

You have y_{i} by the algorithm is required that y_{i} \geq 0 \forall i, but for your problem y_{i} is unrestricted, so you can write that as the difference of two other variables that are nonpositive.
 
  • #11
awkward said:
x^+ = \begin{cases}<br /> x &amp;\text{if } x \ge 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}

x^- = \begin{cases}<br /> -x &amp;\text{if } x \le 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}

But this inequality says otherwise and I showed it that y can be negative

flyingpig said:
So if x => 0, then x^+ is x and x^-1 = 0

So x^+ - 0 = x^+

If x <=0, then x^- = -x and x^+ = 0

0 - (-x) = x, but x<=0, so that doesn't work
 
  • #12
flyingpig said:
But this inequality says otherwise and I showed it that y can be negative

This is not right, you are simply replacing a decision variable with 2 other decision variables where the relation is y = y^{+} - y^{-}.

There is no relation that when y &gt; 0 \rightarrow y^{+} = y That is wrong. Y is unrestricted and will take a positive sign only when y^{+} &gt; y^{-} and negative only when y^{+} &lt; y^{-}. Also, y^{+} \geq 0 and y^{-} \geq 0 by the assumptions of the problem.

Awkward wrote another convention for the + that is unrelated to your LP problem. I am surprised you did not notice this?. Another convention for + is (t -a)^{+} = Max(t-a,0).
 
  • #13
flyingpig said:
No but x can't be negative. I just showed in

0 - (-x) = x, but x <=0,

Yes, you showed x^+ - x^- is equal to x when x is positive or zero, and it's equal to x when x is negative. So it's equal to x in all cases.

That's the point.
 
  • #14
awkward said:
Yes, you showed x^+ - x^- is equal to x when x is positive or zero, and it's equal to x when x is negative. So it's equal to x in all cases.

That's the point.

But what a Standard Form LOP, we want x > 0
 
  • #15
awkward said:
A common usage is

x^+ = \begin{cases}<br /> x &amp;\text{if } x \ge 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}

x^- = \begin{cases}<br /> -x &amp;\text{if } x \le 0\\<br /> 0 &amp;\text{otherwise}<br /> \end{cases}

Oh wait...

If x happens to even contradict one of these conditons

x = x^+
x = x^-

Because the other one becomes 0! But that still doesn't explain the preference for subtraction over addition.

Here take this one for instance

Max

z = 5x_1 + 4x_2 + 3x_3

s.t
3x_1 + 3x_2 + x_3 \leq 5
4x_1 + 6x_2 + 3x_3 \geq 2
x_1 + 2x_3 = 4

x_1, x_2, \geq 0

So for that annoying x_3 constraints I get (by putting this in Standard Form)

3x_1 + 3x_2 + (x_3 ^+ + x_3^-) \leq 5
-4x_1 - 6x_2 - 3(x_3 ^+ + x_3^-) \leq -2
x_1 + 2(x_3 ^+ + x_3^-) \leq -4
-x_1 - 2(x_3^+ + x_3^-) \geq 4
x_3 = x_3 ^+ - x_3 ^-
 
  • #16
flyingpig, do you even read what I've said?

Go back to your book and read about the inclusion of unrestricted decision variables in a linear program, and also re-read Simplex then come back for questions again. You've not grasped anything I've said.

What part of this you don't understand? BOTH ARE NONNEGATIVE by the assumption in the LP!.

Y is unrestricted and will take a positive sign only when y^{+} &gt; y^{-} and negative only when y^{+} &lt; y^{-}. Also, y^{+} \geq 0 and y^{-} \geq 0 by the assumptions of the problem.
 
Last edited:
  • #17
Pyrrhus said:
flyingpig, do you even read what I've said?

Go back to your book and read about the inclusion of unrestricted decision variables in a linear program, and also re-read Simplex then come back for questions again. You've not grasped anything I've said.

Our book doesn't talk about special examples and yes I have read everyone else is saying, but it may not have gotten through my head. I am sorry, I am slow.

What part of this you don't understand? BOTH ARE NONNEGATIVE by the assumption in the LP!.

Pyrrhus said:
Y is unrestricted and will take a positive sign only when y^{+} &gt; y^{-} and negative only when y^{+} &lt; y^{-}. Also, y^{+} \geq 0 and y^{-} \geq 0 by the assumptions of the problem.

Exactly, y can be negative. In the case of y^+ &lt; y^-, this is not the goal of maxing LOP (most of the time).
 
  • #18
LOP? you mean the objective function? The goal of Max the objective function is to obtain the highest value within the constraint set.
 

Similar threads

Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
7
Views
1K