Changeset 1742 for trunk


Ignore:
Timestamp:
Jun 12, 2011 1:27:34 PM (8 years ago)
Author:
forrest
Message:

setRowPrice setColSolution to pass tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/OsiClp/OsiClpSolverInterface.cpp

    r1729 r1742  
    30373037                      modelPtr_->solutionRegion(1));
    30383038  }
     3039  // compute row activity
     3040  memset(modelPtr_->primalRowSolution(),0,modelPtr_->numberRows()*sizeof(double));
     3041  modelPtr_->times(1.0,modelPtr_->primalColumnSolution(),modelPtr_->primalRowSolution());
    30393042}
    30403043//-----------------------------------------------------------------------------
     
    30483051                      modelPtr_->djRegion(0));
    30493052  }
     3053  // compute reduced costs
     3054  memcpy(modelPtr_->dualColumnSolution(),modelPtr_->objective(),
     3055         modelPtr_->numberColumns()*sizeof(double));
     3056  modelPtr_->transposeTimes(-1.0,modelPtr_->dualRowSolution(),modelPtr_->dualColumnSolution());
    30503057}
    30513058
Note: See TracChangeset for help on using the changeset viewer.