Message Boards Message Boards

0
|
2549 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Verifying that a point is satisfied by inequalities

Posted 9 years ago

Given a list of inequalities, I would like to check to see if a point is satisfied by said list of inequalities.

Example:
{x >= 0, y >= 0, z >= 0, 2 x >= y, 2 z >= y, 2 x + y <= 4, 2 z + y <= 4};
Check {x,y,z}./{2,4,0}. Which would return False.
Check {x,y,z}./{0,0,0}. Which woudl return True.

Is this possible?

POSTED BY: Conor Nelson

ineq = {x >= 0, y >= 0, z >= 0, 2 x >= y, 2 z >= y, 2 x + y <= 4, 2 z + y <= 4}; And @@ (ineq /. Thread[{x, y, z} -> {2, 4, 0}]) And @@ (ineq /. Thread[{x, y, z} -> {0, 0, 0}])

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