Message Boards Message Boards

0
|
5581 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Reucing / solving inequality

Posted 9 years ago

How can I reduce following inequalities in mathematica:

x1 ? 2 , x2 ? 1, x3 ? 2, x1 + x2 ? 4, x1 + x3 ? 7, x2 + x3 ? 10

And x1 + x2 + x3 = 14

I reduce and get: 2 ? x1 ? 4, 1 ? x2 ? 7, 2?x3 ?10, x1+x2 + x3 = 14. This is the result I want, but I can't find the right code in mathematica.

POSTED BY: Ko Ba
2 Replies
Posted 9 years ago

Just Reduce it!

In[151]:= Reduce[{x1 >= 2, x2 >= 1, x3 >= 2, x1 + x2 >= 4, 
  x1 + x3 >= 7, x2 + x3 >= 10, x1 + x2 + x3 == 14}, {x1, x2, x3}]

Out[151]= ((2 <= x1 <= 3 && 4 - x1 <= x2 <= 7) || (3 < x1 <= 4 && 
     1 <= x2 <= 7)) && x3 == 14 - x1 - x2
POSTED BY: Erik Mahieu

With Mathematica, the commands are named for the operation they perform with a capitalized first letter. Therefore if for example you have the mathematical feeling that you should probably solve, reduce, integrate or whatnot, simply type that up in the documentation center and you will find the proper syntax. Have fun using Mathematica!

POSTED BY: Isaac Abraham
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract