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

Function highs_getBasicVariables

highspy/highs_bindings.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212std::tuple<HighsStatus, dense_array_t<HighsInt>> highs_getBasicVariables(
213 Highs* h) {
214 HighsInt num_row = h->getNumRow();
215
216 HighsStatus status = HighsStatus::kOk;
217 std::vector<HighsInt> basic_variables(num_row);
218 HighsInt* basic_variables_ptr =
219 static_cast<HighsInt*>(basic_variables.data());
220 if (num_row > 0) status = h->getBasicVariables(basic_variables_ptr);
221 return std::make_tuple(status, py::cast(basic_variables));
222}
223
224std::tuple<HighsStatus, dense_array_t<double>> highs_getBasisInverseRow(
225 Highs* h, HighsInt row) {

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
getNumRowMethod · 0.45
getBasicVariablesMethod · 0.45

Tested by

no test coverage detected