Public Member Functions | Public Attributes

StatusReport Class Reference

Encapsulates the solution to a lp_problem. More...

List of all members.

Public Member Functions

bool status () const
 Check return status: true == success, false == failure.
void display (const char *msg=NULL) const
 Display a status report using printf.
 StatusReport (const StatusReport &right)

Public Attributes

ml_matrix x
 Solution vector.
double fVal
 Final cost value achieved.
ml_matrix xConSlack
 Slack variables for ...
ml_matrix xVarSlack
 Slack variables for ...
ml_matrix xRelSlack
 Slack variables for ...
const char * err
 Error message.

Detailed Description

If an optimal solution is found, err is NULL. Otherwise it provides a textural failure cause. Only if err is null are the solution vector, final value, and slack variables valid. The "display()" method provides a quick means to view the complete output.

Stores outputs from lp_problem.


Member Function Documentation

void StatusReport::display ( const char *  msg = NULL ) const [inline]
Parameters:
msgAdditional message to display

References err, fVal, x, xConSlack, xRelSlack, and xVarSlack.