|
| 1 | +[LOGGING] |
| 2 | +logmode = file |
| 3 | + |
| 4 | +[POPULATION] |
| 5 | +# Population size. This paramater can be a number or a numpy array |
| 6 | +size = 50 |
| 7 | +sensors = 1 |
| 8 | +sensor_spec = false |
| 9 | +sensor_list = 1,5,2,4 |
| 10 | +controls = 1 |
| 11 | +sensor_prob = 0.33 |
| 12 | +leaf_prob = 0.3 |
| 13 | +range = 10 |
| 14 | +precision = 4 |
| 15 | +# Numpy arrange |
| 16 | +opsetrange = 1:4 |
| 17 | +end_character = |
| 18 | +individual_type = tree |
| 19 | + |
| 20 | +[GP] |
| 21 | +# GP algortihm (CHANGE IF YOU KNOW WHAT YOU DO) |
| 22 | +maxdepth = 15 |
| 23 | +maxdepthfirst = 5 |
| 24 | +mindepth = 2 |
| 25 | +mutmindepth = 2 |
| 26 | +mutmaxdepth = 15 |
| 27 | +mutsubtreemindepth = 2 |
| 28 | +generation_method = mixed_ramped_gauss |
| 29 | +gaussigma = 3 |
| 30 | +# Numpy arange |
| 31 | +ramp = 2:9 |
| 32 | +maxtries = 10 |
| 33 | +mutation_types = 1:5 |
| 34 | + |
| 35 | +[OPTIMIZATION] |
| 36 | +# Optimization parameters |
| 37 | +elitism = 10 |
| 38 | +probrep = 0.1 |
| 39 | +probmut = 0.4 |
| 40 | +probcro = 0.5 |
| 41 | +selectionmethod = tournament |
| 42 | +tournamentsize = 7 |
| 43 | +lookforduplicates = true |
| 44 | +simplify = false |
| 45 | +# Numpy array |
| 46 | +cascade = 1,1 |
| 47 | + |
| 48 | +[EVALUATOR] |
| 49 | +# Evaluator |
| 50 | +# evaluation_method = standalone_function |
| 51 | +# evaluation_method = standalone_files |
| 52 | +evaluation_method = mfile_standalone |
| 53 | + |
| 54 | +# evaluation_function = toy_problem |
| 55 | +# evaluation_function = toy_problem_python_ev |
| 56 | +evaluation_function = simulink_ev |
| 57 | + |
| 58 | +# evaluation_function = arduino |
| 59 | +indfile = ind.dat |
| 60 | +Jfile = J.dat |
| 61 | +# exchangedir = fullfile(pwd,evaluator0) |
| 62 | +evaluate_all = 0 |
| 63 | +ev_again_best = false |
| 64 | +ev_again_nb = 5 |
| 65 | +ev_again_times = 5 |
| 66 | +artificialnoise = 0 |
| 67 | +execute_before_evaluation = |
| 68 | +badvalue = 1e36 |
| 69 | +badvalues_elim = first |
| 70 | +%badvalues_elim = none |
| 71 | +%badvalues_elim = all |
| 72 | +preevaluation = true |
| 73 | +preev_function = simulink_preev |
| 74 | +problem_variables.gamma = 0.1 |
| 75 | + |
| 76 | +[BEHAVIOUR] |
| 77 | +## MLC behaviour |
| 78 | +save = 1 |
| 79 | +saveincomplete = 1 |
| 80 | +verbose = 2 |
| 81 | +fgen = 250 |
| 82 | +savedir = mlc_simulation.db |
| 83 | +stopongraph = false |
| 84 | +showeveryitbest = true |
| 85 | + |
| 86 | +[ARDUINO] |
| 87 | +baudrate = 115200 |
| 88 | +port= /dev/ttyACM0 |
| 89 | +command_opcode = 1 |
| 90 | +# Time in microseconds |
| 91 | +wait_period = 10000 |
| 92 | +# Time in seconds |
| 93 | +read_timeout = 5.0 |
| 94 | +read_retries = 2 |
| 95 | + |
| 96 | +[PROBLEM_VARIABLES] |
| 97 | +# Frequency of the signal, not pulsation |
| 98 | +signal_frequency = 1 |
| 99 | +# Offset (Amplitude) of the signal |
| 100 | +signal_offset = 1.65 |
| 101 | +# |
| 102 | +sampling_resolution = 0.001 |
| 103 | +# |
| 104 | +amount_periods = 2 |
| 105 | +# |
| 106 | +signal_amplitude = 1 |
| 107 | +# Name of the Simulink Model to be used |
| 108 | +model_name = arduino_expe |
| 109 | +# Path to be added to MATLAB in order to run the Simulink Model |
| 110 | +model_path = /home/etorres/Facultad/TP_Profesional/MLC_simulink_Arduino |
| 111 | +# Gamma |
| 112 | +gamma = 0.1 |
| 113 | + |
| 114 | +# This variables are used just in this experiment |
| 115 | +sensor_source = signal_to_cancel |
| 116 | +# sensor_source = difference |
| 117 | + |
| 118 | +# goal = kill_perturbation |
| 119 | +goal = kill_signal |
| 120 | + |
| 121 | +# summator_gain = 1 |
| 122 | +summator_gain = -1 |
0 commit comments