public static void main(String[] args) {

        try {
            System.out.println("If args are given: FILEPATH REPETITION ITERATION TEMPERATURE");
            String filepath = "/home/mik/Documenti/univr/Ragionamento Automatico/stage/report/200/0.29/2.pg";
            if (args.length >=1){
                filepath = args[0];
            }
            PowerGrid pg = new PowerGrid(filepath);
            //PowerGrid pg = new PowerGrid(2, 3, 2, 0.2, 0.1);

            COP_Instance original_cop = pg.getCopMnotInfNoCo2();
            if (args.length >= 4){
                SARecycler sar = new SARecycler(
                        Integer.parseInt(args[1]),
                        Integer.parseInt(args[2]),
                        original_cop, null, "startandstop",
                        Integer.parseInt(args[3]));
            }
            else {
                SARecycler sar = new SARecycler(1, 25000000, original_cop, null, "startandstop",1000);
            }
        } catch (UnInitializatedException ex) {
            ex.printStackTrace();
        } catch (InitializatedException ex) {
            ex.printStackTrace();
        } catch (FileNotFoundException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }