solveGP {goalp}R Documentation

Solves a weighted Linear Goal Programming problem

Description

Does not perform any check. It receives set of matrices and vectors describing the original problem, and expands them adding the corresponding deviations. It omits deviations with weight equal to NA.

Usage

solveGP(A, b, w, varType, silent = FALSE)

Arguments

A

Numeric matrix of coefficients of the goals (left-hand-side).

b

Numerical vector. Right hand-side of the goals.

w

Numerical matrix of the weights of the constrains. As many rows as goals, and two columns (positive and negative deviations).

varType

Character vector. Type of each variable ("i", "c" or "b" for integer, continuous or binary, respectively). Must have as many elements as columns in A.

silent

Logical. TRUE to prevent the function writing anything to the console (or the default output). Default is FALSE.

Value

An lp object, generated by the lpSolve package, which in turn calls the lp_solve C package.


[Package goalp version 0.3.1 Index]