|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.samples.mathprog.lp.matrixrounding.MatrixRoundingMain
public class MatrixRoundingMain
Constructor Summary | |
---|---|
MatrixRoundingMain()
|
Method Summary | |
---|---|
LPSolver |
getLpSolver()
|
double[][] |
getResult()
Returns the rounded matrix. |
static void |
main(String[] args)
|
void |
roundMatrix(double[][] doubleArr)
Round a given matrix such that the row sums and column sums are also rounded to one of the two nearest integers, i.e., row sum 12.6 may only become 12 or 13 but not 14. |
void |
roundMatrix(InputStream is)
Round a matrix that is read from an InputStream. |
void |
roundMatrix(Readable dataSource)
Round a matrix that is read from a Readable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixRoundingMain()
Method Detail |
---|
public static void main(String[] args)
args
- public void roundMatrix(InputStream is)
is
- public void roundMatrix(Readable dataSource)
dataSource
- public void roundMatrix(double[][] doubleArr)
doubleArr
- the matrix to be roundedpublic double[][] getResult()
public final LPSolver getLpSolver()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |