Learn R Programming

lpSolve (version 5.6.21)

print.lp: Print an lp object

Description

Print method for lp objects

Usage

# S3 method for lp
print (x, ...)

Value

None

Arguments

x

List with items named objval and status. Normally this will have been called by lp, lp.assign, or lp.transport.

...

Other arguments, all currently ignored

Author

Sam Buttrey, buttrey@nps.edu

Details

This function prints the objective function value, together with the word "Success" if the operation is successful, or an indication of the error if not. If multiple solutions have been produced (because this was an all-binary problem and lp was called with num.bin.solns > 1) the number of solutions is also displayed.

See Also

lp, lp.assign, lp.transport