Esempio n. 1
0
 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);
             }
         }
     }
 }