# NOT RUN {
## example of Steinhauser, Langbehn and Peters (1992)
## Production activities
cvec <- c(1800, 600, 600) # gross margins
names(cvec) <- c("Cows","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 ) )
## Write to MPS file
writeMps( "steinh.mps", cvec, bvec, Amat, "Steinhauser" )
## remove the MPS file
file.remove( "steinh.mps" )
# }
Run the code above in your browser using DataLab