/// <summary> /// Given a matrix incm, given an intial completely populated real matrix incmreal /// changeval are those rows of incm where the models associated varaible are /// modified /// </summary> /// <param name="IMi"></param> /// <param name="IMf"></param> /// <returns></returns> private static List <int> FindReversedModels(IncidenceMatrix IMi, IncidenceMatrix IMf) { var reversedRows = new List <int>(); for (int model = 0; model < IMi.RowCount; model++) { if (IMi.IsModelReversed(model, IMf)) { reversedRows.Add(model); } } return(reversedRows); }