The original problem defines an unbounded region; for visualization, we add the cube Q=[0,4]^3.
Next, we compute the vertices of the polyhedron bounded by the three planes and contained in the cube Q.
On the face z=0, the inequalities reduce to y\ge x/2, so we obtain the four vertices
(0,0,0), (0,4,0), (4,4,0), and (4,2,0).
On the face y=4, the intersections
z=x=(x+y)/3 and z=y-x/2=(x+y)/3
give the vertices (2,4,2) and (16/5,4,12/5).
Finally, on the edge x=y=4, we have
z\le \min(4-4/2, 4, (4+4)/3)=2,
which gives the vertex (4,4,2).
Thus the vertices are
(0,0,0), (0,4,0), (4,4,0), (4,2,0), (2,4,2), (16/5,4,12/5), and (4,4,2).
In this picture, the green and pink faces are not parts of the original three planes; they are faces of the auxiliary cube used to truncate the unbounded region. More precisely, the green face lies in the plane y=4, and the pink face lies in the plane x=4. The blue bottom face is also a face of the cube, namely z=0. By contrast, the three upper faces belong to the planes z=x, z=(x+y)/3, and z=y-x/2, which come from the original system of inequalities.
\documentclass[a4paper,12pt]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=12cm,
view={125}{45},
xmin=0, xmax=4,
ymin=0, ymax=4,
zmin=0, zmax=4,
xlabel={$x$},
ylabel={$y$},
zlabel={$z$},
axis lines=box,
grid=major,
ticks=both,
xticklabels={,0,1,2,3,},
zticklabels={,,2,4},
]
% Vertices of the polyhedron:
% A=(0,0,0)
% B=(0,4,0)
% C=(2,4,2)
% D=(3.2,4,2.4)
% E=(4,4,2)
% F=(4,4,0)
% G=(4,2,0)
% Base face z=0
\path[draw=blue!60!black, fill=blue!30, fill opacity=0.20]
(axis cs:0,0,0) --
(axis cs:0,4,0) --
(axis cs:4,4,0) --
(axis cs:4,2,0) -- cycle;
% Side face x=4
\path[draw=blue!60!black, fill=red!30, fill opacity=0.20]
(axis cs:4,2,0) --
(axis cs:4,4,0) --
(axis cs:4,4,2) -- cycle;
% Side face y=4
\path[draw=blue!60!black, fill=green!30, fill opacity=0.50]
(axis cs:0,4,0) --
(axis cs:2,4,2) --
(axis cs:3.2,4,2.4) --
(axis cs:4,4,2) --
(axis cs:4,4,0) -- cycle;
% Upper face in the plane z=x
\path[draw=blue!60!black, fill=blue!60, fill opacity=0.7]
(axis cs:0,0,0) --
(axis cs:0,4,0) --
(axis cs:2,4,2) -- cycle;
% Upper face in the plane z=(x+y)/3
\path[draw=blue!60!black, fill=yellow!50, fill opacity=0.35]
(axis cs:0,0,0) --
(axis cs:2,4,2) --
(axis cs:3.2,4,2.4) -- cycle;
% Upper face in the plane z=y-x/2
\path[draw=blue!60!black, fill=blue!40, fill opacity=0.35]
(axis cs:0,0,0) --
(axis cs:4,2,0) --
(axis cs:4,4,2) --
(axis cs:3.2,4,2.4) -- cycle;
% Highlight the upper edges
\addplot3[very thick, blue!70!black] coordinates {
(0,0,0)
(2,4,2)
(3.2,4,2.4)
(4,4,2)
};
\addplot3[very thick, blue!70!black] coordinates {
(0,0,0)
(4,2,0)
(4,4,2)
};
\end{axis}
\end{tikzpicture}
\end{document}
