Learn R Programming

gMOIP (version 1.5.3)

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

907

Version

1.5.3

License

GPL (>= 3.3.2)

Issues

Pull Requests

Stars

Forks

Maintainer

Lars Relund

Last Published

October 9th, 2024

Functions in gMOIP (1.5.3)

genSample

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

Save a point symbol as a temporary file.
dimFace

Return the dimension of the convex hull of a set of points.
gMOIP-package

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

Initialize the RGL window.
plotCones2D

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

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

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

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

Find segments (lines) of a face.
loadView

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

Merge two lists to one
plotNDSet2D

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

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

Plot a plane in 3D.
plotPolygon3D

Plot a polygon.
plotMTeX3D

Plot TeX in the margin
plotCriterion2D

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

Plot a rectangle defined by two corner points.
plotTeX3D

Plot TeX at a position.
plotHull2D

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

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

To size of the png file.
plotTitleTeX3D

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

Convert LaTeX to a png file
plotLines2D

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

Plot points in 3D.
plotPolytope3D

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

Plot the polytope (bounded convex set) of a linear mathematical program
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.
addRays

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

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

Add 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
convexHull

Find the convex hull of a set of points.
cornerPoints

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

Binary (0-1) points in the feasible region (Ax<=b).
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.
classifyNDSet

Classify a set of nondominated points
addNDSet2D

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

Estimate 1 em in pixels in the resulting png.
.mToDirection

Convert min/max to direction (1/-1)
finalize3D

Finalize the RGL window.
gMOIPTheme

The ggplot theme for the package
genNDSet

Generate a sample of nondominated points.
.getRanges

Get ranges of the bounding box margins
.checkPts

Check if point input is okay
df2String

Convert each row to a string.