summary.solveLP {linprog}R Documentation

summary.solveLP

Description

This function returns the results of the Linear Programming function.

Usage

   summary.solveLP(object,...)

Arguments

object an object of type solveLP.
... not used by user.

Value

summary.solveLP returns an object of type solveLP.

Author(s)

Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

See Also

solveLP, print.solveLP, readMps, writeMps

Examples


## example of Steinhauser, Langbehn and Peters (1992)
library( linprog )

## Production activities
cvec <- c(1800, 600, 600)  # gross margins
names(cvec) <- c("Milk","Bulls","Pigs")

## Constraints (quasi-fix factors)
bvec <- c(40, 90, 2500)  # endowment
names(bvec) <- c("Land","Stable","Labor")

## Needs of Production activities
Amat <- rbind( c(  0.7,   0.35,   0 ),
               c(  1.5,   1,      3 ),
               c( 50,    12.5,   20 ) )

## Maximize the gross margin
res <- solveLP( cvec, bvec, Amat, TRUE )

## print the results
summary.solveLP( res )

[Package Contents]