public class NaiveRule extends Object implements SimplexPivoting
SimplexPivoting.Pivot
Constructor and Description |
---|
NaiveRule() |
Modifier and Type | Method and Description |
---|---|
SimplexPivoting.Pivot |
getPivot(SimplexTable table)
Get the next pivot.
|
int |
pricing(SimplexTable table)
This is pivot column selection (pricing) rule.
|
int |
ratioTest(SimplexTable table,
int s)
This is pivot row selection (Ratio test) rule.
|
public int pricing(SimplexTable table)
pricing
in interface SimplexPivoting
table
- a simplex tablepublic int ratioTest(SimplexTable table, int s)
ratioTest
in interface SimplexPivoting
table
- a simplex tables
- a columnpublic SimplexPivoting.Pivot getPivot(SimplexTable table) throws LPUnbounded
SimplexPivoting
getPivot
in interface SimplexPivoting
table
- a simplex tablenull
if the table
already optimalLPUnbounded
- if the table is unboundedCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.