View full-text article in PMC Sensors (Basel). 2021 Feb 10;21(4):1262. doi: 10.3390/s21041262 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 4 The algorithm to solve problem (A3). Input:M, v, β, μ and s;Output: The weight vector w∈Rs. 1: Compute g=v−β+MTvμ∈Rs; 2: Compute h=g−1sTgs1s+1s1s; 3: Use Newton’s method to obtain the root η¯* of Equation (A12); 4: The optimal solution wj*=(hj−η¯*)+, where j=1,2,⋯,s.