Beispiel #1
0
        public static void SetOutput(this IncidenceMatrix IM, int variable, IncidenceMatrix IMf)
        {
            Cluster locs = IMf.Column(variable).FindLocations(OUT);

            if (locs.Count > 0)
            {
                int r = locs.First();
                IM[r, variable] = OUT;                 // Asign variable as output of the firs model that has it as a default output
            }
            IM.MultiplyColumn(variable, IN);
        }
Beispiel #2
0
 public static void SetInput(this IncidenceMatrix IM, int variable) => IM.MultiplyColumn(variable, IN);