Optimization; Electroencephalography (EEG); Memory theory; Markov decision process (MDPs); Value at risk (VaR). Matlab; Python.