Changeset 51


Ignore:
Timestamp:
12/11/09 06:06:09 (15 years ago)
Author:
mszubert
Message:

Using mut macro instead of mutate.

Location:
java/ecj/framsticks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • java/ecj/framsticks/FramsticksUtils.java

    r50 r51  
    1313import cecj.interaction.RealValuedResult;
    1414import cecj.utils.Pair;
    15 
    1615import ec.EvolutionState;
    1716import ec.util.Parameter;
     
    2120        private static final String NEW_CMD = "%s \"getsimplest 1\" -q";
    2221        private static final String EVAL_CMD = "%s \"ex %s\" \"eval %s %s\" -q";
    23         private static final String MUTATE_CMD = "%s rnd \"mutate %s\" -q";
     22        private static final String MUTATE_CMD = "%s rnd mut -q < %s";
    2423        private static final String XOVER_CMD = "%s rnd \"crossover %s %s\" -q";
    2524
     
    8079                        state.output.fatal("No executable command specified", def.push(P_EXECUTABLE_COMMAND));
    8180                }
    82                
     81
    8382                debug = state.parameters.getBoolean(null, def.push(P_DEBUG), false);
    8483        }
     
    8887                        System.err.println("Executing command : " + command);
    8988                }
    90                
     89
    9190                String result = new String();
    9291                try {
    9392                        File f = new File(directoryPath);
    94                         Process p = Runtime.getRuntime().exec(directoryPath + command, null, f);
     93                        Process p = Runtime.getRuntime().exec(
     94                                        new String[] { "cmd.exe", "/C", directoryPath + command }, null, f);
    9595                        BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    9696                        result = readInput(input);
     
    126126                return result;
    127127        }
    128        
     128
    129129        private String readInput(BufferedReader input) {
    130130                StringBuilder result = new StringBuilder();
    131                
     131
    132132                try {
    133133                        String line;
     
    140140                }
    141141
    142                 //Delete last newline character
     142                // Delete last newline character
    143143                if (result.length() > 0) {
    144144                        return result.substring(0, result.length() - 1);
  • java/ecj/framsticks/framsticks.params

    r48 r51  
    5353breed.elite.0 = 2
    5454
    55 framsticks.debug = true
     55framsticks.debug = false
    5656framsticks.directory-path = C:/Framsticks/
    5757framsticks.scripts-output = C:/Framsticks/scripts_output/genosEval.txt
Note: See TracChangeset for help on using the changeset viewer.