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

Function highs_getReducedRow

highspy/highs_bindings.cpp:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361std::tuple<HighsStatus, dense_array_t<double>> highs_getReducedRow(
362 Highs* h, HighsInt row) {
363 HighsInt num_col = h->getNumCol();
364 HighsInt num_row = h->getNumRow();
365
366 HighsStatus status = HighsStatus::kOk;
367 std::vector<double> solution_vector(num_col);
368 double* solution_vector_ptr = static_cast<double*>(solution_vector.data());
369
370 if (num_row > 0) status = h->getReducedRow(row, solution_vector_ptr);
371 return std::make_tuple(status, py::cast(solution_vector));
372}
373
374std::tuple<HighsStatus, dense_array_t<double>, HighsInt,
375 dense_array_t<HighsInt>>

Callers

nothing calls this directly

Calls 4

dataMethod · 0.80
getNumColMethod · 0.45
getNumRowMethod · 0.45
getReducedRowMethod · 0.45

Tested by

no test coverage detected