Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \begin{figure}
- \centering
- \begin{tikzpicture}
- \draw[gray!50, thin, step=0.5] (-1,-1) grid (7.5,7.5);
- \draw[very thick,->] (-1,0) -- (7.5,0) node[right] {$x_1$};
- \draw[very thick,->] (0,-1) -- (0,7.5) node[above] {$x_2$};
- \draw (0,0.2) -- (0,-0.2) node[below,right] {0};
- \draw (3.5,0.2) -- (3.5,-0.2) node[below] {0.5};
- \draw (7,0.2) -- (7,-0.2) node[below,left] {1};
- \draw (0.2,3.5) -- (-0.2,3.5) node[left] {0.5};
- \draw (0.2,7) -- (-0.2,7) node[left] {1};
- \fill[blue!50!cyan,opacity=0.5] (0,0) -- (7,3.5) -- (7,7) -- (0,3.5) -- cycle;
- \fill[gray!50!cyan,opacity=0.2] (0,0) -- (3.5,0) -- (7,3.5) -- cycle;
- \fill[gray!50!cyan,opacity=0.2] (7,7) -- (3.5,7) -- (0,3.5) -- cycle;
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (0,0) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (7,0) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (7,7) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (0,7) {};
- \draw (-1,-0.5) -- (7.5,3.75);
- \draw (7,-1) -- (7,7.5);
- \draw (7.5,7.25) -- (-1,3);
- \draw (0,0) -- (0,3.5);
- %\draw (1,-3) -- (3,1) -- node[below left,sloped] {\tiny$2x_1-x_2\leq5$} (4.5,4);
- %\draw (-1,1) -- node[above,sloped] {\tiny$-x_1+2x_2\leq3$} (5,4);
- \end{tikzpicture}
- \caption{$BCC_1(K)$}
- \label{fig:my_label}
- \end{figure}
- \begin{figure}
- \centering
- \begin{tikzpicture}
- \draw[gray!50, thin, step=0.5] (-1,-1) grid (7.5,7.5);
- \draw[very thick,->] (-1,0) -- (7.5,0) node[right] {$x_1$};
- \draw[very thick,->] (0,-1) -- (0,7.5) node[above] {$x_2$};
- \draw (0,0.2) -- (0,-0.2) node[below,right] {0};
- \draw (3.5,0.2) -- (3.5,-0.2) node[below] {0.5};
- \draw (7,0.2) -- (7,-0.2) node[below,left] {1};
- \draw (0.2,3.5) -- (-0.2,3.5) node[left] {0.5};
- \draw (0.2,7) -- (-0.2,7) node[left] {1};
- \fill[blue!50!cyan,opacity=0.5] (0,0) -- (2.333333,4.666666) -- (7,7) -- (4.666666,2.333333) -- cycle;
- \fill[gray!50!cyan,opacity=0.2] (0,0) -- (3.5,0) -- (7,3.5) -- (7,7) -- (4.666666,2.333333) -- cycle;
- \fill[gray!50!cyan,opacity=0.2] (7,7) -- (3.5,7) -- (0,3.5) -- (0,0) -- (2.333333,4.666666) -- cycle;
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (0,0) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (7,0) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (7,7) {};
- \node[draw,circle,fill=black,minimum size=0.2cm,inner sep=0] at (0,7) {};
- \draw (-1,-0.5) -- (7.5,3.75);
- \draw (7,-1) -- (7,7.5);
- \draw (7.5,7.25) -- (-1,3);
- \draw (-0.5,-1) -- (3.75,7.5);
- \draw (3,-1) -- (7.25,7.5);
- %\draw (1,-3) -- (3,1) -- node[below left,sloped] {\tiny$2x_1-x_2\leq5$} (4.5,4);
- %\draw (-1,1) -- node[above,sloped] {\tiny$-x_1+2x_2\leq3$} (5,4);
- \end{tikzpicture}
- \caption{$LS(K)$}
- \label{fig:my_label2}
- \end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement