Example #1
0
        public void Test_CarSelection1()
        {
            IDecision tmp_project = TestFactory.CarSelectionProblem();

            System.Diagnostics.Debug.WriteLine(tmp_project.ToString());

            AhpSolver       tmp_solver     = new AhpSolver(tmp_project);
            IDecisionResult decisionResult = tmp_solver.Solve();

            Assert.IsNotNull(decisionResult, "success");
        }
Example #2
0
        public void Test_CarSelection2()
        {
            //http://en.wikipedia.org/wiki/Analytic_hierarchy_process_%E2%80%94_Car_example
            //https://rpubs.com/gluc/ahp

            IDecision tmp_project = TestFactory.ComplexCarSelectionProblem();

            System.Diagnostics.Debug.WriteLine(tmp_project.ToString());

            AhpSolver       tmp_solver     = new AhpSolver(tmp_project);
            IDecisionResult decisionResult = tmp_solver.Solve();

            Assert.IsNotNull(decisionResult, "success");
        }