/* See if any variables are already basic. A basic variable must only have
a nonzero coefficient on one row, and its product with the constant column
must not be negative. Only one variable can be basic for any given row. */
/* See if any variables are already basic. A basic variable must only have
a nonzero coefficient on one row, and its product with the constant column
must not be negative. Only one variable can be basic for any given row. */
- vector<float> basic_coeff(n_rows, 0.0f);
+ vector<float> obj_coeff(n_rows, 0.0f);
+ vector<float> row_coeff(n_rows, 1.0f);
const vector<float> &constants = columns.back().values;
for(vector<Column>::iterator i=columns.begin(); i!=columns.end(); ++i)
{
const vector<float> &constants = columns.back().values;
for(vector<Column>::iterator i=columns.begin(); i!=columns.end(); ++i)
{