public static void PRM(Partition p) {
		double hyperperiod = p.getHyperPeriod() * 1.0;

		Logger log = new Logger("plot1");

		for (double i = 1.0; i <= hyperperiod; i += 1.0) {

			double per = 0.01;
			System.out.println(p.getPartitionDBF(p.getHyperPeriod()));
			System.out.println(getPRMsbf(p.getHyperPeriod(), i * per, i));

			while ((per <= 1.00)
					&& (p.getPartitionDBF(p.getHyperPeriod()) > getPRMsbf(
							p.getHyperPeriod(), i, i * per))) {
				per += 0.01;
			}

			try {
				log.log(i + "\t" + per);
			} catch (IOException e) {
				System.out.println("deu merda");
				e.printStackTrace();
			}

			System.out.println("resource period: " + i + " resource supply: "
					+ per);
		}
	}