* @return Optimisation manager instance.
*/
private IOptimisationManager setUp (String[] args) throws Exception
{
DAOFactory daoFactory = null;
EstimationResult estimationResult = null;
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();
classLoader = new PESClassLoader();
daoFactory = DAOFactory.createInstance(DAOFactory.HIBERNATE);
estimationResult = new EstimationResult();
priceCalculator = new SamplePriceCalculator();
//--- Setting up ASLA parameters and optimisation space ---//
aslaParams = setUpASLAParams();
optimisationSpace = setUpOptimisationSpace();