Learn R Programming

gMOIP (version 1.5.5)

Tools for 2D and 3D Plots of Single and Multi-Objective Linear/Integer Programming Models

Description

Make 2D and 3D plots of linear programming (LP), integer linear programming (ILP), or mixed integer linear programming (MILP) models with up to three objectives. Plots of both the solution and criterion space are possible. For instance the non-dominated (Pareto) set for bi-objective LP/ILP/MILP programming models (see vignettes for an overview). The package also contains an function for checking if a point is inside the convex hull.

Copy Link

Version

Install

install.packages('gMOIP')

Monthly Downloads

721

Version

1.5.5

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Lars Relund

Last Published

June 25th, 2025

Functions in gMOIP (1.5.5)

integerPoints

Integer points in the feasible region (Ax<=b).
gMOIPTheme

The ggplot theme for the package
mergeLists

Merge two lists to one
loadView

Help function to load the view angle for the RGL 3D plot from a file or matrix
plotPolygon3D

Plot a polygon.
plotCones2D

Plot a cone defined by a point in 2D.
plotLines2D

Plot the lines of a linear mathematical program (Ax = b)
plotPolytope

Plot the polytope (bounded convex set) of a linear mathematical program (Ax <= b)
plotHull3D

Plot the convex hull of a set of points in 3D.
plotCones3D

Plot a cone defined by a point in 3D.
plotPoints3D

Plot points in 3D.
hullSegment

Find segments (lines) of a face.
inHull

Efficient test for points inside a convex hull in p dimensions.
plotPlane3D

Plot a plane in 3D.
plotPolytope2D

Plot the polytope (bounded convex set) of a linear mathematical program
plotPolytope3D

Plot the polytope (bounded convex set) of a linear mathematical program
texToPng

Convert LaTeX to a png file
plotMTeX3D

Plot TeX in the margin
plotNDSet2D

Create a plot of a discrete non-dominated set.
getTexture

Save a point symbol as a temporary file.
plotCriterion2D

Create a plot of the criterion space of a bi-objective problem
plotHull2D

Plot the convex hull of a set of points in 2D.
genSample

Generate a sample of points in dimension $p$.
genNDSet

Generate a sample of nondominated points.
saveView

Help function to save the view angle for the RGL 3D plot
slices

Find all corner points in the slices define for each fixed integer combination.
plotRectangle3D

Plot a rectangle defined by two corner points.
plotTeX3D

Plot TeX at a position.
plotTitleTeX3D

Draw boxes, axes and other text outside the data using TeX strings.
pngSize

To size of the png file.
convexHull

Find the convex hull of a set of points.
addNDSet

Add discrete points to a non-dominated set and classify them into extreme supported, non-extreme supported, non-supported.
addRays

Add all points on the bounding box hit by the rays.
classifyNDSet

Classify a set of nondominated points
cornerPointsCont

Calculate the corner points for the polytope Ax<=b assuming all variables are continuous.
cornerPoints

Calculate the corner points for the polytope Ax<=b.
binaryPoints

Binary (0-1) points in the feasible region (Ax<=b).
addNDSet2D

Add 2D discrete points to a non-dominated set and classify them into extreme supported, non-extreme supported, non-supported.
classifyNDSetExtreme

Find extreme points of a nondominated set of points
criterionPoints

Calculate the criterion points of a set of points and ranges to find the set of non-dominated points (Pareto points) and classify them into extreme supported, non-extreme supported, non-supported.
df2String

Convert each row to a string.
finalize3D

Finalize the RGL window.
.getRanges

Get ranges of the bounding box margins
.checkPts

Check if point input is okay
.mToDirection

Convert min/max to direction (1/-1)
gMOIP-package

gMOIP: Tools for 2D and 3D Plots of Single and Multi-Objective Linear/Integer Programming Models
dimFace

Return the dimension of the convex hull of a set of points.
ini3D

Initialize the RGL window.
.sizeM

Estimate 1 em in pixels in the resulting png.