public void LoadMosekParams(mosek.Task task) { foreach (KeyValuePair <mosek.iparam, int> p in iparam) { task.putintparam(p.Key, p.Value); } foreach (KeyValuePair <mosek.dparam, double> p in dparam) { task.putdouparam(p.Key, p.Value); } foreach (KeyValuePair <mosek.sparam, string> p in sparam) { task.putstrparam(p.Key, p.Value); } }