Describes a tDCS optimization problem


  • Python

    from simnibs import optimization
    opt = optimization.TDCSoptimize()


    opt = opt_struct('TDCSoptimize');


  • leadfield_hdf: string (Python)/character array (MATLAB)

    • Desctiption: Name of HDF5 file with leadfield (see TDCSLEADFIELD)

    • Example: Python/MATLAB

    opt.leadfield_hdf = 'tdcs_leadfield/ernie_leadfield_EEG10-10_UI_Jurak_2007.hdf5'

  • name: string (Python)/character array (MATLAB)

    • Desctiption: Name of the optimization problem. Gives the path and the prefix to the output files

    • Example: Python/MATLAB

      To have the output files from the optimization in the tdcs_leadfield/ folder and the motor_cortex prefix = 'tdcs_leadfield/motor_cortex'

  • target: list/array of TDCStarget structure (Python/MATLAB)

    • Description: List of targets for optimization. See TDCStarget. By setting a list of targets, SimNIBS will try to optimize all of them simultaneously.

  • avoid: list/array of TDCSavoid structure (Python/MATLAB), optional

    • Description: List of regions to be more heavily punished during optimization. See TDCSavoid.

  • max_total_current: float, optional

    • Description: Maximum total injected current, in A

    • Default: 2e-3

  • max_individual_current: float, optional

    • Description: Maximum current injected in each electrode, in A

    • Default: 1e-3

  • max_active_electrodes: int, optional

    • Description: Maximum number of active electrodes. Leave empty if no maximum number of electrodes

    • Default: No maximum


Saturnino, G. B., Siebner, H. R., Thielscher, A., & Madsen, K. H. (2019). Accessibility of cortical regions to focal TES: Dependence on spatial position, safety, and practical constraints. NeuroImage, 203, 116183.