# Thread: Linear Programing - Negative Numbers Help

1. ## Linear Programing - Negative Numbers Help

Hi,

I have a question about what to do with a constraint that is negative.

A: -3x1 + x2 = 90

So I get x1= -30, and x2 = 90.

I have a feeling this isn't right since linear models should not have negative numbers.

Can anyone help me out?

2. Originally Posted by guthrie23
Hi,

I have a question about what to do with a constraint that is negative.

A: -3x1 + x2 = 90

So I get x1= -30, and x2 = 90.

I have a feeling this isn't right since linear models should not have negative numbers.

Can anyone help me out?
Could you post the whole question? If we can see the problem in its entirety, we may be able to assist you more since there are methods that help us deal with LP problems that have "negative" constraits (methods like the Dual-Simplex method).

3. Constraint A: -3X1 + X2 =< 90
Constraint B: 4X1 - 2X2 >= 120
Constraint C: X1 + 2X2 =< 150
All variables are required to be non-negative. Let the objective function be Min: 2X1 - 3X2. What are the corner points of feasible solution region?

4. X1 = 54, x2 = 48 : 2x1 - 3x2 = -36

5. Originally Posted by guthrie23
Constraint A: -3X1 + X2 =< 90
Constraint B: 4X1 - 2X2 >= 120
Constraint C: X1 + 2X2 =< 150
All variables are required to be non-negative. Let the objective function be Min: 2X1 - 3X2. What are the corner points of feasible solution region?
Rewrite the constraints:

x_2 <= 90 + 3 x_1

x_2 <= -60 + 2 x_1

x_2 <= 75 - x_1/2

x_1 >=0, x_2>=0

Plot these constraints and the vertices of the feasible region will be obvious.

CB

6. Wilmer, How did you get those answers?

7. Loopy-de-loop program; a bit like:

Loop X1, X2
If -3*X1 + X2 > 90
or 4*X1 - 2*X2 < 120
or X1 + 2*X2 > 150
then get out of here, else
M = 2*X1 - 3*X2
Store M if lower than last M

8. Originally Posted by guthrie23
Wilmer, How did you get those answers?
You will note that Wilmer's post does not answer the question you posted.

CB
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/business-math/164302-linear-programing-negative-numbers-help.html", "fetch_time": 1524527738000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-17/segments/1524125946256.50/warc/CC-MAIN-20180423223408-20180424003408-00220.warc.gz", "warc_record_offset": 214509593, "warc_record_length": 10872, "token_count": 634, "char_count": 1982, "score": 3.953125, "int_score": 4, "crawl": "CC-MAIN-2018-17", "snapshot_type": "latest", "language": "en", "language_score": 0.8919471502304077, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00002-of-00064.parquet"}