Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9783
| From | Marcela Villa Marulanda <mavima10@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | About linear programming |
| Date | 2012-04-25 04:35 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jn7uvb$6dg$1@smc.vnet.net> (permalink) |
Hi,
I attempt to solve these linear programming problems in Mathematica,
but its result is "Maximize::natt: The maximum is not attained at any
point satisfying the given constraints", why? I've solved this problem
in other applications and the solution is achieved.
I don't know the reasons about it. I'll thank to whom give me some
clues!
Problem 1
Maximize[{5 Subscript[x, 1] + 4 Subscript[x, 2] + 3 Subscript[x, 3],
Subscript[x, 1] + Subscript[x, 3] <= 15 &&
Subscript[x, 2] + 2 Subscript[x, 3] <= 25}, {Subscript[x, 1],
Subscript[x, 2], Subscript[x, 3]}];
Problem 2
Maximize[{30 Subscript[x, 1] + 40 Subscript[x, 2] +
20 Subscript[x, 3] + 10 Subscript[x, 4] - 15 Subscript[x, 5] -
20 Subscript[x, 6] - 10 Subscript[x, 7] - 8 Subscript[x, 8],
0.3 Subscript[x, 1] + 0.3 Subscript[x, 2] + 0.25 Subscript[x, 3] +
0.15 Subscript[x, 4] <= 1000 &&
0.25 Subscript[x, 1] + 0.35 Subscript[x, 2] +
0.3 Subscript[x, 3] + 0.1 Subscript[x, 4] <= 1000 &&
0.45 Subscript[x, 1] + 0.5 Subscript[x, 2] + 0.4 Subscript[x, 3] +
0.22 Subscript[x, 4] <= 1000 &&
0.15 Subscript[x, 1] + 0.15 Subscript[x, 2] +
0.1 Subscript[x, 3] + 0.05 Subscript[x, 4] <= 1000 &&
Subscript[x, 1] + Subscript[x, 5] == 800 &&
Subscript[x, 2] + Subscript[x, 6] == 750 &&
Subscript[x, 3] + Subscript[x, 7] == 600 &&
Subscript[x, 4] + Subscript[x, 8] == 500}, {Subscript[x, 1],
Subscript[x, 2], Subscript[x, 3], Subscript[x, 4], Subscript[x, 5],
Subscript[x, 6], Subscript[x, 7], Subscript[x, 8]}]
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
About linear programming Marcela Villa Marulanda <mavima10@gmail.com> - 2012-04-25 04:35 +0000 Re: About linear programming danl@wolfram.com - 2012-04-26 09:29 +0000
csiph-web