protected virtual void SetIntergerStatus(mosek.Task task, IEnumerable <int> indices) { foreach (int vid in indices) { if (GetIntegrality(vid)) { if (IsRow(vid)) { throw new MosekMsfUnsupportedFeatureException("Integrality constraints on rows."); } else { task.putvartype(varMap[vid], mosek.variabletype.type_int); } } } }