[Clp] How to provide an initial feasible x?
alexander
alexander at lunar-orbit.de
Fri Sep 11 09:41:44 EDT 2015
Hi,
I'm solving the following kind of problem:
min c^T x
s.t. Ax = b
x >= 0
And I can provide an initial x which fulfills Ax=b, but I don't know how
to hand it to the solver.
Currently I'm doing this:
// Create the simplex solver and load the problem.
ClpSimplex m;
m.setLogLevel(0);
m.loadProblem(cols + 2*rows, rows, start.data(), indices.data(),
values.data(), collb.data(), NULL, obj_c.data(), b.memptr(), b.memptr(),
NULL);
m.dual();
How can I provide the solver with the initial feasible x?
Best Regards,
Alexander
More information about the Clp
mailing list