public void initializeDataStorage() throws Exception
	{
		
		System.out.println("This inicialization will put values in storage and release Targets for each period");
		/*
		 * And also put the weights on each of the component
		 * data will be put manual but this should be upgraded to put over a php form (internet)
		*/
		
		
		/* This is the part to connect to the database "Bregalnica" from Postgress
		 */
			// the default values for storagetargets,storagerecreation and release targets and their weights is 0
		double[] storageTargetsFloodsN=new double [periods];
		double[] storageTargetsRecreationN=new double [periods];

		double[] storageTargetsFloodsNWeights=new double [periods];
		double[]  storageTargetsRecreationNWeights=new double [periods];
		
		int i;
	
		double[] TargetsTowns_SS=new double [periods];
		double[]  TargetsTownsWeights_SS=new double [periods];
		
		double[] TargetsTowns_PZ=new double [periods];
		double[]  TargetsTownsWeights_PZ=new double [periods];
		

		
		double[] TargetsAgriculture_UZ=new double [periods];
		double[]  TargetsAgricultureWeights_UZ=new double [periods];
		
		
		double[] TargetsAgriculture_LZ=new double [periods];
		double[]  TargetsAgricultureWeights_LZ=new double [periods];
		
		
		double[] TargetsEcology=new double [periods];
		double[]  TargetsEcologyWeights=new double [periods];
		
		
		double[] TargetsHydroPower=new double [periods];
		double[]  TargetsHydroPowerWeights=new double [periods];
		
		
		AbstactData test = new AbstactData();
		int a;
		a=test.testDatabaseConnection();
		
	IData test1 = new AbstactData();
		
		
		storageTargetsFloodsN=test1.getstorageTargetsFloods();
		storageTargetsFloodsNWeights=test1.getstorageTargetsFloodWeights();
		
		storageTargetsRecreationN=test1.getstorageTargetsRecreation();
		storageTargetsRecreationNWeights=test1.getstorageTargetsRecreationWeights();
		
		
		TargetsTowns_SS=test1.getTargetsTowns_SS();
		
		
		TargetsTownsWeights_SS=test1.getTargetsTownsWeights_SS();
		
		TargetsTowns_PZ=test1.getTargetsTowns_PZ();
		TargetsTownsWeights_PZ=test1.getTargetsTownsWeights_PZ();
		
		
		TargetsAgriculture_UZ=test1.getTargetsAgriculture_UZ();
		TargetsAgricultureWeights_UZ=test1.getTargetsAgricultureWeights_UZ();
		
		TargetsAgriculture_LZ=test1.getTargetsAgriculture_LZ();
		TargetsAgricultureWeights_LZ=test1.getTargetsAgricultureWeights_LZ();
		
		
		TargetsEcology=test1.getstorageTargetsEcology();
		TargetsEcologyWeights=test1.getstorageTargetsEcologyWeights();
		
		
		TargetsHydroPower=test1.getstorageTargetsHydroPower();
		TargetsHydroPowerWeights=test1.getstorageTargetsHydroPowerWeights();
		
		if (print){
			
			System.out.println(" ");
			System.out.println("storageTargetsFloods -- storageTargetsFloodsNWeights []");
			for (i=0;i<periods;i++) System.out.println(storageTargetsFloodsN[i] + "                     "+storageTargetsFloodsNWeights[i] );
			System.out.println(" ");
			
			
			
			System.out.println("storageTargetsRecreationN  [] ------storageTargetsRecreationNWeight");
			for (i=0;i<periods;i++) System.out.println(storageTargetsRecreationN[i]+ "  "+  storageTargetsRecreationNWeights[i]);
			System.out.println(" ");
			
			
			System.out.println("Towns PZ [] ------ TownsWeights []");
			for (i=0;i<periods;i++)System.out.println(TargetsTowns_PZ[i]+ "  "+ TargetsTownsWeights_PZ[i]);
			System.out.println(" ");
			
			System.out.println("Towns SS [] ------ TownsWeights []");
			for (i=0;i<periods;i++)System.out.println(TargetsTowns_SS[i]+ "  "+ TargetsTownsWeights_SS[i]);
			System.out.println(" ");
		
			System.out.println("Agriculture UZ [] ------ AgricultureNWeights");
			for (i=0;i<periods;i++) System.out.println(TargetsAgriculture_UZ[i]+ "  "+ TargetsAgricultureWeights_UZ[i]);
			System.out.println(" ");
			
			System.out.println("Agriculture LZ [] ------ AgricultureNWeights");
			for (i=0;i<periods;i++) System.out.println(TargetsAgriculture_LZ[i]+ "  "+ TargetsAgricultureWeights_LZ[i]);
			System.out.println(" ");
			
			System.out.println("Ecology [] ------EcologyNWeights []");
			for (i=0;i<periods;i++)System.out.println(TargetsEcology[i]+ "  "+ TargetsEcologyWeights[i]);
			System.out.println(" ");
			
			
			System.out.println("Hydro power [] ------hydro power Weights []");
			for (i=0;i<periods;i++)System.out.println(TargetsHydroPower[i]+ "  "+ TargetsHydroPowerWeights[i]);
			System.out.println(" ");
		
		}
	
		
		this.storageTargetsFloods=storageTargetsFloodsN;
		this.storageTargetsRecreation=storageTargetsRecreationN;

			
		
		this.storageTargetsFloodWeights=storageTargetsFloodsNWeights;
		this.storageTargetsRecreationWeights=storageTargetsRecreationNWeights;

		
		this.storageTargetsFloodWeights=storageTargetsFloodsNWeights;
		this.storageTargetsRecreationWeights=storageTargetsRecreationNWeights;
		
		
		this.Towns_PZ=TargetsTowns_PZ;
		this.TownsWeights_PZ=TargetsTownsWeights_PZ;
		
		this.Towns_SS=TargetsTowns_SS;
		this.TownsWeights_SS=TargetsTownsWeights_SS;
		
		
	
		
		this.Agriculture_UZ=TargetsAgriculture_UZ;
		this.AgricultureWeights_UZ=TargetsAgricultureWeights_UZ;
		
		this.Agriculture_LZ=TargetsAgriculture_LZ;
		this.AgricultureWeights_LZ=TargetsAgricultureWeights_LZ;
		
		this.Ecology=TargetsEcology;
		this.EcologyWeights=TargetsEcologyWeights;
		
		this.HydroPower=TargetsHydroPower;
		this.HydroPowerWeights=TargetsHydroPowerWeights;
		
		
		
		
		double [] reservoir_height= new double [sD];

	 reservoir_height=reserovirVolumeToHeight(stDisk);
		
		this.reservoir_height=reservoir_height;
		
	}