MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / highs_getReducedColumn

Function highs_getReducedColumn

highspy/highs_bindings.cpp:393–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393std::tuple<HighsStatus, dense_array_t<double>> highs_getReducedColumn(
394 Highs* h, HighsInt col) {
395 HighsInt num_row = h->getNumRow();
396
397 HighsStatus status = HighsStatus::kOk;
398 std::vector<double> solution_vector(num_row);
399 double* solution_vector_ptr = static_cast<double*>(solution_vector.data());
400
401 if (num_row > 0) status = h->getReducedColumn(col, solution_vector_ptr);
402 return std::make_tuple(status, py::cast(solution_vector));
403}
404
405std::tuple<HighsStatus, dense_array_t<double>, HighsInt,
406 dense_array_t<HighsInt>>

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
getNumRowMethod · 0.45
getReducedColumnMethod · 0.45

Tested by

no test coverage detected