0
$\begingroup$

I want to visualize the bounded region for a linear programming problem. I used the folowwing, however it gives me an error :

RegionPlot3D[
  2 x1 + x2 + x3 + 2 x4 >= 12000 && 
  3 x1 + 4 x2 + x3 + x4 >= 35000 && 
  50 x1 + 20 x2 + 12 x3 + 30 x4 >= 205000 &&
  x1 >= 0 && x2 >= 0 && x3 >= 0, 
  {x1, 0, 25}, {x2, 0, 15}, {x3, 0, 3}, 
  Mesh -> All, PlotPoints -> 25, AxesLabel -> Automatic]

I get the error message:

RegionPlot3D::boolf: 2 x1+x2+x3+2 x4>=12000&&3 x1+4 x2+x3+x4>=35000&&50 x1+20 x2+12 x3+30 x4>=205000&&x1>=0&&x2>=0&&x3>=0 must be a Boolean function.

How can I fix this?

$\endgroup$
  • 2
    $\begingroup$ What is the value of x4? $\endgroup$ – John Doty Aug 21 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.