#import Pkg; Pkg.add("LazySets")
#import Pkg; Pkg.add("Combinatorics")
# we need this for a convex hull routine
include("plotregion.jl")
WARNING: replacing module PlotRegion.
Main.PlotRegion
using LinearAlgebra
A1 = [-2.0 1;
-1 2;
1 0]
b = [2.0; 7; 3]
# the input to plotregion is the matrix A
# for an LP in standard form.
# it will show the feasible polytope for
# the first two dimensions.
A = [A1 Matrix(1.0I,3,3)] # form the problem with slacks.
PlotRegion.plotregion(A,b)
using LinearAlgebra
A1 = [-2.0 1;
-1 2;
1 0]
b = [2.0; -1; 3]
# the input to plotregion is the matrix A
# for an LP in standard form.
# it will show the feasible polytope for
# the first two dimensions.
A = [A1 Matrix(1.0I,3,3)] # form the problem with slacks.
PlotRegion.plotregion(A,b)
using LinearAlgebra
A1 = [-2.0 1;
-1 1;
1 0]
b = [2.0; 7; 7]
# the input to plotregion is the matrix A
# for an LP in standard form.
# it will show the feasible polytope for
# the first two dimensions.
A = [A1 Matrix(1.0I,3,3)] # form the problem with slacks.
p = PlotRegion.plotregion(A,b)
PlotRegion.plot!(aspect_ratio=:equal)