<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Hum. Neurosci.</journal-id>
<journal-title>Frontiers in Human Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Hum. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5161</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fnhum.2024.1201574</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Human Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Lattice layout and optimizer effect analysis for generating optimal transcranial electrical stimulation (tES) montages through the metaheuristic L1L1 method</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Galaz Prieto</surname> <given-names>Fernando</given-names></name>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2082637/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Samavaki</surname> <given-names>Maryam</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/2102925/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Pursiainen</surname> <given-names>Sampsa</given-names></name>
<uri xlink:href="http://loop.frontiersin.org/people/2069378/overview"/>
</contrib>
</contrib-group>
<aff><institution>Computing Sciences, Faculty of Information Technology, Tampere University</institution>, <addr-line>Tampere</addr-line>, <country>Finland</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Kanak Kalita, Vel Tech Dr. RR &#x00026; Dr. SR Technical University, India</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Umit Aydin, University of Reading, United Kingdom</p>
<p>Ghazaleh Soleimani, Medical School, University of Minnesota, United States</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Fernando Galaz Prieto <email>fernando.galazprieto&#x00040;tuni.fi</email></corresp>
</author-notes>
<pub-date pub-type="epub">
<day>29</day>
<month>02</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>18</volume>
<elocation-id>1201574</elocation-id>
<history>
<date date-type="received">
<day>06</day>
<month>04</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>16</day>
<month>02</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2024 Galaz Prieto, Samavaki and Pursiainen.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Galaz Prieto, Samavaki and Pursiainen</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license></permissions>
<abstract>
<sec>
<title>Introduction</title>
<p>This study focuses on broadening the applicability of the metaheuristic L1-norm fitted and penalized (L1L1) optimization method in finding a current pattern for multichannel transcranial electrical stimulation (tES). The metaheuristic L1L1 optimization framework defines the tES montage via linear programming by maximizing or minimizing an objective function with respect to a pair of hyperparameters.</p></sec>
<sec>
<title>Methods</title>
<p>In this study, we explore the computational performance and reliability of different optimization packages, algorithms, and search methods in combination with the L1L1 method. The solvers from Matlab R2020b, MOSEK 9.0, Gurobi Optimizer, CVX&#x00027;s SeDuMi 1.3.5, and SDPT3 4.0 were employed to produce feasible results through different linear programming techniques, including Interior-Point (IP), Primal-Simplex (PS), and Dual-Simplex (DS) methods. To solve the metaheuristic optimization task of L1L1, we implement an exhaustive and recursive search along with a well-known heuristic direct search as a reference algorithm.</p></sec>
<sec>
<title>Results</title>
<p>Based on our results, and the given optimization task, Gurobi&#x00027;s IP was, overall, the preferable choice among Interior-Point while MOSEK&#x00027;s PS and DS packages were in the case of Simplex methods. These methods provided substantial computational time efficiency for solving the L1L1 method regardless of the applied search method.</p></sec>
<sec>
<title>Discussion</title>
<p>While the best-performing solvers show that the L1L1 method is suitable for maximizing either focality and intensity, a few of these solvers could not find a bipolar configuration. Part of the discrepancies between these methods can be explained by a different sensitivity with respect to parameter variation or the resolution of the lattice provided.</p></sec></abstract>
<kwd-group>
<kwd>transcranial electrical stimulation (tES)</kwd>
<kwd>optimization</kwd>
<kwd>linear programming</kwd>
<kwd>L1-norm</kwd>
<kwd>Interior-Point</kwd>
<kwd>metaheuristics</kwd>
</kwd-group>
<counts>
<fig-count count="6"/>
<table-count count="2"/>
<equation-count count="20"/>
<ref-count count="61"/>
<page-count count="13"/>
<word-count count="8715"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Brain-Computer Interfaces</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1 Introduction</title>
<p>Transcranial Electrical Stimulation (tES) is a non-invasive brain stimulation method used for stimulating neuronal activity, treating psychiatric disorders, and studying neuronal behavior by transmitting a constant low-intensity current pattern through a set of electrode patches attached to the scalp of the subject to modulate cortical excitability (Nitsche and Paulus, <xref ref-type="bibr" rid="B38">2000</xref>). In tES, a volumetric current density in the brain is generated by injecting through the scalp a current pattern that can be described via different properties, including the number of active electrodes, their physical description (e.g., positioning, shape, permittivity, and impedance values), the applied stimulus waveform (e.g., amplitude, pulse shape, pulse width, and polarity), the number of stimulation sessions, and the time interval (Peterchev et al., <xref ref-type="bibr" rid="B40">2012</xref>). Since different electrode montages result in distinct brain current flow, clinicians and researchers can adjust the montage to target or avoid specific brain regions in an application-specific manner.</p>
<p>An increasingly popular form of tES is the Transcranial Direct Current Stimulation (tDCS) method (Paulus, <xref ref-type="bibr" rid="B39">2011</xref>; Moreno-Duarte et al., <xref ref-type="bibr" rid="B36">2014</xref>; Thair et al., <xref ref-type="bibr" rid="B53">2017</xref>; Reed and Cohen Kadosh, <xref ref-type="bibr" rid="B46">2018</xref>). Compared to other non-invasive stimulation methods, the advantages of tDCS can be attributed to its inexpensive and approachable characteristics. Unlike the intricate machinery required for Transcranial Magnetic Stimulation (TMS) or the specialized frequency considerations in Transcranial Alternating Current Stimulation (tACS), tDCS involves a simpler setup&#x02014;a direct current passed through scalp electrodes. This simplicity not only reduces the cost of equipment but also enhances portability, making tDCS more accessible for various settings, including home use. The simplicity and minimal training required contribute to its user-friendly nature enabling a broader range of individuals to utilize or participate in studies involving this method. Whereas tDCS is classically applied in a two-channel configuration (Kaufmann et al., <xref ref-type="bibr" rid="B26">2021</xref>), its focality can be enhanced via multiple channels, which has motivated the introduction of advanced optimization methods for finding an optimal multi-channel montage (Fernandez-Corazza et al., <xref ref-type="bibr" rid="B14">2020</xref>).</p>
<p>tES modeling involves constructing computational representations of the head and brain anatomy, simulating the distribution of electric fields. This process integrates factors such as electrode placement, tissue conductivity, and finite element method simulations to visualize and analyze the spatial distribution of the electric field within the brain. Generating a high-resolution forward model is critical for building an explicit patient-specific head model, determining optimal positioning of electrodes, and predicting electric field generation across the brain for specific stimulation configurations (Faria et al., <xref ref-type="bibr" rid="B13">2011</xref>; Rampersad et al., <xref ref-type="bibr" rid="B45">2013</xref>; Wagner et al., <xref ref-type="bibr" rid="B57">2013</xref>). Using such a forward model, multi-electrode stimulation can be optimized via specifically designed mathematical methodology (Dmochowski et al., <xref ref-type="bibr" rid="B10">2011</xref>; Ruffini et al., <xref ref-type="bibr" rid="B48">2014</xref>; Guler et al., <xref ref-type="bibr" rid="B22">2016</xref>; Wagner et al., <xref ref-type="bibr" rid="B56">2016</xref>; Fernandez-Corazza et al., <xref ref-type="bibr" rid="B14">2020</xref>), such as the recently developed convex optimization schemes including the Distributed Constrained Maximum Intensity (D-CMI) (Khan et al., <xref ref-type="bibr" rid="B28">2022</xref>), and the metaheuristic L1-norm regularized L1-norm fitting (L1L1) (Galaz Prieto et al., <xref ref-type="bibr" rid="B19">2022</xref>) which aim at an individualized distributional fit for a given target activity.</p>
<p>In this study, we aim to broaden the applicability of the linear programming (LP)-based L1L1 method for finding tES electrode montages computationally in a comprehensive manner, i.e., by evaluating the metaheuristic results and total computing time through different mathematical optimization algorithms and packages; this includes Interior-Point (IP) (Mehrotra, <xref ref-type="bibr" rid="B34">1992</xref>), Primal-Simplex (PS), and Dual-Simplex (DS) (Boyd and Vandenberghe, <xref ref-type="bibr" rid="B6">2004</xref>) as alternative LP algorithms, and Matlab (R2020b) from MathWorks (Zhang, <xref ref-type="bibr" rid="B61">1999</xref>), MOSEK Optimization Suite (Release 9.0) (Mosek, <xref ref-type="bibr" rid="B37">2019</xref>), Gurobi Optimization (9.5.1) (Gurobi Optimization LLC, <xref ref-type="bibr" rid="B23">2022</xref>), SDPT3 (4.0) (T&#x000FC;t&#x000FC;nc&#x000FC; et al., <xref ref-type="bibr" rid="B55">2003</xref>), and SeDuMi (1.3.5) (Sturm, <xref ref-type="bibr" rid="B52">1999</xref>; Frenk et al., <xref ref-type="bibr" rid="B18">2000</xref>; Polik et al., <xref ref-type="bibr" rid="B41">2007</xref>) as alternative packages. The latter two open-source alternatives are available in the CVX optimization toolbox (Grant and Boyd, <xref ref-type="bibr" rid="B21">2014</xref>). We also investigate the metaheuristic hyperparameter optimization (HPO) task of L1L1 via exhaustive search (Bianchi et al., <xref ref-type="bibr" rid="B4">2009</xref>) and recursive search (Je and Park, <xref ref-type="bibr" rid="B25">2013</xref>) with heuristic direct search as a reference algorithm (Bogani et al., <xref ref-type="bibr" rid="B5">2009</xref>).</p>
<p>Our results suggest that the performance differences between the above-mentioned optimization packages, algorithms, and search methodology can be crucial regarding the optimization results, focality stimulation current, and the availability of active channels in the montage. Moreover, exhaustive and recursive search methods can also be considered preferable to heuristic direct search in terms of their overall reliability and predictability.</p></sec>
<sec sec-type="materials and methods" id="s2">
<title>2 Materials and methods</title>
<p>In tES, a real <italic>L</italic> &#x000D7; 1 current pattern <bold>y</bold> is injected into the subject&#x00027;s head through a set of contact electrodes attached to the scalp. These electrodes, ranging from 0.5 to 4.0 milliamperes (mA) (Zaghi et al., <xref ref-type="bibr" rid="B60">2010</xref>; Khadka et al., <xref ref-type="bibr" rid="B27">2020</xref>; Workman et al., <xref ref-type="bibr" rid="B58">2020</xref>), form what is known as an electrode montage and are responsible for distributing the injected volumetric current density&#x02013;measured in ampere per square meter (A/m<sup>2</sup>)&#x02013;throughout the scalp, skull, cerebrospinal fluid (CSF), and brain components, including cortical and subcortical brain structures. The governing linear system is of the form</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <inline-formula><mml:math id="M2"><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> is a real <italic>N</italic> &#x000D7; <italic>L</italic> lead field matrix (forward mapping) that describes the relationship between the <bold>y</bold>, and <inline-formula><mml:math id="M3"><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> is a real <italic>N</italic> &#x000D7; 1 discretized volume current density vector. The linear system (<xref ref-type="disp-formula" rid="E1">Equation 1</xref>) is re-interpreted component-wise as the focused field <inline-formula><mml:math id="M4"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, where the target field has non-zero values, and the nuisance field <inline-formula><mml:math id="M5"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle mathvariant="bold"><mml:mtext>0</mml:mtext></mml:mstyle></mml:math></inline-formula>, where it vanishes. Detailed mathematical definition of the lead field matrix refer to <italic>Appendix A. Forward model</italic> in Galaz Prieto et al. (<xref ref-type="bibr" rid="B19">2022</xref>).</p>
<p>The optimization problem needs to find the best matching between <bold>y</bold>, and the focused field via <bold>Ly</bold> &#x0003D; <bold>x</bold>, where the projection of the focused field into the direction of the target constitutes the first component as</p>
<disp-formula id="E2"><mml:math id="M6"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mtd><mml:mtd><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>P</mml:mtext></mml:mstyle><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mtext class="textrm" mathvariant="normal">and</mml:mtext><mml:mtext>&#x000A0;</mml:mtext></mml:mtd><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>0</mml:mtext></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>P</mml:mtext></mml:mstyle><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>0</mml:mtext></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>with <bold>P</bold> denoting a matrix that projects a vector into the direction of <inline-formula><mml:math id="M7"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>. The target amplitude ||<bold>x</bold><sub>1</sub>||<sub>2</sub> is set as 3.85 A/m<sup>2</sup> which is an approximation of the excitation current threshold for nerve fibers of the upper limb area of the motor cortex (Kowalski et al., <xref ref-type="bibr" rid="B29">2002</xref>).</p>
<sec>
<title>2.1 L1-norm fitted and regularized optimization</title>
<p>The goal in L1-norm Fitted and Regularized (L1L1) optimization method (Galaz Prieto et al., <xref ref-type="bibr" rid="B19">2022</xref>) is to minimize</p>
<disp-formula id="E3"><label>(2)</label><mml:math id="M8"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:munder><mml:mrow><mml:mi>min</mml:mi></mml:mrow><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle></mml:munder><mml:mrow><mml:mo>{</mml:mo> <mml:mrow><mml:mrow><mml:mo>&#x02016;</mml:mo> <mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mtable columnalign='center'><mml:mtr><mml:mtd><mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>L</mml:mi></mml:mstyle><mml:mn>1</mml:mn></mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>x</mml:mi></mml:mstyle><mml:mn>1</mml:mn></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mi>&#x003A8;</mml:mi><mml:mi>&#x003B5;</mml:mi></mml:msub><mml:mo stretchy='false'>[</mml:mo><mml:msup><mml:mi>&#x003BD;</mml:mi><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>L</mml:mi></mml:mstyle><mml:mn>2</mml:mn></mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle><mml:mo stretchy='false'>]</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:msub><mml:mo>&#x02016;</mml:mo><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mi>&#x003B6;</mml:mi><mml:mo>&#x02016;</mml:mo><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle><mml:msub><mml:mo>&#x02016;</mml:mo><mml:mn>1</mml:mn></mml:msub></mml:mrow> <mml:mo>}</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>s</mml:mtext><mml:mo>.</mml:mo><mml:mtext>t</mml:mtext><mml:mo>.</mml:mo><mml:mtext>&#x02003;</mml:mtext><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle><mml:mi>&#x003B3;</mml:mi><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mn>1</mml:mn></mml:mstyle><mml:mo>,</mml:mo><mml:mtext>&#x02003;</mml:mtext><mml:mo>&#x02016;</mml:mo><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>y</mml:mi></mml:mstyle><mml:msub><mml:mo>&#x02016;</mml:mo><mml:mn>1</mml:mn></mml:msub><mml:mo>&#x02264;</mml:mo><mml:mi>&#x003BC;</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x02003;</mml:mtext><mml:mstyle displaystyle='true'><mml:munderover><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>&#x02113;</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>L</mml:mi></mml:munderover><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mi>&#x02113;</mml:mi></mml:msub></mml:mrow></mml:mstyle><mml:mo>=</mml:mo><mml:mn>0.</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The injection on every active &#x02113;-th electrode channel is limited to &#x003B3; &#x02264; 2.0 mA, the total injection current dose flowing through the tES head cap is within the safety limit &#x003BC; &#x02264; 4.0 mA, and the total sum of electric current from every active electrode channel in <italic>y</italic><sub>&#x02113;</sub>, where &#x02113; &#x02208; {1, &#x022EF;&#x000A0;, <italic>L</italic>}, must be equal to zero. The regularization parameter <bold>&#x003B1;</bold> sets the level of L1-regularization with respect to the scaling value &#x003B6; &#x0003D; ||<bold>L</bold>||<sub>1</sub>. The function</p>
<disp-formula id="E4"><mml:math id="M9"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mtext>&#x003A8;</mml:mtext></mml:mrow><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>w</mml:mtext></mml:mstyle></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo class="qopname">max</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:mo>,</mml:mo><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mtext>&#x000A0;for&#x000A0;</mml:mtext><mml:mi>m</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mspace width="0.3em" class="thinspace"/><mml:mo>,</mml:mo><mml:mi>M</mml:mi></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <bold>w</bold> &#x0003D; (<italic>w</italic><sub>1</sub>, <italic>w</italic><sub>2</sub>, &#x022EF;&#x000A0;, <italic>w</italic><sub><italic>M</italic></sub>), sets the nuisance field threshold 0 &#x02264; &#x003B5; &#x02264; 1 with respect to the scaling value &#x003BD; &#x0003D; ||<bold>x</bold>||<sub>&#x0221E;</sub>, meaning that entries (<sub><bold>L</bold><sub>2</sub><bold>y</bold>)<italic>m</italic></sub> with an absolute value below &#x003B5;&#x003BD; do not actively contribute to the minimization process due to the threshold. We refer to the set {<italic>m</italic>:|(<sub><bold>L</bold><sub>2</sub><bold>y</bold>)<italic>m</italic></sub>| &#x02265; &#x003B5;&#x003BD;} as the <italic>constraint support</italic>, i.e., the index set contributing to the value of the objective function. Detailed formulation of the linear programming system (<xref ref-type="disp-formula" rid="E3">Equation 2</xref>) can be found in Galaz Prieto et al. (<xref ref-type="bibr" rid="B19">2022</xref>).</p>
<p>The current density &#x00393; of the focused field is defined as</p>
<disp-formula id="E5"><mml:math id="M10"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mo>&#x00393;</mml:mo><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;and&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mo>&#x00393;</mml:mo></mml:mrow><mml:mrow><mml:mtext>max</mml:mtext></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo class="qopname">arg</mml:mo><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">max</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x003B5;</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mo>&#x00393;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>and the focality of the stimulus &#x00398; is defined as the following current ratio</p>
<disp-formula id="E6"><mml:math id="M11"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>&#x00398;</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mo>&#x00393;</mml:mo></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:msqrt><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msqrt></mml:mrow></mml:mfrac><mml:mtext>&#x000A0;</mml:mtext><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>d</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>&#x00398;</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo class="qopname">arg</mml:mo><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">max</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x003B5;</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mi>&#x00398;</mml:mi><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The metacriterion &#x00393; &#x02265; &#x00393;<sub>0</sub> is applied to maintain appropriate intensity at the target location. Namely, without a lower bound for the intensity, the intensity of the maximizer is likely to vanish.</p></sec>
<sec>
<title>2.2 Two-stage metaheuristic lattice search</title>
<p>To derive a multi-channel tES montage following the aforementioned equations, the optimization framework takes into account the following indications: (A) a procedure for selecting the most relevant electrodes in the montage for a given region of interest; (B) a definition of the tuning parameters which will maximize or minimize the objective function; and (C) a method to evaluate said parameters and retrieve data (search method). In this study, 128 electrodes were attached to the scalp following the international 10-10 EEG hardware system with an impedance of 2.0 kOhm (kiloohms). Physiological impediments in the head model, fluctuation in conductivity tissue, and behavior of the injected current aspects are excluded. The framework of this search is as follows:</p>
<list list-type="simple">
<list-item><p>(A) The <italic>two-stage</italic> determines which of the tES channels in the neurostimulator headgear should be set as active or inactive based on the field distribution on the head surface for a given current source in the brain. After calculating the lead field matrix, the user specifies an approximate region of interest through forward dipole modeling (Bauer et al., <xref ref-type="bibr" rid="B2">2015</xref>; Medani et al., <xref ref-type="bibr" rid="B33">2015</xref>; Pursiainen et al., <xref ref-type="bibr" rid="B44">2016</xref>). This is the highlighted region from which the two-stage procedure shall prioritize the electrode selection as follows:</p>
<list list-type="simple">
<list-item><p>(A.1). During the first stage, the optimization model sets all channels with an initial current of zero value and determines a volumetric current density influenced by the electric properties, direction, and positioning of the dipole modeling. Then, the optimization model filters the montage down to a (user-defined) number of electrodes that contribute the most to the maximal safety tES current injection based on the initial range of &#x003B1; and &#x003B5; values provided. The corresponding electric potential from the now-limited montage with channels <italic>y</italic><sub>&#x02113;</sub> is normalized to meet the intended maximum current injection &#x003BC; value while the remaining electrodes are opted out of further calculations. We constraint the total number of active electrodes available to &#x02113; &#x0003D; 20 inspired by commercial tES systems (Roy et al., <xref ref-type="bibr" rid="B47">2019</xref>; Tost et al., <xref ref-type="bibr" rid="B54">2021</xref>).</p></list-item>
<list-item><p>(A.2). In the second stage, the optimization re-runs using only the active electrodes obtained previously. In this stage, the objective function can be retroactively modified to retrieve a customized montage that favors an intense volumetric current density &#x00393; or a maximal stimulation focality given a target current &#x00398;. The final result is then thresholded to a non-zero number of currents in the pattern.</p></list-item>
</list></list-item> 
<list-item><p>(B) Using <italic>metaheuristic</italic> methodology means developing an algorithm that can produce near-optimal results in a computationally feasible time (Bianchi et al., <xref ref-type="bibr" rid="B4">2009</xref>). In the present context, the objective is to iteratively adjust the parameters &#x003B1; and &#x003B5; to ascertain a solution that minimally impairs the objective function. The aim is to secure a heightened amplitude within the targeted focus field while concurrently mitigating undesirable signals (the nuisance field). We define a parameter space by specifying ranges for &#x003B1;<sub><italic>m</italic></sub> from -100 to -20 dB and &#x003B5;<sub><italic>n</italic></sub> from -160 to 0 dB, employing logarithmic increments. Plotting these parameter values on a Cartesian plane elucidates the search space &#x003BA;, subject to a set of constraints delineated by the linear programming paradigm at hand.</p></list-item>
<list-item><p>(C) The <italic>lattice search</italic> aspect defines the instructions on how to retrieve information from the search space <italic>&#x003BA;</italic> for solving (<xref ref-type="disp-formula" rid="E3">Equation 2</xref>). This task can be considered as a hyperparameter optimization (HPO) exercise (Feurer and Hutter, <xref ref-type="bibr" rid="B15">2019</xref>; Yang and Shami, <xref ref-type="bibr" rid="B59">2020</xref>) for building a predictive model that performs best when using the most fitting &#x003B1;<sub><italic>m</italic></sub> and &#x003B5;<sub><italic>n</italic></sub> parameters. The following exploration techniques are evaluated for finding these parameters: <italic>exhaustive search, direct search</italic>, and <italic>recursive search</italic>.</p>
<list list-type="simple">
<list-item><p>(C.1) The <italic>exhaustive search</italic>, or grid search, systematically evaluates every possible candidate solution within the search space &#x003BA;, i.e., the Cartesian product of each &#x003B1;<sub><italic>m</italic></sub> and &#x003B5;<sub><italic>n</italic></sub> value in existence (<xref ref-type="fig" rid="F1">Figure 1A</xref>). The final candidate solution is the combination that best minimizes the objective function. We applied a coarse grid of size <italic>&#x003BA;</italic> &#x0003D; 15 and compared it against a finer grid of size <italic>&#x003BA;</italic> &#x0003D; 40.</p></list-item>
<list-item><p>(C.2) By <italic>direct search</italic>, we refer to the Generalized direct search (GPS) (Bogani et al., <xref ref-type="bibr" rid="B5">2009</xref>) available in the Matlab&#x00027;s optimization toolbox. It aims at finding a point in the hyperparameter space without knowledge of any gradient. The method begins with a given search window <italic>D</italic><sup>(<italic>i</italic>)</sup> and an initial estimate <inline-formula><mml:math id="M12"><mml:msubsup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>&#x003B1;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> acting as a pivot. The location of this window is centralized over the pivot along with its four orthogonal neighbor points in the Euclidian distance <italic>w</italic><sup>(<italic>i</italic>)</sup>, i.e.,</p>
<p><disp-formula id="E7"><mml:math id="M13"><mml:mtable columnalign='right'><mml:mtr><mml:mtd><mml:msup><mml:mi>D</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mo>&#x0007B;</mml:mo><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>+</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>&#x02212;</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>&#x02212;</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>&#x0007D;</mml:mo><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><xref ref-type="fig" rid="F1">Figure 1B</xref> depicts the mesh and its behavior. At each <italic>i</italic>-th iteration within the mesh, if a neighboring point performs better than the center point, the window reallocates this point as the new pivot. If none of these points yields a better output, then the length of the mesh <italic>w</italic> is reduced, and a new set of neighbor points is adopted. That is,</p>
<p><disp-formula id="E8"><mml:math id="M14"><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo> <mml:mrow><mml:mtable columnalign='left'><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:mtext>if&#x000A0;</mml:mtext><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>&#x02264;</mml:mo><mml:msubsup><mml:mi>&#x003C8;</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>&#x003B1;</mml:mi><mml:mi>m</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x003B5;</mml:mi><mml:mi>n</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:msup><mml:mo>/</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:mtext>if&#x000A0;none&#x000A0;satisfies</mml:mtext><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow> </mml:mrow></mml:math></disp-formula></p>
<p>The cycle repeats until the number of <italic>i</italic> iterations is reached or the algorithm is unable to find any better point.</p></list-item>
<list-item><p>(C.3) The <italic>recursive search</italic> is a modified version of the three-step search block-matching algorithm (Je and Park, <xref ref-type="bibr" rid="B25">2013</xref>) that resembles a combination of the previously mentioned methods; it defines the subset of the hyperparameter space as in (C.1), and converges towards the most fitting solution by recursively reducing the region of feasibility similar to (C.2). In this study, we adapted the algorithm for tuning &#x003B1; and &#x003B5; by dividing these finite sets into two linearly-spaced vectors with <inline-formula><mml:math id="M15"><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> points, recursively through a number of <italic>M</italic> iterations, taking their minimum and maximal values as their lower and upper bounds, i.e.,</p>
<p><disp-formula id="E9"><mml:math id="M16"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003B1;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mtd><mml:mtd><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003B1;</mml:mi></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003B1;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mtext class="textrm" mathvariant="normal">,&#x000A0;and</mml:mtext></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mtd><mml:mtd><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003B5;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mtext class="textrm" mathvariant="normal">,&#x000A0;respectively.</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>Thus, the method updates the hyperparameter space by replacing it with a narrower subspace instead of shrinking the search window (<xref ref-type="fig" rid="F1">Figure 1C</xref>). At each <italic>M</italic>-th iteration, the search window, with initial size <inline-formula><mml:math id="M17"><mml:msub><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mtext>&#x000A0;</mml:mtext></mml:mrow><mml:mrow><mml:mstyle class="mbox"><mml:mtext>2</mml:mtext></mml:mstyle></mml:mrow></mml:msup></mml:math></inline-formula>, finds the center of the subspace such that</p>
<p><disp-formula id="E10"><mml:math id="M18"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>&#x02264;</mml:mo><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>&#x02264;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where &#x003C8;<sup>(<italic>i</italic>)</sup> is the central point at the <italic>i</italic>-th grid and the optimal solution from the previous (or initial) feasible region <inline-formula><mml:math id="M19"><mml:msubsup><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>&#x02264;</mml:mo><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mo>&#x02264;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mi>&#x003C8;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula>. A search window of size <italic>w</italic><sub><italic>i</italic>&#x0002B;1</sub> is centered at the location of &#x003C8;<sup>(<italic>i</italic>)</sup>, i.e., &#x003B2;<sub><italic>i</italic></sub> &#x0003D; <italic>s&#x003B2;</italic><sub><italic>i</italic>&#x02212;1</sub> with <italic>s</italic>&#x0003E;0,</p>
<p><disp-formula id="E11"><mml:math id="M20"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>/</mml:mo><mml:mi>K</mml:mi></mml:mrow></mml:msup><mml:mtext>&#x000A0;</mml:mtext><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>d</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mfrac><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:mfrac></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where <italic>u</italic><sub>0</sub> and <italic>l</italic><sub>0</sub> are the upper and lower limits from the initial hyperparameter space, respectively, and <italic>K</italic> equals a user-defined reference lattice size for a single non-recursive search. We evaluate and compare this method by setting <inline-formula><mml:math id="M21"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003BA;</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mn>3</mml:mn><mml:mo>,</mml:mo><mml:mn>5</mml:mn><mml:mo>,</mml:mo><mml:mn>7</mml:mn><mml:mo>,</mml:mo><mml:mn>9</mml:mn></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula>, with <italic>M</italic> &#x0003D; {1, &#x000A0;&#x022EF;, 3} in each case. With this set of equations, the workload of an exhaustive search is reduced to <inline-formula><mml:math id="M22"><mml:mi>O</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi><mml:msup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M23"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:math></inline-formula> is a smaller grid size, i.e, <inline-formula><mml:math id="M24"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>&#x0003C;</mml:mo><mml:mfrac><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:msqrt><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msqrt></mml:mrow></mml:mfrac></mml:math></inline-formula>.</p></list-item>
</list></list-item>
</list>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Schematic illustration of the Hyperparameter Optimization (HPO) techniques applied; <bold>(A)</bold> the exhaustive search method evaluates the entire hyperparameter space, case by case; <bold>(B)</bold> The direct search method employs a pattern that shrinks in size towards the direction in which the objective function decays; and <bold>(C)</bold> the recursive search divides the space into subspaces based on the size of the search lattice, shrinking and repositioning the lattice towards the most fitting solution in a recursive manner.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0001.tif"/>
</fig>
<p>Additionally, we estimated the limits for the lattice-induced deviation of &#x00398;<sub>max</sub> and &#x00393;<sub>max</sub> via a second-order Taylor&#x00027;s polynomial approximation (Sauer, <xref ref-type="bibr" rid="B49">2018</xref>), With this strategy, the deviation is obtained with respect to a hypothetical lattice with twice the resolution compared to the actual one.</p></sec>
<sec>
<title>2.3 Reciprocity principle</title>
<p>The Reciprocity Principle (Fernandez-Corazza et al., <xref ref-type="bibr" rid="B14">2020</xref>) is an explicit approach for obtaining maximum current density, &#x00393;<sub>max</sub>, based on the reciprocity of the electromagnetic field propagation. Specifically, the maximum stimulation amplitude is obtained with a two-patch tES electrode montage corresponding to the two greatest EEG electrode voltages generated by a desired target current in the brain. The principle considers the connection between the forward and reverse propagation of the electromagnetic field, which is predicted by the lead field matrix.</p>
<sec>
<title>2.3.1 Formulation of the reciprocity principle for a tES lead field matrix</title>
<p>While gradient propagation in general electromagnetism is not always reciprocal, it can be shown that a bipolar montage in tES corresponds to the greatest absolute back-projected currents in the vector <inline-formula><mml:math id="M25"><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>L</mml:mi></mml:mstyle><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>T</mml:mi></mml:mstyle></mml:msup><mml:msub><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>x</mml:mi></mml:mstyle><mml:mn>1</mml:mn></mml:msub></mml:math></inline-formula>. The reciprocity principle can be formulated, for a restricted system, as</p>
<disp-formula id="E12"><label>(3)</label><mml:math id="M26"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>R</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <bold>R</bold><sub><italic>K</italic></sub> denotes a real <italic>N</italic> &#x000D7; <italic>K</italic> (<italic>K</italic> &#x02264; <italic>N</italic>) restriction matrix whose nonzero entries <italic>r</italic><sub><italic>i</italic><sub><italic>j</italic></sub>, <italic>j</italic></sub> &#x0003D; 1 correspond to an ordered subset of electrodes</p>
<disp-formula id="E13"><mml:math id="M27"><mml:mtable columnalign="right"><mml:mtr><mml:mtd><mml:mrow><mml:mi mathvariant="script">S</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mo>&#x022EF;</mml:mo><mml:mspace width="0.3em" class="thinspace"/><mml:mo>,</mml:mo><mml:mi>K</mml:mi><mml:mo>,</mml:mo><mml:mtext>with</mml:mtext><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:mo>&#x02265;</mml:mo><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:mo>&#x02265;</mml:mo><mml:mo>&#x022EF;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x02265;</mml:mo><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The reciprocity principle follows by writing the intensity as <inline-formula><mml:math id="M28"><mml:mo>&#x00393;</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>y</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> with <inline-formula><mml:math id="M29"><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>R</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="M30"><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>R</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>/</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>R</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>L</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> describing that &#x00393; can be interpreted as a projection of <bold>y</bold><sub><italic>K</italic></sub> on &#x003C3;<sub><italic>K</italic></sub><bold>s</bold><sub><italic>K</italic></sub>. Thus, the maximum of &#x00393; is achieved when <bold>y</bold><sub><italic>K</italic></sub> is parallel to <bold>s</bold><sub><italic>K</italic></sub>. The maximizer is then up-scaled to match the applied current dose &#x003BC;, i.e., <bold>y</bold><sub><italic>K</italic></sub> &#x0003D; &#x003BC;<bold>s</bold><sub><italic>K</italic></sub>. Therefore, the corresponding maximum intensity is <inline-formula><mml:math id="M31"><mml:mo>&#x00393;</mml:mo><mml:mo>=</mml:mo><mml:mi>&#x003BC;</mml:mi><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>. The optimal maximizer montage is</p>
<disp-formula id="E14"><mml:math id="M32"><mml:mrow><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">max</mml:mo></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munder></mml:mstyle><mml:mi>&#x003BC;</mml:mi><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>where, by definition, ||<bold>s</bold><sub><italic>K</italic></sub>||<sub>1</sub> &#x0003D; 1 for any <italic>K</italic> &#x0003D; 1, 2, &#x02026;, <italic>N</italic>, and the entries of <bold>s</bold><sub><italic>K</italic></sub> are ordered in descending order with respect to their absolute value. Assuming that these entries are given by &#x003BB;<sub>1</sub>&#x02265;&#x003BB;<sub>2</sub>&#x02265;&#x022EF;&#x02265;&#x003BB;<sub><italic>K</italic></sub>&#x02265;0, respectively, it holds that <inline-formula><mml:math id="M33"><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="M34"><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mo>||</mml:mo><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, and</p>
<disp-formula id="E15"><mml:math id="M35"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>2</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow><mml:mo>&#x02265;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mn>2</mml:mn><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>&#x02265;</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mi>K</mml:mi><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>The equality follows a straightforward substitution, the first inequality is based on</p>
<disp-formula id="E16"><mml:math id="M36"><mml:mrow><mml:mfrac><mml:mrow><mml:mn>2</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x02265;</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>and the second one is obtained as <inline-formula><mml:math id="M37"><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x02264;</mml:mo><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula>. Following from the discriminant, together with the Arithmetic Mean&#x02013;Quadratic Mean inequality</p>
<disp-formula id="E17"><mml:math id="M38"><mml:mrow><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x02265;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>K</mml:mi></mml:mrow></mml:mfrac><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>The second factor in <xref ref-type="disp-formula" rid="E12">Equation (3)</xref> does not have roots if</p>
<disp-formula id="E18"><mml:math id="M39"><mml:mtable columnalign="left"><mml:mtr><mml:mtd><mml:mi>K</mml:mi><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msubsup><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x02265;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="true">(</mml:mo><mml:mrow><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="true">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x02265;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>i</mml:mi><mml:mi>.</mml:mi><mml:mi>e</mml:mi><mml:mi>.</mml:mi><mml:mi>,</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle="true"><mml:munderover accentunder="false" accent="false"><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:munderover></mml:mstyle><mml:msub><mml:mrow><mml:mi>&#x003BB;</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x02265;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>This assumption is valid since a montage with only two active channels cannot contain more than two halves of the total dose (otherwise, the sum of said currents will be less than zero). Hence, <inline-formula><mml:math id="M40"><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>s</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>K</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msubsup><mml:mo>||</mml:mo><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x02265;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> for any montage, and the maximum of &#x00393; is obtained with the bipolar pattern that corresponds to the first two entries <italic>i</italic><sub>1</sub> and <italic>i</italic><sub>2</sub> in the set <inline-formula><mml:math id="M41"><mml:mrow><mml:mi mathvariant="script">S</mml:mi></mml:mrow></mml:math></inline-formula>.</p></sec></sec>
<sec>
<title>2.4 Mathematical optimization software</title>
<p>We solve the optimization task (<xref ref-type="disp-formula" rid="E3">Equation 2</xref>) using the Interior-Point (IP), the Primal-Simplex (PS), and the Dual-Simplex (DS) methods. The class of the IP methods is sub-divided into the primal-dual algorithms (predictor-corrector) (Fiacco and McCormick, <xref ref-type="bibr" rid="B16">1964</xref>; Mehrotra, <xref ref-type="bibr" rid="B34">1992</xref>) and the barrier methods, which determine the feasible set via a barrier function. While IP methods utilize Newton&#x00027;s method to operate in the interior of a feasible set (Boyd and Vandenberghe, <xref ref-type="bibr" rid="B6">2004</xref>), simplex methods seek solutions by considering the feasible set as a convex polytope and moving along its edges. While this strategy uses less memory than the interior-point strategy, it has lower predictability for large-problem convergence.</p>
<p>The concepts of primal- and dual-simplex refer to the formulation of the linear programming problem; by presenting the entries of the current pattern <bold>y</bold> as differences of non-negative variables (<italic>y</italic><sub><italic>i</italic></sub> &#x0003D; <italic>s</italic><sub><italic>i</italic></sub>&#x02212;<italic>p</italic><sub><italic>i</italic></sub>, <italic>s</italic><sub><italic>i</italic></sub>, <italic>p</italic><sub><italic>i</italic></sub>&#x02265;0) and the equality constraint via two inequalities (condition <italic>a</italic> &#x0003D; 0 is satisfied, <italic>a</italic> &#x02264; 0 and &#x02212;<italic>a</italic> &#x02264; 0), the task can be brought back to the following standard primal formulation:</p>
<disp-formula id="E19"><mml:math id="M42"><mml:mrow><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">max</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle></mml:mrow></mml:munder></mml:mstyle><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>c</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle><mml:mtext>&#x000A0;subject to&#x000A0;</mml:mtext><mml:mstyle mathvariant="bold"><mml:mtext>A</mml:mtext></mml:mstyle><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle><mml:mo>&#x02264;</mml:mo><mml:mstyle mathvariant="bold"><mml:mtext>b</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle mathvariant='bold-italic'><mml:mi>z</mml:mi></mml:mstyle><mml:mo>&#x02265;</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>whose dual is given by</p>
<disp-formula id="E20"><mml:math id="M43"><mml:mrow><mml:mstyle displaystyle="true"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">min</mml:mo></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle></mml:mrow><mml:mo class="qopname">^</mml:mo></mml:mover></mml:mrow></mml:munder></mml:mstyle><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>b</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle></mml:mrow><mml:mo class="qopname">^</mml:mo></mml:mover><mml:mtext>&#x000A0;subject to&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>A</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle></mml:mrow><mml:mo class="qopname">^</mml:mo></mml:mover><mml:mo>&#x02265;</mml:mo><mml:mstyle mathvariant="bold"><mml:mtext>c</mml:mtext></mml:mstyle><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>z</mml:mtext></mml:mstyle></mml:mrow><mml:mo class="qopname">^</mml:mo></mml:mover><mml:mo>&#x02265;</mml:mo><mml:mn>0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>The IP algorithms applied in this study include Gurobi&#x00027;s parallel barrier method and the primal-dual routines from Matlab, MOSEK, SDPT3, and SeDuMi. The simplex methods include MOSEK&#x00027;s PS and DS, Gurobi&#x00027;s PS and DS, and Matlab&#x00027;s DS algorithm. Matlab&#x00027;s Optimization Toolbox has two IP solvers, of which we apply the interior-point legacy (IPL), whose origin is in the Linear-Programming Interior Point Solvers (LIPSOL) package (Zhang, <xref ref-type="bibr" rid="B61">1999</xref>). All the solvers, their types, and their abbreviations used in this study are described in <xref ref-type="table" rid="T1">Table 1</xref>.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Description of the Linear Programming (LP) solvers applied for solving the L1L1 optimization problem through the Interior-Point (IP), Primal-Simplex (PS), and Dual-Simplex (DS) algorithms.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919497;color:#ffffff">
<th valign="top" align="left"><bold>Solver</bold></th>
<th valign="top" align="left"><bold>Interface</bold></th>
<th valign="top" align="left"><bold>Method</bold></th>
<th valign="top" align="left"><bold>Code</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Matlab 2020b</td>
<td valign="top" align="left">Optimization toolbox</td>
<td valign="top" align="left">Interior-Point (Primal-Dual)</td>
<td valign="top" align="left">Matlab IP</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Primal-Simplex</td>
<td valign="top" align="left">Matlab PS</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Dual-Simplex</td>
<td valign="top" align="left">Matlab DS</td>
</tr> <tr>
<td valign="top" align="left">MOSEK 9.0</td>
<td valign="top" align="left">MOSEK toolbox</td>
<td valign="top" align="left">Interior-Point (Primal-Dual)</td>
<td valign="top" align="left">MOSEK IP</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Primal-Simplex</td>
<td valign="top" align="left">MOSEK PS</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Dual-Simplex</td>
<td valign="top" align="left">MOSEK DS</td>
</tr> <tr>
<td valign="top" align="left">Gurobi Optimizer</td>
<td valign="top" align="left">Gurobi toolbox</td>
<td valign="top" align="left">Interior-Point (Barrier Method)</td>
<td valign="top" align="left">Gurobi IP</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Primal-Simplex</td>
<td valign="top" align="left">Gurobi PS</td>
</tr>
<tr>
<td/>
<td/>
<td valign="top" align="left">Dual-Simplex</td>
<td valign="top" align="left">Gurobi DS</td>
</tr> <tr>
<td valign="top" align="left">SDPT3 4.0</td>
<td valign="top" align="left">CVX 2.1</td>
<td valign="top" align="left">Interior-Point (Primal-Dual)</td>
<td valign="top" align="left">SDPT3 IP</td>
</tr>
<tr>
<td valign="top" align="left">SeDuMi 1.3.5</td>
<td valign="top" align="left">CVX 2.1</td>
<td valign="top" align="left">Interior-Point (Primal-Dual)</td>
<td valign="top" align="left">SeDuMi IP</td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>All solvers were embedded with Matlab&#x00027;s version R2020b and called by the optimizer of the Zeffiro Interface (ZI) toolbox. Matlab, MOSEK, CVX&#x00027;s SDPT3, and CVX&#x00027;s SeDuMi apply primal-dual routines, and Gurobi uses the barrier method.</p>
</table-wrap-foot>
</table-wrap></sec>
<sec>
<title>2.5 Numerical domain and computing platform</title>
<p>As the domain of the numerical simulations, we applied a realistic tetrahedral 1.0 mm FE mesh based on an open T1-weighted Magnetic Resonance Imaging (MRI) dataset<xref ref-type="fn" rid="fn0001"><sup>1</sup></xref>. Through FreeSurfer Software Suite<xref ref-type="fn" rid="fn0002"><sup>2</sup></xref>, we segmented the data to find the complex surface boundaries between different tissue compartments, including the skin, skull, cerebrospinal fluid (CSF), gray and white matter, and subcortical structures such as brain stem, thalamus, amygdala, and ventricles (Fischl, <xref ref-type="bibr" rid="B17">2012</xref>). Their conductivity values, which influence the accuracy of the forward solution (Montes-Restrepo et al., <xref ref-type="bibr" rid="B35">2014</xref>), were set according to (Dannhauer et al., <xref ref-type="bibr" rid="B9">2011</xref>). We discretized the volumetric current density to solve the inverse problem using 563 spatial nodes evenly distributed in the gray and white matter compartments of the cerebrum and cerebellum with approximately 1.3 cm (centimeters) distance between two neighboring nodes, associating each node with three divergence-free Cartesian field components.</p>
<p>Through dipole modeling (Bauer et al., <xref ref-type="bibr" rid="B2">2015</xref>; Medani et al., <xref ref-type="bibr" rid="B33">2015</xref>; Pursiainen et al., <xref ref-type="bibr" rid="B44">2016</xref>), we define the region of interests from which the multi-channel tES montage should be derived. We selected the primary somatosensory cortex in the postcentral gyrus (<xref ref-type="fig" rid="F2">Figure 2A</xref>), the primary auditory cortex of the posterior superior temporal gyrus (<xref ref-type="fig" rid="F2">Figure 2B</xref>), and the primary visual cortex in the occipital lobe (<xref ref-type="fig" rid="F2">Figure 2C</xref>) as the target areas. Each dipole is normally oriented with respect to the surface of the gray matter to satisfy the normal constraint of brain activity in the cerebral cortex (Creutzfeldt et al., <xref ref-type="bibr" rid="B8">1962</xref>). Each L1L1 method-based current pattern obtained represents an approximative solution to the optimization problem (<xref ref-type="disp-formula" rid="E3">Equation 2</xref>) corresponding to one of the aforementioned areas.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p><bold>Top row:</bold> 3D view of the head model coupled with a 128-channel electrode array (blue dots) following a 10-10 EEG hardware configuration. A synthetic dipole, (magenta spherical arrow), which simulates a current distribution, is placed at the <bold>(A)</bold> primary somatosensory cortex in the postcentral gyrus, <bold>(B)</bold> primary auditory cortex in posterior superior temporal gyrus, and <bold>(C)</bold> primary visual cortex in the occipital lobe, respectively. <bold>Bottom row:</bold> 2D plane view of the head model displaying the electric field distribution generated by an optimal tES montage following the reciprocity principle which maximizes the focused volumetric current density. The direction of the injection current pattern generated by the montage matches the dipole&#x00027;s orientation. The anodal channels (red spheres) are found by the posterior, while the cathodal channels (blue spheres) by the parietal or frontal sections. The empty circles indicate inactive channels. The volumetric current density is given in Amperes per square meter (A/m<sup>2</sup>).</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0002.tif"/>
</fig>
<p>We performed the numerical simulations using a Dell 5820 workstation with a 10-core Intel Core i9-10900X processor and 256 GB of RAM. The L1L1 solver was implemented in Matlab-based Zeffiro Interface toolbox<xref ref-type="fn" rid="fn0003"><sup>3</sup></xref> (He et al., <xref ref-type="bibr" rid="B24">2019</xref>) which builds a high-resolution finite element (FE) mesh and generates a tES lead field matrix (Galaz Prieto et al., <xref ref-type="bibr" rid="B19">2022</xref>) for a given surface-based head segmentation incorporating the Complete Electrode Model&#x00027;s (CEM) boundary conditions (Pursiainen et al., <xref ref-type="bibr" rid="B43">2012</xref>, <xref ref-type="bibr" rid="B42">2017</xref>).</p></sec></sec>
<sec sec-type="results" id="s3">
<title>3 Results</title>
<p>The exhaustive search proved to be a reliable method for experimental benchmarking when the required tES montage requires careful design for clinical applications. By presenting the exhaustive search results in the form of a heatmap with a coarse grid of <italic>&#x003BA;</italic> &#x0003D; 15 (<xref ref-type="fig" rid="F3">Figure 3A</xref>), we can pinpoint the (&#x003B1;, &#x003B5;) region where the focused current amplitude reaches its maximum. Despite a significantly increased number of evaluations, with a finer grid of <italic>&#x003BA;</italic> &#x0003D; 40 (<xref ref-type="fig" rid="F3">Figure 3B</xref>), we can further determine a more detailed optimal area. This area corresponds to the Cartesian product of &#x003B1;<sub><italic>m</italic></sub> ranging from &#x02212;71 to &#x02212;50 dB and &#x003B5;<sub><italic>n</italic></sub> from 0 to &#x02212;98 dB. In this context, a high current injection montage, denoted by &#x00393;<sub>max</sub> (yellow star), is positioned at the peak of the amplitude, while focality-based montages, &#x00398;<sub>max</sub> (purple star), adhere closely. However, these focality-based montages are slightly deviated due to the influence of the nuisance field, despite being relatively close, as determined by a threshold condition corresponding to 75% of the maximum amplitude achievable with the two-patch bipolar tES montage. In comparison between these grid resolutions, one can observe slight enhancements in amplitude, increased optimization accuracy, and improved numerical stability in the latter case. These aspects are far more noticeable with Dual- and Primal-Simplex methods than with the Interior-Point, which yields overall smoother results with fewer drastic deviations.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>Performance comparison of the exhaustive search for solving the L1-norm fitted and penalized (L1L1) optimization method with current density &#x00393; as the objective function. The coarse <bold>(A)</bold> search space <italic>&#x003BA;</italic> &#x0003D; 15 produces 225 evaluations, and the finer <bold>(B)</bold> search space <italic>&#x003BA;</italic> &#x0003D; 40 with 1600 evaluations, both using regularization parameter <italic>&#x003B1;</italic> (x-axis) and the nuisance threshold level <italic>&#x003B5;</italic> (y-axis). The candidate solutions with respect to current density &#x00393;<sub>max</sub> and focality &#x00398;<sub>max</sub> are marked with a yellow and purple star, respectively. The maximizers are generally found around from area in which &#x003B1; is between &#x02212;71 to &#x02212;50 dB dB (decibels) and <italic>&#x003B5;</italic> from 0 to &#x02212;98 dB. Notice that in the case of using the Gurobi package, with a Simplex algorithm, both optimal candidate solutions for either a stimulus focality or a current density both optimal solutions are taking the same (<italic>&#x003B1;</italic>, <italic>&#x003B5;</italic>) tuning parameters due to the sharp steepness from the coarse search space. The volumetric current density on every chart is given in Amperes per square meter (A/m<sup>2</sup>).</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0003.tif"/>
</fig>
<p><xref ref-type="fig" rid="F4">Figure 4</xref> delineates the performance nuances among optimization strategies. The whiskers along the stems signify a second-order Taylor&#x00027;s polynomial estimate, reflecting the maximum deviation within half lattice units distance from the optimizer. The reciprocity principle reference for &#x00393;<sub>max</sub> is represented by a horizontal black dashed line, and the number of non-zero (NNZ) channels required for a tES montage is depicted on the right side of each corresponding stem. The solvers are sorted in ascending order based on their performance, with the exhaustive search <italic>&#x003BA;</italic> &#x0003D; 40 grid (blue) serving as the point of reference. Both the direct and recursive search techniques adeptly uncover optimal (&#x003B1;, &#x003B5;) solutions for &#x00398;<sub>max</sub> and &#x00393;<sub>max</sub>, yielding a substantial reduction in total computing time compared to the specified hyperparameter space.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Stem plots results from the two-stage metaheuristic lattice search using exhaustive search with coarse grid of <italic>&#x003BA;</italic> &#x0003D; 15 (red) and fine grid of <italic>&#x003BA;</italic> &#x0003D; 40 (blue), and a recursive one with <inline-formula><mml:math id="M44"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mn>3</mml:mn><mml:mo>,</mml:mo><mml:mn>5</mml:mn><mml:mo>,</mml:mo><mml:mn>7</mml:mn><mml:mo>,</mml:mo><mml:mn>9</mml:mn><mml:mo>}</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> (cyan, magenta, green, and black, respectively) considering the somatosensory (Som.), auditory (Aud.) and visual (Vis.) regions of interest. The whiskers in the stem plot indicate a second-order Taylor&#x00027;s polynomial estimate for the maximum deviation within a half-lattice unit distance from the optimizer. The intense current injection (&#x00393;<sub>max</sub>) calculated using the reciprocity principle is shown with a horizontal black dashed line as a reference. The number of non-zero (NNZ) channels in the Transcranial Electrical Stimulation (tES) montage is shown on the right side next to the corresponding stem. The solvers are sorted in descending order from left to right based on their performance with <italic>&#x003BA;</italic> &#x0003D; 40.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0004.tif"/>
</fig>
<p>Due to the heuristic nature of the direct search, and to assert the efficacy of the said technique, we performed a series of trial runs by setting the initial point to the center of the search space. In these trials, the number of objective function evaluations varied, ranging from 25 to 54 trials, with a 33.8 mean among the evaluations (see <xref ref-type="table" rid="T2">Table 2</xref>). While the number of function evaluations was slightly higher, the quality of the results was nearly on par with those obtained with the recursive search with a search window of <inline-formula><mml:math id="M45"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula>. With IP solvers, the search runs were mostly successful, while PS and DS tended to fail to find a feasible optimizer candidate.</p>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>Comparison of stimulation focality &#x00398;<sub>max</sub> and intensity &#x00393;<sub>max</sub> results obtained between exhaustive, direct, and recursive search methods.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919497;color:#ffffff">
<th/>
<th/>
<th/>
<th/>
<th/>
<th valign="top" align="left" colspan="2"><bold>Somatosensory</bold></th>
<th valign="top" align="left" colspan="2"><bold>Auditory</bold></th>
<th valign="top" align="left" colspan="2"><bold>Visual</bold></th>
</tr>
</thead>
<tbody>
<tr style="background-color:#919497;color:#ffffff">
<td valign="top" align="left"><bold>Search</bold></td>
<td valign="top" align="left"><bold>Resolution</bold></td>
<td valign="top" align="left"><bold>Levels</bold></td>
<td valign="top" align="left"><bold>Window</bold></td>
<td valign="top" align="left"><bold>Evaluations</bold></td>
<td valign="top" align="left">&#x00398;<sub>max</sub></td>
<td valign="top" align="left">&#x00393;<sub>max</sub></td>
<td valign="top" align="left">&#x00398;<sub>max</sub></td>
<td valign="top" align="left">&#x00393;<sub>max</sub></td>
<td valign="top" align="left">&#x00398;<sub>max</sub></td>
<td valign="top" align="left">&#x00393;<sub>max</sub></td>
</tr> <tr>
<td valign="top" align="left">Exhaustive</td>
<td valign="top" align="left">Fixed</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">15</td>
<td valign="top" align="left">225</td>
<td valign="top" align="left">2.93</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">6.47</td>
<td valign="top" align="left">0.1486</td>
<td valign="top" align="left">4.98</td>
<td valign="top" align="left">0.1488</td>
</tr> <tr>
<td valign="top" align="left">Exhaustive</td>
<td valign="top" align="left">Fixed</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">40</td>
<td valign="top" align="left">1600</td>
<td valign="top" align="left">3.93</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">7.69</td>
<td valign="top" align="left">0.1725</td>
<td valign="top" align="left">4.98</td>
<td valign="top" align="left">0.1574</td>
</tr> <tr>
<td valign="top" align="left">Direct</td>
<td valign="top" align="left">Adaptive</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">-</td>
<td valign="top" align="left">28-54*</td>
<td valign="top" align="left">3.45</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">7.75</td>
<td valign="top" align="left">0.1725</td>
<td valign="top" align="left">4.99</td>
<td valign="top" align="left">0.1488</td>
</tr> <tr>
<td valign="top" align="left">Recursive</td>
<td valign="top" align="left">Adaptive</td>
<td valign="top" align="left">3</td>
<td valign="top" align="left">3</td>
<td valign="top" align="left">27</td>
<td valign="top" align="left">2.99</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">6.47</td>
<td valign="top" align="left">0.1486</td>
<td valign="top" align="left">5.11</td>
<td valign="top" align="left">0.1514</td>
</tr>
 <tr>
<td/>
<td valign="top" align="left">Adaptive</td>
<td valign="top" align="left">3</td>
<td valign="top" align="left">5</td>
<td valign="top" align="left">75</td>
<td valign="top" align="left">3.45</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">6.92</td>
<td valign="top" align="left">0.1725</td>
<td valign="top" align="left">5.17</td>
<td valign="top" align="left">0.1545</td>
</tr>
 <tr>
<td/>
<td valign="top" align="left">Adaptive</td>
<td valign="top" align="left">3</td>
<td valign="top" align="left">7</td>
<td valign="top" align="left">147</td>
<td valign="top" align="left">3.88</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">7.10</td>
<td valign="top" align="left">0.1725</td>
<td valign="top" align="left">5.17</td>
<td valign="top" align="left">0.1545</td>
</tr>
<tr>
<td/>
<td valign="top" align="left">Adaptive</td>
<td valign="top" align="left">3</td>
<td valign="top" align="left">9</td>
<td valign="top" align="left">243</td>
<td valign="top" align="left">4.02</td>
<td valign="top" align="left">0.1315</td>
<td valign="top" align="left">7.68</td>
<td valign="top" align="left">0.1725</td>
<td valign="top" align="left">3.91</td>
<td valign="top" align="left">0.1545</td>
</tr></tbody>
</table>
<table-wrap-foot>
<p>The behavior of the search space (Resolution), number of resolution levels (Levels), search window size (Window), and the number of objective function evaluations (Evaluation) per optimization run are given. Non-applicable features are marked with the (-) symbol.</p>
<p><sup>*</sup> In direct search, the number of objective function evaluations varied between different optimization runs.</p>
</table-wrap-foot>
</table-wrap>
<p>Due to its relatively fast performance among interior-point methods, we applied MOSEK IP to evaluate topographical maps of stimulus focality &#x00398;<sub>max</sub> (<xref ref-type="fig" rid="F5">Figure 5A</xref>) and current density &#x00393;<sub>max</sub> (<xref ref-type="fig" rid="F5">Figure 5B</xref>) for an exhaustive search <italic>&#x003BA;</italic> &#x0003D; 15 and a recursive search <inline-formula><mml:math id="M46"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula>. Overall, the results of the recursion were close to the outcome of the exhaustive search. Thus, the topographical differences between the different approaches of this study were observed to be minor.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Comparison of the topographical maps for <bold>(A)</bold> maximum focality &#x00398;<sub>max</sub> and <bold>(B)</bold> current density &#x00393;<sub>max</sub> using exhaustive search <italic>&#x003BA;</italic> &#x0003D; 15 (top-row), and recursion with <inline-formula><mml:math id="M47"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula> (bottom-row). The contours show 20, 40, and 75% equicurves with respect to their maximum entry. Maps have been computed using the MOSEK with the Interior-point method.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0005.tif"/>
</fig>
<p>By limiting the search space only to a narrower subspace is a simple countermeasure for dealing with the disadvantages of the exhaustive search. With a <italic>&#x003BA;</italic> &#x0003D; 15 grid as a reference, it can take approximately 850 seconds to perform a complete search for the first stage, while the second stage only takes roughly 15% of that time since it uses a limited lead field following from the limited number of active electrodes. As an alternative approach, the direct and recursive search seemed to perform well compared to the number of objective function evaluations made during the search process (<xref ref-type="fig" rid="F6">Figure 6</xref>). In particular, MOSEK turned out to be the superior choice, with MOSEK DS being the fastest one. The computing time for Gurobi IP was close to that of MOSEK IP, and Gurobi DS, PS, and Matlab IPL and DS required approximately three times the time. The slowest-performing SDPT3 and SeDuMi took as much as six times the run time of MOSEK IP. Overall, the simplex methods applied to the L1L1 optimization scheme deliver faster yet less accurate solutions than Interior-Point (IP) for focality-based montages, while minor differences can be found for intensity-based solutions.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Total amount of computing time for finding the most fitting candidate solution through the two-stage metaheuristic lattice search on every optimization solver and method in this study. In order of stem (top-to-bottom): exhaustive search with search space <italic>&#x003BA;</italic> &#x0003D; 15 (red), direct search (cyan), and recursive search with <inline-formula><mml:math id="M48"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula> (blue). Noticeably, the non-commercial solvers from CVX (SDPT3 and SeDuMi) are significantly slower than those produced by Matlab, Gurobi and MOSEK.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-18-1201574-g0006.tif"/>
</fig>
</sec>
<sec sec-type="discussion" id="s4">
<title>4 Discussion</title>
<p>In this study, we analyzed the numerical and computational performance of exhaustive search, direct search, and recursive search techniques to find an optimal stimulation focality &#x00398; and current density &#x00393; for solving the L1L1 optimization problem for non-invasive transcranial electrical stimulation (tES) current injection. This analysis was motivated by our earlier results in (Galaz Prieto et al., <xref ref-type="bibr" rid="B19">2022</xref>) which suggested that the L1L1 method provides a theoretically attractive approach for obtaining a high-gain focal stimulus as compared to complex L2-norm fitting and regularized least squares techniques (Dmochowski et al., <xref ref-type="bibr" rid="B10">2011</xref>; Wagner et al., <xref ref-type="bibr" rid="B56">2016</xref>).</p>
<p>The reciprocity principle, as outlined by Fernandez-Corazza et al. (<xref ref-type="bibr" rid="B14">2020</xref>), served as a reference technique. Its validity was shown for the present tES lead field matrix <bold>L</bold> (see Section 2.3.1). When focusing on a specific target region, the current injection pattern from a two-patch tES montage aligns with the maximum intensity achievable through this principle. Essentially, this involves selecting the two electrodes with the highest absolute back-projected currents. With the absence of nuisance field constraints, the L1L1 solution was observed to agree with the reciprocity principle if the aforementioned algorithmic aspects were handled appropriately.</p>
<p>Decisive aspects for a successful outcome of L1L1 were found to be the choice of the optimization package, algorithm, and search routine, which significantly affect both the performance of the metaheuristic optimization process and output. To enlighten this aspect, we covered the performance of several Interior-Point (IP) (Mehrotra, <xref ref-type="bibr" rid="B34">1992</xref>), Dual-Simplex (DS), and Primal-Simplex (PS) (Boyd and Vandenberghe, <xref ref-type="bibr" rid="B6">2004</xref>) methods from different open-source and commercial optimization toolboxes. We tested the L1L1 method using the commercial solvers of MOSEK Optimization Suite (Release 9) (Mosek, <xref ref-type="bibr" rid="B37">2019</xref>) and Gurobi Optimization (9.5.1) (Gurobi Optimization LLC, <xref ref-type="bibr" rid="B23">2022</xref>), and compared them to the open-source alternatives (Grant and Boyd, <xref ref-type="bibr" rid="B21">2014</xref>) SDPT3 (4.0) (T&#x000FC;t&#x000FC;nc&#x000FC; et al., <xref ref-type="bibr" rid="B55">2003</xref>) and SeDuMi (1.3.5) (Sturm, <xref ref-type="bibr" rid="B52">1999</xref>; Frenk et al., <xref ref-type="bibr" rid="B18">2000</xref>; Polik et al., <xref ref-type="bibr" rid="B41">2007</xref>) as well as Matlab R2020b&#x00027;s (MathWorks) Interior-Point-Legacy (IPL) algorithm, which originates from the open LIPSOL (Zhang, <xref ref-type="bibr" rid="B61">1999</xref>) toolbox. We selected the IPL algorithm since we experienced stagnation with Matlab&#x00027;s main IP algorithm, which did not return any appropriate results.</p>
<p>Based on the results, we consider Gurobi IP to be the preferable choice in both optimization stages, considering &#x00398;<sub>max</sub> and &#x00393;<sub>max</sub> in each tested target region of interest and, as it was also overall the fastest of the IP solvers. While the best-performing solvers show that the L1L1 method is suitable for maximizing focality and intensity, a few did not find the bipolar current pattern that maximizes &#x00393;<sub>max</sub>. Notably, SDTP3 did not find a bipolar pattern at all, verifying our earlier hypothesis (Galaz Prieto et al., <xref ref-type="bibr" rid="B19">2022</xref>) that the performance of L1L1 might be highly solver-based. Part of the discrepancies between the optimization methods can be explained by a different sensitivity with respect to parameter variation or the resolution of the lattice.</p>
<p>From a computational complexity standpoint, the exhaustive search method can be applied for benchmarking purposes. In contrast, a recursive search proves an advantageous alternative and is competitively on par with the direct search technique, each one applied in this study. This equivalence arises from both methods converging toward the most suitable regularization parameter &#x003B1; and nuisance threshold &#x003B5; values in a comparably controlled manner. Notably, the computational complexity of recursive search remains consistent across various optimization runs, in contrast to the variability observed in the direct search. Results comparable to those obtained through exhaustive search can be attained with a reduced-resolution search window of, say, size <inline-formula><mml:math id="M49"><mml:mover accent="true"><mml:mrow><mml:mi>K</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula>, representing a substantial acceleration in comparison to exhaustive search. Furthermore, the recursive approach demonstrates both numerical stability and convergence towards exhaustive search results, both at individual data points and in the overall topographical context, as the probing lattice size increases.</p>
<sec>
<title>4.1 Limitations and future work</title>
<p>Unlike earlier linear programming (LP) formulations for tES optimization problems, our use of the metaheuristic process enabled us to explore parameters freely, without imposing rigid <italic>a priori</italic> constraints on the nuisance field, as observed in Wagner et al. (<xref ref-type="bibr" rid="B56">2016</xref>). In L1L1, we optimally set the nuisance field through hyperparameter optimization embedded in a two-stage metaheuristic lattice search procedure. Interpreted as an enhancement for localizing both pattern and volumetric density of the stimulus, L1-norm fitting and regularization outperform the least-squares methodology introduced in Dmochowski et al. (<xref ref-type="bibr" rid="B10">2011</xref>, <xref ref-type="bibr" rid="B11">2017</xref>). However, this improvement comes at a greater computational cost, prompting our in-depth investigation into various algorithmic aspects of metaheuristic optimization in this study. Our present findings underscore the critical role of computational considerations when integrating hyperparameters and metacriteria into the tES optimization problem, aspects overlooked in the studies mentioned earlier.</p>
<p>Our results concerning L1L1 are limited to numerically simulated tES only, meaning that neither the performance of the method in other modalities than tES nor the effects of uncertainty causing inter-subject variability (Laakso et al., <xref ref-type="bibr" rid="B30">2015</xref>) have not been fully covered yet. Those might include, for example, any discrepancies between the estimated and actual values of electrical conductivity, such as skull conductivity (Schmidt et al., <xref ref-type="bibr" rid="B50">2015</xref>), strategy to specify a montage (Kaufmann et al., <xref ref-type="bibr" rid="B26">2021</xref>), as well as uncertainty about the targeted region in the brain, e.g., a possible spread of an epileptic focus (Simula et al., <xref ref-type="bibr" rid="B51">2022</xref>). While the expected level of uncertainty can be controlled via the range of the hyperparameter &#x003B5;, a future study on its effect will obviously need to be conducted.</p>
<p>Of the applied liner programming methods, interior-point is an overall preferable option over the simplex methods, which can be considered beneficial characteristic when hardware performance is limited, e.g., for a potential Field-Programmable Gate Array (FPGA) implementation (Bayliss et al., <xref ref-type="bibr" rid="B3">2006</xref>; Gensheimer et al., <xref ref-type="bibr" rid="B20">2014</xref>). Another comparative method, the Alternating Direction Method of Multipliers (ADMM) (Lin et al., <xref ref-type="bibr" rid="B31">2021</xref>), was not included in this investigation as achieving an appropriate convergence seemed more difficult due to its dependence on a step-length parameter. While the current results enlighten how the different algorithms would perform with different nuisance threshold levels, an independent study would be needed to determine the optimal level given the mathematical uncertainty.</p>
<p>Possible future work directions can be to open up the function of L1L1 on a broader scale, this include applying it for deep brain stimulation (DBS), where the electrical stimulus is not transcranial. Likewise, an advanced optimization technique is needed to target subcortical nuclei of the brain; for instance, in the recent study (Anderson et al., <xref ref-type="bibr" rid="B1">2018</xref>), where the Interior-Point algorithm has been applied. Yet another interesting direction is to consider <italic>a priori</italic> information for the design and application of the L1L1 algorithm, for example, an epileptic focus based on non-invasive measurements such as video-EEG of epileptic activity applied to determine approximate stimulation locations. Finally, the mathematical implications of this study can be further enriched by incorporating transcranial direct current stimulation and functional magnetic resonance imaging (tDCS-fMRI) (Esmaeilpour et al., <xref ref-type="bibr" rid="B12">2020</xref>). By utilizing tDCS-fMRI data sets to explore real-time neural changes caused by electrical stimulation&#x02013;such as in the studies by Callan et al. (<xref ref-type="bibr" rid="B7">2016</xref>) for investigating resting state networks linked to visual stimuli, or in the research conducted by Mark et al. (<xref ref-type="bibr" rid="B32">2023</xref>) for monitoring brain activity of pilots undergoing aviation training&#x02013;further enriches the necessity of an effective inverse problem study equipped with optimization methods for simulating and understanding the signal-to-noise (SNR) impacts with a level of mathematical uncertainty, as some of these deficiencies were mentioned on their study limitations.</p></sec></sec>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.</p></sec>
<sec sec-type="author-contributions" id="s6">
<title>Author contributions</title>
<p>FG: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Visualization, Writing&#x02014;original draft. MS: Formal analysis, Project administration, Supervision, Validation, Software, Visualization, Writing&#x02014;original draft, Writing&#x02014;review &#x00026; editing. SP: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing&#x02014;review &#x00026; editing.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s7">
<title>Funding</title>
<p>FG, MS, and SP were supported by the Research Council of Finland through the Center of Excellence in Inverse Modelling and Imaging 2018&#x02013;2025 (decision 353089), the researcher exchange (DAAD) project &#x0201C;Non-invasively reconstructing and inhibiting activity in focal epilepsy&#x0201D; (decision 354976), the ERA PerEpi project (decision 344712), and Flagship of Advanced Mathematics for Sensing, Imaging and Modelling (decision 359185).</p>
</sec>
<ack><p>The authors would like to thank Prof. Dr. rer. nat. Carsten Wolters, researchers and clinicians from the Institute for Biomagnetism and Biosignalanalysis (IBB), and the PerEpi consortium for their continuous support, discussions, and feedback regarding non-invasive brain stimulation topics, regression analysis, and the seminars prepared during the elaboration of this study.</p>
</ack>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s8">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<fn-group>
<fn id="fn0001"><p><sup>1</sup><ext-link ext-link-type="uri" xlink:href="https://brain-development.org/ixi-dataset/">https://brain-development.org/ixi-dataset/</ext-link></p></fn>
<fn id="fn0002"><p><sup>2</sup><ext-link ext-link-type="uri" xlink:href="https://surfer.nmr.mgh.harvard.edu/">https://surfer.nmr.mgh.harvard.edu/</ext-link></p></fn>
<fn id="fn0003"><p><sup>3</sup><ext-link ext-link-type="uri" xlink:href="https://github.com/sampsapursiainen/zeffiro_interface">https://github.com/sampsapursiainen/zeffiro_interface</ext-link></p></fn>
</fn-group>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Anderson</surname> <given-names>D. N.</given-names></name> <name><surname>Osting</surname> <given-names>B.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>Dorval</surname> <given-names>A. D.</given-names></name> <name><surname>Butson</surname> <given-names>C. R.</given-names></name></person-group> (<year>2018</year>). <article-title>Optimized programming algorithm for cylindrical and directional deep brain stimulation electrodes</article-title>. <source>J. Neural Eng</source>. <volume>15</volume>, <fpage>026005</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2552/aaa14b</pub-id><pub-id pub-id-type="pmid">29235446</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bauer</surname> <given-names>M.</given-names></name> <name><surname>Pursiainen</surname> <given-names>S.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>K&#x000F6;stler</surname> <given-names>H.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2015</year>). <article-title>Comparison study for Whitney (Raviart-Thomas) type source models in finite element method based EEG forward modeling</article-title>. <source>IEEE Trans. Biomed. Eng</source>. <volume>62</volume>, <fpage>2648</fpage>&#x02013;<lpage>2656</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2015.2439282</pub-id><pub-id pub-id-type="pmid">26054057</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Bayliss</surname> <given-names>S.</given-names></name> <name><surname>Constantinides</surname> <given-names>G. A.</given-names></name> <name><surname>Luk</surname> <given-names>W.</given-names></name> <etal/></person-group>. (<year>2006</year>). <article-title>&#x0201C;An FPGA implementation of the simplex algorithm,&#x0201D;</article-title> in <source>2006 IEEE International Conference on Field Programmable Technology</source> (<publisher-loc>Bangkok</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>49</fpage>&#x02013;<lpage>56</lpage>.</citation>
</ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bianchi</surname> <given-names>L.</given-names></name> <name><surname>Dorigo</surname> <given-names>M.</given-names></name> <name><surname>Gambardella</surname> <given-names>L. M.</given-names></name> <name><surname>Gutjahr</surname> <given-names>W. J.</given-names></name></person-group> (<year>2009</year>). <article-title>A survey on metaheuristics for stochastic combinatorial optimization</article-title>. <source>Nat. Comput</source>. <volume>8</volume>, <fpage>239</fpage>&#x02013;<lpage>287</lpage>. <pub-id pub-id-type="doi">10.1007/s11047-008-9098-4</pub-id></citation>
</ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bogani</surname> <given-names>C.</given-names></name> <name><surname>Gasparo</surname> <given-names>M.</given-names></name> <name><surname>Papini</surname> <given-names>A.</given-names></name></person-group> (<year>2009</year>). <article-title>Generalized pattern search methods for a class of nonsmooth optimization problems with structure</article-title>. <source>J. Comput. Appl. Math</source>. <volume>229</volume>, <fpage>283</fpage>&#x02013;<lpage>293</lpage>. <pub-id pub-id-type="doi">10.1016/j.cam.2008.10.047</pub-id></citation>
</ref>
<ref id="B6">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Boyd</surname> <given-names>S.</given-names></name> <name><surname>Vandenberghe</surname> <given-names>L.</given-names></name></person-group> (<year>2004</year>). <source>Convex Optimization</source>. <publisher-loc>Cambridge</publisher-loc>: <publisher-name>Cambridge University Press</publisher-name>.</citation>
</ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Callan</surname> <given-names>D. E.</given-names></name> <name><surname>Falcone</surname> <given-names>B.</given-names></name> <name><surname>Wada</surname> <given-names>A.</given-names></name> <name><surname>Parasuraman</surname> <given-names>R.</given-names></name></person-group> (<year>2016</year>). <article-title>Simultaneous tdcs-fMRI identifies resting state networks correlated with visual search enhancement</article-title>. <source>Front. Hum. Neurosci</source>. <volume>10</volume>, <fpage>72</fpage>. <pub-id pub-id-type="doi">10.3389/fnhum.2016.00072</pub-id><pub-id pub-id-type="pmid">27014014</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Creutzfeldt</surname> <given-names>O. D.</given-names></name> <name><surname>Fromm</surname> <given-names>G. H.</given-names></name> <name><surname>Kapp</surname> <given-names>H.</given-names></name></person-group> (<year>1962</year>). <article-title>Influence of transcortical dc currents on cortical neuronal activity</article-title>. <source>Exp. Neurol</source>. <volume>5</volume>, <fpage>436</fpage>&#x02013;<lpage>452</lpage>. <pub-id pub-id-type="doi">10.1016/0014-4886(62)90056-0</pub-id><pub-id pub-id-type="pmid">13882165</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dannhauer</surname> <given-names>M.</given-names></name> <name><surname>Lanfer</surname> <given-names>B.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name> <name><surname>Kn&#x000F6;sche</surname> <given-names>T. R.</given-names></name></person-group> (<year>2011</year>). <article-title>Modeling of the human skull in EEG source analysis</article-title>. <source>Hum. Brain Mapp</source>. <volume>32</volume>, <fpage>1383</fpage>&#x02013;<lpage>1399</lpage>. <pub-id pub-id-type="doi">10.1002/hbm.21114</pub-id><pub-id pub-id-type="pmid">20690140</pub-id></citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dmochowski</surname> <given-names>J. P.</given-names></name> <name><surname>Datta</surname> <given-names>A.</given-names></name> <name><surname>Bikson</surname> <given-names>M.</given-names></name> <name><surname>Su</surname> <given-names>Y.</given-names></name> <name><surname>Parra</surname> <given-names>L. C.</given-names></name></person-group> (<year>2011</year>). <article-title>Optimized multi-electrode stimulation increases focality and intensity at target</article-title>. <source>J. Neural Eng</source>. <volume>8</volume>, <fpage>046011</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/8/4/046011</pub-id><pub-id pub-id-type="pmid">21659696</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dmochowski</surname> <given-names>J. P.</given-names></name> <name><surname>Koessler</surname> <given-names>L.</given-names></name> <name><surname>Norcia</surname> <given-names>A. M.</given-names></name> <name><surname>Bikson</surname> <given-names>M.</given-names></name> <name><surname>Parra</surname> <given-names>L. C.</given-names></name></person-group> (<year>2017</year>). <article-title>Optimal use of eeg recordings to target active brain areas with transcranial electrical stimulation</article-title>. <source>Neuroimage</source> <volume>157</volume>, <fpage>69</fpage>&#x02013;<lpage>80</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2017.05.059</pub-id><pub-id pub-id-type="pmid">28578130</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Esmaeilpour</surname> <given-names>Z.</given-names></name> <name><surname>Shereen</surname> <given-names>A. D.</given-names></name> <name><surname>Ghobadi-Azbari</surname> <given-names>P.</given-names></name> <name><surname>Datta</surname> <given-names>A.</given-names></name> <name><surname>Woods</surname> <given-names>A. J.</given-names></name> <name><surname>Ironside</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2020</year>). <article-title>Methodology for tdcs integration with fmri</article-title>. <source>Hum. Brain Mapp</source>. <volume>41</volume>, <fpage>1950</fpage>&#x02013;<lpage>1967</lpage>. <pub-id pub-id-type="doi">10.1002/hbm.24908</pub-id><pub-id pub-id-type="pmid">31872943</pub-id></citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Faria</surname> <given-names>P.</given-names></name> <name><surname>Hallett</surname> <given-names>M.</given-names></name> <name><surname>Miranda</surname> <given-names>P. C.</given-names></name></person-group> (<year>2011</year>). <article-title>A finite element analysis of the effect of electrode area and inter-electrode distance on the spatial distribution of the current density in tdcs</article-title>. <source>J. Neural Eng</source>. <volume>8</volume>, <fpage>066017</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/8/6/066017</pub-id><pub-id pub-id-type="pmid">22086257</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fernandez-Corazza</surname> <given-names>M.</given-names></name> <name><surname>Turovets</surname> <given-names>S.</given-names></name> <name><surname>Muravchik</surname> <given-names>C. H.</given-names></name></person-group> (<year>2020</year>). <article-title>Unification of optimal targeting methods in transcranial electrical stimulation</article-title>. <source>Neuroimage</source> <volume>209</volume>, <fpage>116403</fpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2019.116403</pub-id><pub-id pub-id-type="pmid">31862525</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Feurer</surname> <given-names>M.</given-names></name> <name><surname>Hutter</surname> <given-names>F.</given-names></name></person-group> (<year>2019</year>). <article-title>&#x0201C;Hyperparameter optimization,&#x0201D;</article-title> in <source>Automated Machine Learning</source>. (<publisher-loc>Cham</publisher-loc>: <publisher-name>Springer</publisher-name>), <fpage>3</fpage>&#x02013;<lpage>33</lpage>.</citation>
</ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fiacco</surname> <given-names>A. V.</given-names></name> <name><surname>McCormick</surname> <given-names>G. P.</given-names></name></person-group> (<year>1964</year>). <article-title>The sequential unconstrained minimization technique for nonlinear programing, a primal-dual method</article-title>. <source>Manage. Sci</source>. <volume>10</volume>:<fpage>360</fpage>&#x02013;<lpage>366</lpage>. <pub-id pub-id-type="doi">10.1287/mnsc.10.2.360</pub-id></citation>
</ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Fischl</surname> <given-names>B.</given-names></name></person-group> (<year>2012</year>). <article-title>Freesurfer</article-title>. <source>Neuroimage</source> <volume>62</volume>, <fpage>774</fpage>&#x02013;<lpage>781</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2012.01.021</pub-id></citation>
</ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Frenk</surname> <given-names>H.</given-names></name> <name><surname>Roos</surname> <given-names>K.</given-names></name> <name><surname>Terlaky</surname> <given-names>T.</given-names></name> <name><surname>Zhang</surname> <given-names>S.</given-names></name></person-group> (<year>2000</year>). <article-title>&#x0201C;Central region method,&#x0201D;</article-title> in <source>High Performance Optimization</source>, <fpage>157</fpage>&#x02013;<lpage>194</lpage>.</citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Galaz Prieto</surname> <given-names>F.</given-names></name> <name><surname>Rezaei</surname> <given-names>A.</given-names></name> <name><surname>Samavaki</surname> <given-names>M.</given-names></name> <name><surname>Pursiainen</surname> <given-names>S.</given-names></name></person-group> (<year>2022</year>). <article-title>L1-norm vs. l2-norm fitting in optimizing focal multi-channel tes stimulation: linear and semidefinite programming vs. weighted least squares</article-title>. <source>Comput. Methods Programs Biomed</source>. <volume>226</volume>:<fpage>107084</fpage>. <pub-id pub-id-type="doi">10.1016/j.cmpb.2022.107084</pub-id><pub-id pub-id-type="pmid">36099674</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Gensheimer</surname> <given-names>F.</given-names></name> <name><surname>Ruzika</surname> <given-names>S.</given-names></name> <name><surname>Scholl</surname> <given-names>S.</given-names></name> <name><surname>Wehn</surname> <given-names>N.</given-names></name></person-group> (<year>2014</year>). <article-title>&#x0201C;A simplex algorithm for lp decoding hardware,&#x0201D;</article-title> in <source>2014 IEEE 25th Annual International Symposium on Personal, Indoor, and Mobile Radio Communication (PIMRC)</source> (<publisher-loc>Washington, DC</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>790</fpage>&#x02013;<lpage>794</lpage></citation>
</ref>
<ref id="B21">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Grant</surname> <given-names>M.</given-names></name> <name><surname>Boyd</surname> <given-names>S.</given-names></name></person-group> (<year>2014</year>). <source>CVX: Matlab Software for Disciplined Convex Programming, Version 2.1</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="http://cvxr.com/cvx">http://cvxr.com/cvx</ext-link></citation>
</ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Guler</surname> <given-names>S.</given-names></name> <name><surname>Dannhauer</surname> <given-names>M.</given-names></name> <name><surname>Erem</surname> <given-names>B.</given-names></name> <name><surname>Macleod</surname> <given-names>R.</given-names></name> <name><surname>Tucker</surname> <given-names>D.</given-names></name> <name><surname>Turovets</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2016</year>). <article-title>Optimization of focality and direction in dense electrode array transcranial direct current stimulation (tdcs)</article-title>. <source>J. Neural Eng</source>. <volume>13</volume>, <fpage>036020</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/13/3/036020</pub-id><pub-id pub-id-type="pmid">27152752</pub-id></citation></ref>
<ref id="B23">
<citation citation-type="web"><person-group person-group-type="author"><collab>Gurobi Optimization LLC</collab></person-group> (<year>2022</year>). <source>Gurobi Optimizer Reference Manual</source>. Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.gurobi.com">https://www.gurobi.com</ext-link></citation>
</ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>He</surname> <given-names>Q.</given-names></name> <name><surname>Rezaei</surname> <given-names>A.</given-names></name> <name><surname>Pursiainen</surname> <given-names>S.</given-names></name></person-group> (<year>2019</year>). <article-title>Zeffiro user interface for electromagnetic brain imaging: A gpu accelerated fem tool for forward and inverse computations in matlab</article-title>. <source>Neuroinformatics</source> <volume>18</volume>, <fpage>237</fpage>&#x02013;<lpage>250</lpage>. <pub-id pub-id-type="doi">10.1007/s12021-019-09436-9</pub-id><pub-id pub-id-type="pmid">31598847</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Je</surname> <given-names>C.</given-names></name> <name><surname>Park</surname> <given-names>H.-M.</given-names></name></person-group> (<year>2013</year>). <article-title>Optimized hierarchical block matching for fast and accurate image registration</article-title>. <source>Signal Proc. Image Commun</source>. <volume>28</volume>, <fpage>779</fpage>&#x02013;<lpage>791</lpage>. <pub-id pub-id-type="doi">10.1016/j.image.2013.04.002</pub-id></citation>
</ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kaufmann</surname> <given-names>E.</given-names></name> <name><surname>Hordt</surname> <given-names>M.</given-names></name> <name><surname>Lauseker</surname> <given-names>M.</given-names></name> <name><surname>Palm</surname> <given-names>U.</given-names></name> <name><surname>Noachtar</surname> <given-names>S.</given-names></name></person-group> (<year>2021</year>). <article-title>Acute effects of spaced cathodal transcranial direct current stimulation in drug resistant focal epilepsies</article-title>. <source>Clini, Neurophysiol</source>, <volume>132</volume>, <fpage>1444</fpage>&#x02013;<lpage>1451</lpage>. <pub-id pub-id-type="doi">10.1016/j.clinph.2021.03.048</pub-id><pub-id pub-id-type="pmid">34023626</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Khadka</surname> <given-names>N.</given-names></name> <name><surname>Borges</surname> <given-names>H.</given-names></name> <name><surname>Paneri</surname> <given-names>B.</given-names></name> <name><surname>Kaufman</surname> <given-names>T.</given-names></name> <name><surname>Nassis</surname> <given-names>E.</given-names></name> <name><surname>Zannou</surname> <given-names>A. L.</given-names></name> <etal/></person-group>. (<year>2020</year>). <article-title>Adaptive current tdcs up to 4ma</article-title>. <source>Brain Stimul</source>. <volume>13</volume>, <fpage>69</fpage>&#x02013;<lpage>79</lpage>. <pub-id pub-id-type="doi">10.1016/j.brs.2019.07.027</pub-id><pub-id pub-id-type="pmid">31427272</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Khan</surname> <given-names>A.</given-names></name> <name><surname>Antonakakis</surname> <given-names>M.</given-names></name> <name><surname>Vogenauer</surname> <given-names>N.</given-names></name> <name><surname>Haueisen</surname> <given-names>J.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2022</year>). <article-title>Individually optimized multi-channel tdcs for targeting somatosensory cortex</article-title>. <source>Clini. Neurophysiol</source>. <volume>134</volume>, <fpage>9</fpage>&#x02013;<lpage>26</lpage>. <pub-id pub-id-type="doi">10.1016/j.clinph.2021.10.016</pub-id><pub-id pub-id-type="pmid">34923283</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kowalski</surname> <given-names>T.</given-names></name> <name><surname>Silny</surname> <given-names>J.</given-names></name> <name><surname>Buchner</surname> <given-names>H.</given-names></name></person-group> (<year>2002</year>). <article-title>Current density threshold for the stimulation of neurons in the motor cortex area</article-title>. <source>Bioelectromagnetics</source>. <volume>23</volume>, <fpage>421</fpage>&#x02013;<lpage>428</lpage>. <pub-id pub-id-type="doi">10.1002/bem.10036</pub-id><pub-id pub-id-type="pmid">12210560</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Laakso</surname> <given-names>I.</given-names></name> <name><surname>Tanaka</surname> <given-names>S.</given-names></name> <name><surname>Koyama</surname> <given-names>S.</given-names></name> <name><surname>De Santis</surname> <given-names>V.</given-names></name> <name><surname>Hirata</surname> <given-names>A.</given-names></name></person-group> (<year>2015</year>). <article-title>Inter-subject variability in electric fields of motor cortical tdcs</article-title>. <source>Brain Stimul</source>. <volume>8</volume>, <fpage>906</fpage>&#x02013;<lpage>913</lpage>. <pub-id pub-id-type="doi">10.1016/j.brs.2015.05.002</pub-id><pub-id pub-id-type="pmid">26026283</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lin</surname> <given-names>T.</given-names></name> <name><surname>Ma</surname> <given-names>S.</given-names></name> <name><surname>Ye</surname> <given-names>Y.</given-names></name> <name><surname>Zhang</surname> <given-names>S.</given-names></name></person-group> (<year>2021</year>). <article-title>An admm-based interior-point method for large-scale linear programming</article-title>. <source>Optimizat. Methods Softw</source>. <volume>36</volume>, <fpage>389</fpage>&#x02013;<lpage>424</lpage>. <pub-id pub-id-type="doi">10.1080/10556788.2020.1821200</pub-id></citation>
</ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mark</surname> <given-names>J. A.</given-names></name> <name><surname>Ayaz</surname> <given-names>H.</given-names></name> <name><surname>Callan</surname> <given-names>D. E.</given-names></name></person-group> (<year>2023</year>). <article-title>Simultaneous fmri and tdcs for enhancing training of flight tasks</article-title>. <source>Brain Sci</source>. <volume>13</volume>, <fpage>1024</fpage>. <pub-id pub-id-type="doi">10.3390/brainsci13071024</pub-id><pub-id pub-id-type="pmid">37508957</pub-id></citation></ref>
<ref id="B33">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Medani</surname> <given-names>T.</given-names></name> <name><surname>Lautru</surname> <given-names>D.</given-names></name> <name><surname>Ren</surname> <given-names>Z.</given-names></name> <name><surname>Schwartz</surname> <given-names>D.</given-names></name> <name><surname>Sou</surname> <given-names>G.</given-names></name></person-group> (<year>2015</year>). <article-title>&#x0201C;Modelling of brain sources using the modified saint Venant&#x00027;s method in FEM resolution of EEG forward problem,&#x0201D;</article-title> in <source>Conference IEEE EMBS Conference on Neural Engineering 2015, 7th International IEEE EMBS Conference on Neural Engineering</source> (<publisher-loc>Montpellier, France</publisher-loc>: <publisher-name>IEEE</publisher-name>).</citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mehrotra</surname> <given-names>S.</given-names></name></person-group> (<year>1992</year>). <article-title>On the implementation of a primal-dual interior point method</article-title>. <source>SIAM J. Optimizat</source>. <volume>2</volume>, <fpage>575</fpage>&#x02013;<lpage>601</lpage>. <pub-id pub-id-type="doi">10.1137/0802028</pub-id></citation>
</ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Montes-Restrepo</surname> <given-names>V.</given-names></name> <name><surname>Van Mierlo</surname> <given-names>P.</given-names></name> <name><surname>Strobbe</surname> <given-names>G.</given-names></name> <name><surname>Staelens</surname> <given-names>S.</given-names></name> <name><surname>Vandenberghe</surname> <given-names>S.</given-names></name> <name><surname>Hallez</surname> <given-names>H.</given-names></name></person-group> (<year>2014</year>). <article-title>Influence of skull modeling approaches on eeg source localization</article-title>. <source>Brain Topogr</source>. <volume>27</volume>, <fpage>95</fpage>&#x02013;<lpage>111</lpage>. <pub-id pub-id-type="doi">10.1007/s10548-013-0313-y</pub-id><pub-id pub-id-type="pmid">24002699</pub-id></citation></ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Moreno-Duarte</surname> <given-names>I.</given-names></name> <name><surname>Gebodh</surname> <given-names>N.</given-names></name> <name><surname>Schestatsky</surname> <given-names>P.</given-names></name> <name><surname>Guleyupoglu</surname> <given-names>B.</given-names></name> <name><surname>Reato</surname> <given-names>D.</given-names></name> <name><surname>Bikson</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2014</year>). <article-title>&#x0201C;Chapter 2-transcranial electrical stimulation: Transcranial direct current stimulation (tdcs), transcranial alternating current stimulation (tacs), transcranial pulsed current stimulation (tpcs), and transcranial random noise stimulation (trns),&#x0201D;</article-title> in <source>The Stimulated Brain</source>, R. Cohen Kadosh (<publisher-loc>San Diego</publisher-loc>: <publisher-name>Academic Press</publisher-name>), <fpage>35</fpage>&#x02013;<lpage>59</lpage>.</citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><collab>MOSEK ApS</collab></person-group> (<year>2019</year>). <article-title>Mosek Optimization Toolbox for Matlab</article-title>. <source>Users Guide and Reference Manual, Version</source>. MOSEK, 4, 1.</citation>
</ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nitsche</surname> <given-names>M. A.</given-names></name> <name><surname>Paulus</surname> <given-names>W.</given-names></name></person-group> (<year>2000</year>). <article-title>Excitability changes induced in the human motor cortex by weak transcranial direct current stimulation</article-title>. <source>J. Physiol</source>. <volume>527</volume>, <fpage>633</fpage>&#x02013;<lpage>639</lpage>. <pub-id pub-id-type="doi">10.1111/j.1469-7793.2000.t01-1-00633.x</pub-id><pub-id pub-id-type="pmid">10990547</pub-id></citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Paulus</surname> <given-names>W.</given-names></name></person-group> (<year>2011</year>). <article-title>Transcranial electrical stimulation (tes - tdcs; trns, tacs) methods</article-title>. <source>Neuropsychol. Rehabil</source>. <volume>21</volume>, <fpage>602</fpage>&#x02013;<lpage>617</lpage>. <pub-id pub-id-type="doi">10.1080/09602011.2011.557292</pub-id><pub-id pub-id-type="pmid">21819181</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Peterchev</surname> <given-names>A. V.</given-names></name> <name><surname>Wagner</surname> <given-names>T. A.</given-names></name> <name><surname>Miranda</surname> <given-names>P. C.</given-names></name> <name><surname>Nitsche</surname> <given-names>M. A.</given-names></name> <name><surname>Paulus</surname> <given-names>W.</given-names></name> <name><surname>Lisanby</surname> <given-names>S. H.</given-names></name> <etal/></person-group>. (<year>2012</year>). <article-title>Fundamentals of transcranial electric and magnetic stimulation dose: Definition, selection, and reporting practices</article-title>. <source>Brain Stimul</source>. <volume>5</volume>, <fpage>435</fpage>&#x02013;<lpage>453</lpage>. <pub-id pub-id-type="doi">10.1016/j.brs.2011.10.001</pub-id><pub-id pub-id-type="pmid">22305345</pub-id></citation></ref>
<ref id="B41">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Polik</surname> <given-names>I.</given-names></name> <name><surname>Terlaky</surname> <given-names>T.</given-names></name> <name><surname>Zinchenko</surname> <given-names>Y.</given-names></name></person-group> (<year>2007</year>). <article-title>&#x0201C;Sedumi: a package for conic optimization,&#x0201D;</article-title> in <source>IMA Workshop on Optimization and Control, Univ. Minnesota, Minneapolis</source>. <publisher-loc>Minnesota, Minneapolis</publisher-loc>: <publisher-name>Citeseer</publisher-name>.</citation>
</ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pursiainen</surname> <given-names>S.</given-names></name> <name><surname>Agsten</surname> <given-names>B.</given-names></name> <name><surname>Wagner</surname> <given-names>S.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2017</year>). <article-title>Advanced boundary electrode modeling for tes and parallel tes/eeg</article-title>. <source>IEEE Trans. Neural Syst. Rehabilitat. Eng</source>. <volume>26</volume>, <fpage>37</fpage>&#x02013;<lpage>44</lpage>. <pub-id pub-id-type="doi">10.1109/TNSRE.2017.2748930</pub-id><pub-id pub-id-type="pmid">28961118</pub-id></citation></ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pursiainen</surname> <given-names>S.</given-names></name> <name><surname>Lucka</surname> <given-names>F.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2012</year>). <article-title>Complete electrode model in EEG: relationship and differences to the point electrode model</article-title>. <source>Phys. Med. Biol</source>., <volume>57</volume>, <fpage>999</fpage>&#x02013;<lpage>1017</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/57/4/999</pub-id><pub-id pub-id-type="pmid">22297396</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pursiainen</surname> <given-names>S.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2016</year>). <article-title>Electroencephalography (EEG) forward modeling viaH(div) finite element sources with focal interpolation</article-title>. <source>Phys. Med. Biol</source>. <volume>61</volume>, <fpage>8502</fpage>&#x02013;<lpage>8520</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/61/24/8502</pub-id><pub-id pub-id-type="pmid">27845929</pub-id></citation></ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rampersad</surname> <given-names>S.</given-names></name> <name><surname>Stegeman</surname> <given-names>D.</given-names></name> <name><surname>Oostendorp</surname> <given-names>T.</given-names></name></person-group> (<year>2013</year>). <article-title>Op 11 optimized tdcs electrode configurations for five targets determined via an inverse fe modeling approach</article-title>. <source>Clini. Neurophysiol</source>. <volume>124</volume>, <fpage>e61</fpage>&#x02013;<lpage>e62</lpage>. <pub-id pub-id-type="doi">10.1016/j.clinph.2013.04.078</pub-id></citation>
</ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Reed</surname> <given-names>T.</given-names></name> <name><surname>Cohen Kadosh</surname> <given-names>R.</given-names></name></person-group> (<year>2018</year>). <article-title>Transcranial electrical stimulation (tes) mechanisms and its effects on cortical excitability and connectivity</article-title>. <source>J. Inherit. Metab. Dis</source>. <volume>41</volume>, <fpage>1123</fpage>&#x02013;<lpage>1130</lpage>. <pub-id pub-id-type="doi">10.1007/s10545-018-0181-4</pub-id><pub-id pub-id-type="pmid">30006770</pub-id></citation></ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Roy</surname> <given-names>A.</given-names></name> <name><surname>Boroda</surname> <given-names>E.</given-names></name> <name><surname>Waldron</surname> <given-names>E.</given-names></name> <name><surname>Lim</surname> <given-names>K.</given-names></name> <name><surname>Henry</surname> <given-names>T.</given-names></name></person-group> (<year>2019</year>). <article-title>Integration of prefrontal transcranial direct current stimulation with cognitive training for treatment of memory dysfunction in epilepsy</article-title>. <source>Brain Stimulat</source>. <volume>12</volume>, <fpage>481</fpage>. <pub-id pub-id-type="doi">10.1016/j.brs.2018.12.571</pub-id></citation>
</ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ruffini</surname> <given-names>G.</given-names></name> <name><surname>Fox</surname> <given-names>M. D.</given-names></name> <name><surname>Ripolles</surname> <given-names>O.</given-names></name> <name><surname>Miranda</surname> <given-names>P. C.</given-names></name> <name><surname>Pascual-Leone</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <article-title>Optimization of multifocal transcranial current stimulation for weighted cortical pattern targeting from realistic modeling of electric fields</article-title>. <source>Neuroimage</source> <volume>89</volume>, <fpage>216</fpage>&#x02013;<lpage>225</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2013.12.002</pub-id><pub-id pub-id-type="pmid">24345389</pub-id></citation></ref>
<ref id="B49">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Sauer</surname> <given-names>T.</given-names></name></person-group> (<year>2018</year>). <source>Numerical Analysis</source>. <publisher-loc>London</publisher-loc>: <publisher-name>Pearson</publisher-name>.</citation>
</ref>
<ref id="B50">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schmidt</surname> <given-names>C.</given-names></name> <name><surname>Wagner</surname> <given-names>S.</given-names></name> <name><surname>Burger</surname> <given-names>M.</given-names></name> <name><surname>van Rienen</surname> <given-names>U.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2015</year>). <article-title>Impact of uncertain head tissue conductivity in the optimization of transcranial direct current stimulation for an auditory target</article-title>. <source>J. Neural Eng</source>. <volume>12</volume>, <fpage>046028</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/12/4/046028</pub-id><pub-id pub-id-type="pmid">26170066</pub-id></citation></ref>
<ref id="B51">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Simula</surname> <given-names>S.</given-names></name> <name><surname>Daoud</surname> <given-names>M.</given-names></name> <name><surname>Ruffini</surname> <given-names>G.</given-names></name> <name><surname>Biagi</surname> <given-names>M. C.</given-names></name> <name><surname>B&#x000E9;nar</surname> <given-names>C.-G.</given-names></name> <name><surname>Benquet</surname> <given-names>P.</given-names></name> <etal/></person-group>. (<year>2022</year>). <article-title>Transcranial current stimulation in epilepsy: a systematic review of the fundamental and clinical aspects</article-title>. <source>Front. Neurosci</source>. <volume>16</volume>, <fpage>909421</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2022.909421</pub-id><pub-id pub-id-type="pmid">36090277</pub-id></citation></ref>
<ref id="B52">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sturm</surname> <given-names>J. F.</given-names></name></person-group> (<year>1999</year>). <article-title>Using sedumi 1.02, a matlab toolbox for optimization over symmetric cones</article-title>. <source>Optimization methods and software</source> <volume>11</volume>:<fpage>625</fpage>&#x02013;<lpage>653</lpage>. <pub-id pub-id-type="doi">10.1080/10556789908805766</pub-id></citation>
</ref>
<ref id="B53">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Thair</surname> <given-names>H.</given-names></name> <name><surname>Holloway</surname> <given-names>A. L.</given-names></name> <name><surname>Newport</surname> <given-names>R.</given-names></name> <name><surname>Smith</surname> <given-names>A. D.</given-names></name></person-group> (<year>2017</year>). <article-title>Transcranial direct current stimulation (tdcs): A beginner&#x00027;s guide for design and implementation</article-title>. <source>Front. Neurosci</source>. <volume>11</volume>, <fpage>641</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2017.00641</pub-id><pub-id pub-id-type="pmid">29213226</pub-id></citation></ref>
<ref id="B54">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tost</surname> <given-names>A.</given-names></name> <name><surname>Migliorelli</surname> <given-names>C.</given-names></name> <name><surname>Bachiller</surname> <given-names>A.</given-names></name> <name><surname>Medina-Rivera</surname> <given-names>I.</given-names></name> <name><surname>Romero</surname> <given-names>S.</given-names></name> <name><surname>Garc&#x000ED;a-Cazorla</surname> <given-names>&#x000C1;.</given-names></name> <etal/></person-group>. (<year>2021</year>). <article-title>Choosing strategies to deal with artifactual eeg data in children with cognitive impairment</article-title>. <source>Entropy</source> <volume>23</volume>, <fpage>1030</fpage>. <pub-id pub-id-type="doi">10.3390/e23081030</pub-id><pub-id pub-id-type="pmid">34441170</pub-id></citation></ref>
<ref id="B55">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>T&#x000FC;t&#x000FC;nc&#x000FC;</surname> <given-names>R. H.</given-names></name> <name><surname>Toh</surname> <given-names>K.-C.</given-names></name> <name><surname>Todd</surname> <given-names>M. J.</given-names></name></person-group> (<year>2003</year>). <article-title>Solving semidefinite-quadratic-linear programs using sdpt3</article-title>. <source>Mathemat. Program</source>. <volume>95</volume>, <fpage>189</fpage>&#x02013;<lpage>217</lpage>. <pub-id pub-id-type="doi">10.1007/s10107-002-0347-5</pub-id></citation>
</ref>
<ref id="B56">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wagner</surname> <given-names>S.</given-names></name> <name><surname>Burger</surname> <given-names>M.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2016</year>). <article-title>An optimization approach for well-targeted transcranial direct current stimulation</article-title>. <source>SIAM J. Appl. Math</source>. <volume>76</volume>, <fpage>2154</fpage>&#x02013;<lpage>2174</lpage>. <pub-id pub-id-type="doi">10.1137/15M1026481</pub-id></citation>
</ref>
<ref id="B57">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wagner</surname> <given-names>S.</given-names></name> <name><surname>Rampersad</surname> <given-names>S. M.</given-names></name> <name><surname>Aydin</surname> <given-names>U.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>Oostendorp</surname> <given-names>T. F.</given-names></name> <name><surname>Neuling</surname> <given-names>T.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Investigation of tdcs volume conduction effects in a highly realistic head model</article-title>. <source>J. Neural Eng</source>. <volume>11</volume>, <fpage>016002</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/11/1/016002</pub-id><pub-id pub-id-type="pmid">24310982</pub-id></citation></ref>
<ref id="B58">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Workman</surname> <given-names>C. D.</given-names></name> <name><surname>Fietsam</surname> <given-names>A. C.</given-names></name> <name><surname>Rudroff</surname> <given-names>T.</given-names></name></person-group> (<year>2020</year>). <article-title>Different effects of 2 ma and 4 ma transcranial direct current stimulation on muscle activity and torque in a maximal isokinetic fatigue task</article-title>. <source>Front. Hum. Neurosci</source>. <volume>14</volume>, <fpage>240</fpage>. <pub-id pub-id-type="doi">10.3389/fnhum.2020.00240</pub-id><pub-id pub-id-type="pmid">32714170</pub-id></citation></ref>
<ref id="B59">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yang</surname> <given-names>L.</given-names></name> <name><surname>Shami</surname> <given-names>A.</given-names></name></person-group> (<year>2020</year>). <article-title>On hyperparameter optimization of machine learning algorithms: Theory and practice</article-title>. <source>Neurocomputing</source> <volume>415</volume>, <fpage>295</fpage>&#x02013;<lpage>316</lpage>. <pub-id pub-id-type="doi">10.1016/j.neucom.2020.07.061</pub-id></citation>
</ref>
<ref id="B60">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zaghi</surname> <given-names>S.</given-names></name> <name><surname>Acar</surname> <given-names>M.</given-names></name> <name><surname>Hultgren</surname> <given-names>B.</given-names></name> <name><surname>Boggio</surname> <given-names>P. S.</given-names></name> <name><surname>Fregni</surname> <given-names>F.</given-names></name></person-group> (<year>2010</year>). <article-title>Noninvasive brain stimulation with low-intensity electrical currents: Putative mechanisms of action for direct and alternating current stimulation</article-title>. <source>Neuroscientist</source> <volume>16</volume>, <fpage>285</fpage>&#x02013;<lpage>307</lpage>. <pub-id pub-id-type="doi">10.1177/1073858409336227</pub-id><pub-id pub-id-type="pmid">20040569</pub-id></citation></ref>
<ref id="B61">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname> <given-names>Y.</given-names></name></person-group> (<year>1999</year>). <article-title>User&#x00027;s guide to lipsol linear-programming interior point solvers v0. 4</article-title>. <source>Optimizat. Methods Softw</source>. <volume>11</volume>, <fpage>385</fpage>&#x02013;<lpage>396</lpage>. <pub-id pub-id-type="doi">10.1080/10556789908805756</pub-id></citation>
</ref>
</ref-list>
</back>
</article> 