public Expert(string name, int criterias, int alternatives)
 {
     ratedCriterias    = new double[0][];
     ratedAlternatives = new List <double[][]>();
     this.name         = name;
     this.criterias    = criterias;
     this.alternatives = alternatives;
     ratedCriterias    = new double[criterias][];
     for (int i = 0; i < criterias; i++)
     {
         ratedCriterias[i] = new double[criterias];
         for (int i2 = 0; i2 < criterias; i2++)
         {
             ratedCriterias[i][i2] = 1;
         }
         ratedAlternatives.Add(new double[alternatives][]);
         for (int i2 = 0; i2 < alternatives; i2++)
         {
             ratedAlternatives.Last()[i2] = new double[alternatives];
             for (int i3 = 0; i3 < alternatives; i3++)
             {
                 ratedAlternatives.Last()[i2][i3] = 1;
             }
         }
     }
     this.model = null;
 }
 public void CalculateResult()
 {
     for (int i = 0; i < criterias; i++)
     {
         ratedCriterias[i][i] = 1;
         for (int i2 = 0; i2 < alternatives; i2++)
         {
             ratedAlternatives[i][i2][i2] = 1;
         }
     }
     model = new AHPmodel(criterias, alternatives);
     model.AddCriteria(ratedCriterias);
     for (int i = 0; i < criterias; i++)
     {
         model.AddCriterionRatedChoices(i, ratedAlternatives[i]);
     }
     model.CalculateModel();
 }
 public Expert(Expert expert, string newName = "")
 {
     if (newName != "")
     {
         this.name = newName;
     }
     else
     {
         this.name = expert.name;
     }
     this.ratedCriterias    = expert.ratedCriterias;
     this.criterias         = expert.criterias;
     this.ratedAlternatives = new List <double[][]>();
     this.alternatives      = expert.alternatives;
     for (int i = 0; i < expert.ratedAlternatives.Count; i++)
     {
         ratedAlternatives.Add(expert.ratedAlternatives[i]);
     }
     this.model = null;
 }