function MargulesFun input Integer nS = 3; input Integer k; input Modelica.Units.SI.MoleFraction x[nS]; input Real A[nS, nS]; output Real Margules = 0; end MargulesFun;