Examples of AObjectiveFunction


Examples of uk.ac.soton.itinnovation.pes.optimiser.common.AObjectiveFunction

        IPriceCalculator priceCalculator = null;
        Map<String, List<AttributeType>> aslaParams = null;
        Map<String, Set<Resource>> optimisationSpace = null;
        IOptimisationAlgorithm optAlg = null;
        AModel appModel = null;
        AObjectiveFunction objFunc = null;
    IOptimisationManager opt;
    boolean valid = false;

        //--- Setting up various things required by several components ---//
        optUtil = OptimiserUtil.getInstance();
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.optimiser.common.AObjectiveFunction

    private AObjectiveFunction setUpObjFunc(String xmlFile, AModel appModel,
            IPriceCalculator priceCalculator, EstimationResult estimationResult,
            DAOFactory daoFactory, String workspace, Map<String, List<AttributeType>> aslaParams) throws Exception
    {
        ObjectiveFunctionConfig objFuncConfig = null;
        AObjectiveFunction objFunc = null;

    System.out.println("[TestFramework] Loading objective function from XML file");
        objFuncConfig = optUtil.loadObjectiveFunction(xmlFile);
        objFunc = classLoader.getObjectiveFunctionInstance(objFuncConfig.getImplClazz());

        System.out.println("[TestFramework] Initialising objective function");
        objFunc.init(objFuncConfig, appModel, aslaParams, workspace, estimationResult, daoFactory);
        objFunc.setPriceCalculator(priceCalculator);

        System.out.println();
        return objFunc;
    }
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.