Examples of analyseSensitivity()


Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        sf1.setWeight(sf1Weight);
        sf2.setWeight(sf2Weight);
        sf3.setWeight(sf3Weight);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));

        assert(!resultRoot.isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        }
        l1.setWeight(0.1);
        l2.setWeight(0.1);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        }
        l1.setWeight(0.3);
        l2.setWeight(0.3);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!resultRoot.isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        }
        l1.setWeight(0.06);
        l2.setWeight(0.06);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        l2.setWeight(0.164);
       
       
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!resultRoot.isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

        l2.setWeight(0.156);
       
       
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(resultRoot.isSensitive());
    }
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

    public void testUnstableWeights() {
        leaf11.setWeight(0.55);
        leaf12.setWeight(0.45);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(getResult(resultRoot, child1).isSensitive());
        assert(resultRoot.isAnyChildSensitive());
        assert(resultRoot.isSensitive(true));
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

    public void testYetUnstableWeights() {
        leaf11.setWeight(0.59);
        leaf12.setWeight(0.41);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        //assert(resultRoot.isSensitive());
        assert(getResult(resultRoot, child1).isSensitive());
    }   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

    public void testStableWeights() {
        leaf11.setWeight(0.81);
        leaf12.setWeight(0.29);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!getResult(resultRoot, child1).isSensitive());
    }
   
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.ResultNode.analyseSensitivity()

    public void testYetStableWeights() {
        leaf11.setWeight(0.69);
        leaf12.setWeight(0.31);
       
        ResultNode resultRoot = new ResultNode(root, new WeightedSum(), alternatives);
        resultRoot.analyseSensitivity(weightModifier,
                SensitivityAnalysisTestFactory.getSensitivityTest(root, new WeightedSum(), alternatives));
       
        assert(!getResult(resultRoot, child1).isSensitive());
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.