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

Function Highs_changeColsIntegralityByMask

highs/interfaces/highs_c_api.cpp:875–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875HighsInt Highs_changeColsIntegralityByMask(void* highs, const HighsInt* mask,
876 const HighsInt* integrality) {
877 const HighsInt num__col = Highs_getNumCol(highs);
878 vector<HighsVarType> pass_integrality;
879 if (num__col > 0) {
880 pass_integrality.resize(num__col);
881 for (HighsInt iCol = 0; iCol < num__col; iCol++) {
882 pass_integrality[iCol] = (HighsVarType)integrality[iCol];
883 }
884 }
885 return (HighsInt)((Highs*)highs)
886 ->changeColsIntegrality(mask, pass_integrality.data());
887}
888
889HighsInt Highs_clearIntegrality(void* highs) {
890 return (HighsInt)((Highs*)highs)->clearIntegrality();

Callers

nothing calls this directly

Calls 4

Highs_getNumColFunction · 0.85
changeColsIntegralityMethod · 0.80
dataMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected