void CplexSolver::chgObj(IntVector const & indexe, DoubleVector const & values) { CPXchgobj(_env, _prob, (int) indexe.size(), indexe.data(), values.data()); }
void CplexSolver::dual(DoubleVector & result) const { result.assign(nrows(), 0); CPXgetpi(_env, _prob, result.data(), 0, nrows() - 1); }
void CplexSolver::rc(DoubleVector & result)const{ result.resize(ncols()); CPXgetdj(_env, _prob, result.data(), 0, ncols() - 1); }
void CplexSolver::solution(int i, DoubleVector & x) const { x.resize(ncols()); CPXgetsolnpoolx(_env, _prob, (int) i, x.data(), 0, (int) (x.size() - 1)); }