<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d3 20150301//EN" "http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd">
<article article-type="research-article" dtd-version="1.1d3" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="nlm-ta">PLoS ONE</journal-id>
<journal-id journal-id-type="publisher-id">plos</journal-id>
<journal-id journal-id-type="pmc">plosone</journal-id>
<journal-title-group>
<journal-title>PLOS ONE</journal-title>
</journal-title-group>
<issn pub-type="epub">1932-6203</issn>
<publisher>
<publisher-name>Public Library of Science</publisher-name>
<publisher-loc>San Francisco, CA USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">PONE-D-22-01043</article-id>
<article-id pub-id-type="doi">10.1371/journal.pone.0270403</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Research Article</subject>
</subj-group>
<subj-group subj-group-type="Discipline-v3">
<subject>Computer and information sciences</subject><subj-group><subject>Artificial intelligence</subject><subj-group><subject>Machine learning</subject><subj-group><subject>Support vector machines</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Mathematics</subject><subj-group><subject>Optimization</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Mathematical and statistical techniques</subject><subj-group><subject>Statistical methods</subject><subj-group><subject>Multivariate analysis</subject><subj-group><subject>Principal component analysis</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Mathematics</subject><subj-group><subject>Statistics</subject><subj-group><subject>Statistical methods</subject><subj-group><subject>Multivariate analysis</subject><subj-group><subject>Principal component analysis</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Oncology</subject><subj-group><subject>Cancers and neoplasms</subject><subj-group><subject>Gynecological tumors</subject><subj-group><subject>Cervical cancer</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Mathematical and statistical techniques</subject><subj-group><subject>Mathematical functions</subject><subj-group><subject>Linear programming</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Mathematical and statistical techniques</subject><subj-group><subject>Statistical methods</subject><subj-group><subject>Linear discriminant analysis</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Mathematics</subject><subj-group><subject>Statistics</subject><subj-group><subject>Statistical methods</subject><subj-group><subject>Linear discriminant analysis</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Computer and information sciences</subject><subj-group><subject>Artificial intelligence</subject><subj-group><subject>Machine learning</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Chemistry</subject><subj-group><subject>Chemical compounds</subject><subj-group><subject>Organic compounds</subject><subj-group><subject>Carbohydrates</subject><subj-group><subject>Monosaccharides</subject><subj-group><subject>Fructoses</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Physical sciences</subject><subj-group><subject>Chemistry</subject><subj-group><subject>Organic chemistry</subject><subj-group><subject>Organic compounds</subject><subj-group><subject>Carbohydrates</subject><subj-group><subject>Monosaccharides</subject><subj-group><subject>Fructoses</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group></article-categories>
<title-group>
<article-title>LPDA: A new classification method based on linear programming</article-title>
<alt-title alt-title-type="running-head">LPDA: A new classification method based on linear programming</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-1666-4771</contrib-id>
<name name-style="western">
<surname>Nueda</surname> <given-names>María J.</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role content-type="http://credit.niso.org/contributor-roles/resources/">Resources</role>
<role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing – original draft</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"/>
<xref ref-type="corresp" rid="cor001">*</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<name name-style="western">
<surname>Gandía</surname> <given-names>Carmen</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
<xref ref-type="aff" rid="aff001"/>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<name name-style="western">
<surname>Molina</surname> <given-names>Mariola D.</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing – original draft</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"/>
</contrib>
</contrib-group>
<aff id="aff001">
<addr-line>Mathematics Department, University of Alicante, Alicante, Spain</addr-line>
</aff>
<contrib-group>
<contrib contrib-type="editor" xlink:type="simple">
<name name-style="western">
<surname>Demidenko</surname> <given-names>Eugene</given-names></name>
<role>Editor</role>
<xref ref-type="aff" rid="edit1"/>
</contrib>
</contrib-group>
<aff id="edit1">
<addr-line>Dartmouth College Geisel School of Medicine, UNITED STATES</addr-line>
</aff>
<author-notes>
<fn fn-type="conflict" id="coi001">
<p>The authors have declared that no competing interests exist.</p>
</fn>
<corresp id="cor001">* E-mail: <email xlink:type="simple">mj.nueda@ua.es</email></corresp>
</author-notes>
<pub-date pub-type="collection">
<year>2022</year>
</pub-date>
<pub-date pub-type="epub">
<day>7</day>
<month>7</month>
<year>2022</year>
</pub-date>
<volume>17</volume>
<issue>7</issue>
<elocation-id>e0270403</elocation-id>
<history>
<date date-type="received">
<day>12</day>
<month>1</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>9</day>
<month>6</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-year>2022</copyright-year>
<copyright-holder>Nueda et al</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="info:doi/10.1371/journal.pone.0270403"/>
<abstract>
<p>The search of separation hyperplanes is an efficient way to find rules with classification purposes. This paper presents an alternative mathematical programming formulation to existing methods to find a discriminant hyperplane. The hyperplane <italic>H</italic> is found by minimizing the sum of all the distances to the area assigned to the group each individual belongs to. It results in a convex optimization problem for which we find an equivalent linear programming problem. We demonstrate that <italic>H</italic> exists when the centroids of the two groups are not equal. The method is effective dealing with low and high dimensional data where reduction of the dimension is proposed to avoid overfitting problems. We show the performance of this approach with different data sets and comparisons with other classifications methods. The method is called <italic>LPDA</italic> and it is implemented in a R package available in <ext-link ext-link-type="uri" xlink:href="https://github.com/mjnueda/lpda" xlink:type="simple">https://github.com/mjnueda/lpda</ext-link>.</p>
</abstract>
<funding-group>
<award-group id="award001">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/501100011596</institution-id>
<institution>Conselleria d’Educació, Investigació, Cultura i Esport</institution>
</institution-wrap>
</funding-source>
<award-id>GV/2017/177</award-id>
<principal-award-recipient>
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-1666-4771</contrib-id>
<name name-style="western">
<surname>Nueda</surname> <given-names>María J.</given-names></name>
</principal-award-recipient>
</award-group>
<funding-statement>This research has been partially supported by Generalitat Valenciana, Grant GV/2017/177.</funding-statement>
</funding-group>
<counts>
<fig-count count="4"/>
<table-count count="2"/>
<page-count count="13"/>
</counts>
<custom-meta-group>
<custom-meta id="data-availability">
<meta-name>Data Availability</meta-name>
<meta-value>Regarding the datasets we have used in the paper to illustrate the method: - Palmdates data is within lpda package available in <ext-link ext-link-type="uri" xlink:href="https://github.com/mjnueda/lpda" xlink:type="simple">https://github.com/mjnueda/lpda</ext-link> that is flexible for new versions of packages. We would like also to include lpda package in <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/" xlink:type="simple">https://cran.r-project.org/</ext-link> as soon as possible. It was not the intention to publish the data alone, but in the package environment where the manual explains how to use it. - Default data is available in ISLR package as it is mentioned in the paper. - Cervical cancer data is an available dataset in GEO, as it is mentioned in the paper.</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="sec001" sec-type="intro">
<title>Introduction</title>
<p>One of the main goals in many recent data analysis projects is the classification of samples or individuals into predefined groups, according to the characteristics available. Several approaches have been proposed to deal with this problem. Statistical methods, usually are based in the evaluation of a scoring function that needs distributional assumptions as Fisher Linear Discriminant Analysis (<italic>LDA</italic>) [<xref ref-type="bibr" rid="pone.0270403.ref001">1</xref>, <xref ref-type="bibr" rid="pone.0270403.ref002">2</xref>] or Logistic Regression [<xref ref-type="bibr" rid="pone.0270403.ref003">3</xref>]. The high number of variables and the diverse type of distributional assumptions are challenging topics that researchers try to solve with non distributional approaches. Mathematical programming is a natural way of dealing with the classification problem regardless of distributional assumptions. In this sense, linear programming based methods look for a linear function that separates the classes avoiding parameters estimations. Support Vector Machine (<italic>SVM</italic>) [<xref ref-type="bibr" rid="pone.0270403.ref004">4</xref>, <xref ref-type="bibr" rid="pone.0270403.ref005">5</xref>] is the most popular classification method based in hyperplanes, that can be extended to nonlinear separating functions, as polynomial or radial kernel. In [<xref ref-type="bibr" rid="pone.0270403.ref006">6</xref>] we find a discussion of mathematical optimization techniques proposed for SVM and [<xref ref-type="bibr" rid="pone.0270403.ref007">7</xref>] reviews and compares supervised classification methods related to optimization. These publications and other as [<xref ref-type="bibr" rid="pone.0270403.ref008">8</xref>] demonstrate the exinting interest of addressing the classification problem through mathematical programming. We can also mention the Machine Learning approach, where we find alternative methods as Decision Trees, CART or Random Forest, [<xref ref-type="bibr" rid="pone.0270403.ref009">9</xref>, <xref ref-type="bibr" rid="pone.0270403.ref010">10</xref>] and Neural Networks approach [<xref ref-type="bibr" rid="pone.0270403.ref011">11</xref>]. This approach tries to find a stepwise rule that combines the best ranking variables in a training set also ignoring distributional assumptions.</p>
<p>All these approaches could be considered complementary rather than competitive. Machine learning approaches are useful in classification when dealing with high dimensional data sets, but for interpreting variable influence it is preferable Logistic Regression or <italic>LDA</italic>. <italic>SVM</italic> is an effective method in different situations. When dealing with small dimension the flexibility of the separating function can help to find a perfect separation, however with high dimensional data over-fitted problems can emerge and, as mentioned in [<xref ref-type="bibr" rid="pone.0270403.ref012">12</xref>], there is not need of additional flexibility that give this models, being the linear function a good option.</p>
<p>In this work we propose an efficient alternative to the available classification methods in R without distributional assumptions. We formulate an optimization problem to find a discriminating hyperplane between two data sets that can be useful to classify new individuals. The method has been extended also to the case with more than two groups making paiwise comparisons. In addition, to avoid overfiting problems due to noisy data or high dimensional data sets, we consider Principal Components Analysis (PCA) to focus on the main sources of variation avoiding the noise. The method has been implemented in a R package named <bold>lpda</bold> available in github.</p>
<p>The paper is structured as follows. In the following section, the optimization problem is proposed on the basis of the general two-group classification approach and the PCA solution is presented. Then, it is described the evaluation strategy of the new technique: data and other approaches against which it is intended to be compared. In the Results section this evaluation is showed and finally, conclusions are presented in the last section.</p>
</sec>
<sec id="sec002">
<title>Linear programming discriminant analysis method</title>
<p>The purpose of this section is to describe the problem we want to solve and to build the linear problem which will allow us to find the solutions. First, we present the approach for the case of two data sets and subsequently extend it to the case with more than two sets. Finally, we propose a strategy to avoid overfitting in data sets with more variables than individuals.</p>
<sec id="sec003">
<title>Model definition for two data sets</title>
<p>Let <inline-formula id="pone.0270403.e001"><alternatives><graphic id="pone.0270403.e001g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e001" xlink:type="simple"/><mml:math display="inline" id="M1"><mml:mrow><mml:mi mathvariant="bold">X</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub> <mml:mo>}</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e002"><alternatives><graphic id="pone.0270403.e002g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e002" xlink:type="simple"/><mml:math display="inline" id="M2"><mml:mrow><mml:mi mathvariant="bold">Y</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub> <mml:mo>}</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> two sets whose elements are in <inline-formula id="pone.0270403.e003"><alternatives><graphic id="pone.0270403.e003g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e003" xlink:type="simple"/><mml:math display="inline" id="M3"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:math></alternatives></inline-formula>, and <inline-formula id="pone.0270403.e004"><alternatives><graphic id="pone.0270403.e004g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e004" xlink:type="simple"/><mml:math display="inline" id="M4"><mml:mrow><mml:msup><mml:mi>m</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>m</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>m</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>m</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e005"><alternatives><graphic id="pone.0270403.e005g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e005" xlink:type="simple"/><mml:math display="inline" id="M5"><mml:mrow><mml:msup><mml:mi>w</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> the vectors whose components are the weights of the elements of <bold>X</bold> and <bold>Y</bold> respectively, positive and such that <inline-formula id="pone.0270403.e006"><alternatives><graphic id="pone.0270403.e006g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e006" xlink:type="simple"/><mml:math display="inline" id="M6"><mml:mrow><mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>.</p>
<p>Weights can be assigned depending on the importance of the individual in the sample. This could be of interest if the individuals are collectives; for example: cities or universities; that can be weighted by their size. If all the individuals are equally important, weights must be <italic>m</italic><sub><italic>i</italic></sub> = 1/<italic>n</italic><sub>1</sub>∀<italic>i</italic> and <italic>w</italic><sub><italic>j</italic></sub> = 1/<italic>n</italic><sub>2</sub>∀<italic>j</italic>.</p>
<p><bold>Definition 1</bold>. <italic>A hyperplane H in</italic> <inline-formula id="pone.0270403.e007"><alternatives><graphic id="pone.0270403.e007g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e007" xlink:type="simple"/><mml:math display="inline" id="M7"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:math></alternatives></inline-formula> <italic>is an</italic> (<italic>p</italic>-1)-<italic>affine set and can be represented as</italic> <inline-formula id="pone.0270403.e008"><alternatives><graphic id="pone.0270403.e008g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e008" xlink:type="simple"/><mml:math display="inline" id="M8"><mml:mrow><mml:mi>H</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>}</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>, <italic>where</italic> <inline-formula id="pone.0270403.e009"><alternatives><graphic id="pone.0270403.e009g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e009" xlink:type="simple"/><mml:math display="inline" id="M9"><mml:mrow><mml:mi>b</mml:mi> <mml:mo>∈</mml:mo> <mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow></mml:math></alternatives></inline-formula> <italic>and</italic> <inline-formula id="pone.0270403.e010"><alternatives><graphic id="pone.0270403.e010g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e010" xlink:type="simple"/><mml:math display="inline" id="M10"><mml:mrow><mml:mi>a</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>, <italic>a</italic> ≠ 0<sub><italic>p</italic></sub>, <italic>and they are unique up to a common non-zero multiple</italic>.</p>
<p>Initially, we look for a hyperplane <italic>H</italic> that strictly separates <bold>X</bold> from <bold>Y</bold> (<xref ref-type="fig" rid="pone.0270403.g001">Fig 1</xref>). If such hyperplane does not exist, we focus on a hyperplane that minimizes a measure of the deviation of this goal, called <italic>separation error</italic>.</p>
<fig id="pone.0270403.g001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.g001</object-id>
<label>Fig 1</label>
<caption>
<title>The objective is finding <italic>H</italic> that separates X from Y.</title>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.g001" xlink:type="simple"/>
</fig>
<p><bold>Proposition 1</bold>. <bold><italic>X</italic></bold> <italic>and</italic> <bold><italic>Y</italic></bold> <italic>are strictly separable if and only if there exists a hyperplane</italic> <inline-formula id="pone.0270403.e011"><alternatives><graphic id="pone.0270403.e011g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e011" xlink:type="simple"/><mml:math display="inline" id="M11"><mml:mrow><mml:mi>H</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>n</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>}</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> <italic>such that the following system</italic>:
<disp-formula id="pone.0270403.e012"><alternatives><graphic id="pone.0270403.e012g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e012" xlink:type="simple"/><mml:math display="block" id="M12"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>σ</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≤</mml:mo> <mml:mi>b</mml:mi> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable> <mml:mo/></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(1)</label></disp-formula> <italic>is consistent. Such hyperplane is named separator hyperplane</italic>.</p>
<p>Proof.</p>
<p>If <bold>X</bold> and <bold>Y</bold> can be strictly separated, there exists <inline-formula id="pone.0270403.e013"><alternatives><graphic id="pone.0270403.e013g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e013" xlink:type="simple"/><mml:math display="inline" id="M13"><mml:mrow><mml:mi>c</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>, <italic>c</italic> ≠ 0<sub><italic>p</italic></sub> and <inline-formula id="pone.0270403.e014"><alternatives><graphic id="pone.0270403.e014g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e014" xlink:type="simple"/><mml:math display="inline" id="M14"><mml:mrow><mml:mi>d</mml:mi> <mml:mo>∈</mml:mo> <mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow></mml:math></alternatives></inline-formula> such that:
<disp-formula id="pone.0270403.e015"><alternatives><graphic id="pone.0270403.e015g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e015" xlink:type="simple"/><mml:math display="block" id="M15"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>&gt;</mml:mo> <mml:mi>d</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>&lt;</mml:mo> <mml:mi>d</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(2)</label></disp-formula></p>
<p>Let <italic>ε</italic><sub><italic>i</italic></sub> and <italic>δ</italic><sub><italic>j</italic></sub> the slacks of each constraint in <xref ref-type="disp-formula" rid="pone.0270403.e015">(2)</xref>:
<disp-formula id="pone.0270403.e016"><alternatives><graphic id="pone.0270403.e016g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e016" xlink:type="simple"/><mml:math display="block" id="M16"><mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>ε</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>d</mml:mi> <mml:mo>&gt;</mml:mo> <mml:mn>0</mml:mn> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mi>d</mml:mi> <mml:mo>-</mml:mo> <mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>&gt;</mml:mo> <mml:mn>0</mml:mn> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula>
and <italic>η</italic> ≔ min{<italic>ε</italic><sub><italic>i</italic></sub>, <italic>δ</italic><sub><italic>j</italic></sub>}. We can define
<disp-formula id="pone.0270403.e017"><alternatives><graphic id="pone.0270403.e017g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e017" xlink:type="simple"/><mml:math display="block" id="M17"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mrow><mml:mo>(</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>,</mml:mo> <mml:mi>b</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msup><mml:mi>η</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:mrow><mml:mo>(</mml:mo> <mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>,</mml:mo> <mml:mi>d</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(3)</label></disp-formula>
where <inline-formula id="pone.0270403.e018"><alternatives><graphic id="pone.0270403.e018g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e018" xlink:type="simple"/><mml:math display="inline" id="M18"><mml:mrow><mml:mi>a</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>, <italic>a</italic> ≠ 0<sub><italic>p</italic></sub> and <inline-formula id="pone.0270403.e019"><alternatives><graphic id="pone.0270403.e019g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e019" xlink:type="simple"/><mml:math display="inline" id="M19"><mml:mrow><mml:mi>b</mml:mi> <mml:mo>∈</mml:mo> <mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow></mml:math></alternatives></inline-formula>.</p>
<p>Multiplying both sides of <xref ref-type="disp-formula" rid="pone.0270403.e017">(3)</xref> by <inline-formula id="pone.0270403.e020"><alternatives><graphic id="pone.0270403.e020g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e020" xlink:type="simple"/><mml:math display="inline" id="M20"><mml:msup><mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>x</mml:mi> <mml:mi>i</mml:mi> <mml:mi>t</mml:mi></mml:msubsup> <mml:mo>,</mml:mo> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>t</mml:mi></mml:msup></mml:math></alternatives></inline-formula> we have:
<disp-formula id="pone.0270403.e021"><alternatives><graphic id="pone.0270403.e021g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e021" xlink:type="simple"/><mml:math display="block" id="M21"><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>=</mml:mo> <mml:msup><mml:mi>η</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:mrow><mml:mo>(</mml:mo> <mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>d</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msup><mml:mi>η</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:msub><mml:mi>ε</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>Similarly, multiplying <xref ref-type="disp-formula" rid="pone.0270403.e017">(3)</xref> by <inline-formula id="pone.0270403.e022"><alternatives><graphic id="pone.0270403.e022g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e022" xlink:type="simple"/><mml:math display="inline" id="M22"><mml:msup><mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>y</mml:mi> <mml:mi>j</mml:mi> <mml:mi>t</mml:mi></mml:msubsup> <mml:mo>,</mml:mo> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>t</mml:mi></mml:msup></mml:math></alternatives></inline-formula> we have:
<disp-formula id="pone.0270403.e023"><alternatives><graphic id="pone.0270403.e023g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e023" xlink:type="simple"/><mml:math display="block" id="M23"><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>=</mml:mo> <mml:msup><mml:mi>η</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:mrow><mml:mo>(</mml:mo> <mml:msup><mml:mi>c</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>d</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mo>-</mml:mo> <mml:msup><mml:mi>η</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≤</mml:mo> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>Therefore, the pair (<italic>a</italic>, <italic>b</italic>) is a solution of the system <xref ref-type="disp-formula" rid="pone.0270403.e012">(1)</xref>.</p>
<p>Conversely, if the system <xref ref-type="disp-formula" rid="pone.0270403.e012">(1)</xref> has a solution (<italic>a</italic>, <italic>b</italic>), then <inline-formula id="pone.0270403.e024"><alternatives><graphic id="pone.0270403.e024g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e024" xlink:type="simple"/><mml:math display="inline" id="M24"><mml:mrow><mml:mi>H</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>}</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> verifies
<disp-formula id="pone.0270403.e025"><alternatives><graphic id="pone.0270403.e025g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e025" xlink:type="simple"/><mml:math display="block" id="M25"><mml:mrow><mml:mo>{</mml:mo><mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>&gt;</mml:mo> <mml:mi>b</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≤</mml:mo> <mml:mi>b</mml:mi> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>&lt;</mml:mo> <mml:mi>b</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>Moreover, <italic>a</italic> ≠ 0<sub><italic>p</italic></sub> (otherwise, <italic>b</italic> + 1 ≤ 0 ≤ −1). Hence, <italic>H</italic> is a hyperplane separating strictly <bold>X</bold> and <bold>Y</bold>.</p>
<p>Such hyperplane will be referred to as a <italic>separator hyperplane</italic>. This proposition leads us to locate sets <bold>X</bold> and <bold>Y</bold> as it is showed in <xref ref-type="fig" rid="pone.0270403.g002">Fig 2</xref>, regarding the hyperplanes
<disp-formula id="pone.0270403.e026"><alternatives><graphic id="pone.0270403.e026g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e026" xlink:type="simple"/><mml:math display="block" id="M26"><mml:mrow><mml:mi>H</mml:mi> <mml:mo>=</mml:mo> <mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>}</mml:mo> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula> <disp-formula id="pone.0270403.e027"><alternatives><graphic id="pone.0270403.e027g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e027" xlink:type="simple"/><mml:math display="block" id="M27"><mml:mrow><mml:msub><mml:mi>H</mml:mi> <mml:mrow><mml:mo>+</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>}</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></disp-formula>
and
<disp-formula id="pone.0270403.e028"><alternatives><graphic id="pone.0270403.e028g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e028" xlink:type="simple"/><mml:math display="block" id="M28"><mml:mrow><mml:msub><mml:mi>H</mml:mi> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>{</mml:mo> <mml:mi>x</mml:mi> <mml:mo>∈</mml:mo> <mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup> <mml:mo>|</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mi>x</mml:mi> <mml:mo>=</mml:mo> <mml:mi>b</mml:mi> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
<fig id="pone.0270403.g002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.g002</object-id>
<label>Fig 2</label>
<caption>
<title>Situation of X and Y related to <italic>H</italic>, <italic>H</italic><sub>+1</sub> and <italic>H</italic><sub>−1</sub>.</title>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.g002" xlink:type="simple"/>
</fig>
<p>On the other hand, if <xref ref-type="disp-formula" rid="pone.0270403.e012">(1)</xref> is an inconsistient system, there exists some <italic>i</italic> ∈ {1, …, <italic>n</italic><sub>1</sub>} for which <italic>b</italic> + 1 − <italic>a</italic><sup><italic>t</italic></sup> <italic>x</italic><sub><italic>i</italic></sub> &gt; 0 or <italic>j</italic> ∈ {1, …, <italic>n</italic><sub>2</sub>} for which <italic>a</italic><sup><italic>t</italic></sup> <italic>y</italic><sub><italic>j</italic></sub> − <italic>b</italic> + 1 &gt; 0. Therefore, we can take the following values as error measure of each element:
<disp-formula id="pone.0270403.e029"><alternatives><graphic id="pone.0270403.e029g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e029" xlink:type="simple"/><mml:math display="block" id="M29"><mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>,</mml:mo> <mml:mspace width="5.69046pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula></p>
<p>Adding all these measures weighted by <italic>m</italic><sub><italic>i</italic></sub> and <italic>w</italic><sub><italic>j</italic></sub>, respectively, we obtain the function <italic>f</italic>, called <italic>separation error function</italic>:
<disp-formula id="pone.0270403.e030"><alternatives><graphic id="pone.0270403.e030g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e030" xlink:type="simple"/><mml:math display="block" id="M30"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>f</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>a</mml:mi> <mml:mo>,</mml:mo> <mml:mi>b</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>:</mml:mo> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub><mml:mspace width="4pt"/><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub><mml:mspace width="4pt"/><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(4)</label></disp-formula></p>
<p>The separation error function is a non-negative, convex and non-differenciable function and the aim is to solve the problem
<disp-formula id="pone.0270403.e031"><alternatives><graphic id="pone.0270403.e031g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e031" xlink:type="simple"/><mml:math display="block" id="M31"><mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>P</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>)</mml:mo> <mml:mtext>min</mml:mtext><mml:mspace width="4pt"/><mml:mi>f</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>a</mml:mi> <mml:mo>,</mml:mo> <mml:mi>b</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
<p><bold>Proposition 2</bold>. <italic>σ is consistent if and only if v</italic>(<italic>P</italic><sub>1</sub>) = 0. <italic>In such case, any optimal solution of P<sub>1</sub> defines a separator hyperplane</italic>.</p>
<p>Proof.</p>
<p>If <bold>X</bold> and <bold>Y</bold> can be strictly separated, there exists <inline-formula id="pone.0270403.e032"><alternatives><graphic id="pone.0270403.e032g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e032" xlink:type="simple"/><mml:math display="inline" id="M32"><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:math></alternatives></inline-formula> solution of <italic>σ</italic>. So, <inline-formula id="pone.0270403.e033"><alternatives><graphic id="pone.0270403.e033g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e033" xlink:type="simple"/><mml:math display="inline" id="M33"><mml:mrow><mml:mi>f</mml:mi> <mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo> <mml:mo>=</mml:mo> <mml:mn>0</mml:mn></mml:mrow></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e034"><alternatives><graphic id="pone.0270403.e034g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e034" xlink:type="simple"/><mml:math display="inline" id="M34"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic><sub>1</sub>).</p>
<p>Conversely, if <inline-formula id="pone.0270403.e035"><alternatives><graphic id="pone.0270403.e035g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e035" xlink:type="simple"/><mml:math display="inline" id="M35"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic><sub>1</sub>), each term in <italic>f</italic> will be equal to zero and by Proposition 1, <bold>X</bold> and <bold>Y</bold> can be separated strictly. Moreover, <inline-formula id="pone.0270403.e036"><alternatives><graphic id="pone.0270403.e036g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e036" xlink:type="simple"/><mml:math display="inline" id="M36"><mml:mrow><mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>≠</mml:mo> <mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub></mml:mrow></mml:math></alternatives></inline-formula> because <inline-formula id="pone.0270403.e037"><alternatives><graphic id="pone.0270403.e037g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e037" xlink:type="simple"/><mml:math display="inline" id="M37"><mml:mrow><mml:mi>f</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo> <mml:mo>=</mml:mo> <mml:mn>2</mml:mn></mml:mrow></mml:math></alternatives></inline-formula> and it can not be an optimal solution of (<italic>P</italic><sub>1</sub>).</p>
<p>So, <bold>X</bold> and <bold>Y</bold> can be strictly separated if and only if <italic>v</italic>(<italic>P</italic><sub>1</sub>) = 0. But, in any case, the objective is translated in finding the solution <inline-formula id="pone.0270403.e038"><alternatives><graphic id="pone.0270403.e038g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e038" xlink:type="simple"/><mml:math display="inline" id="M38"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> to the problem (<italic>P</italic><sub>1</sub>). We approach this task through a linear problem equivalent to (<italic>P</italic><sub>1</sub>), whose optimal solutions will define our discriminant hyperplane, that is, the hyperplane that minimizes the separation error function.</p>
<p><bold>Proposition 3</bold>. (<italic>P</italic><sub>1</sub>) <italic>is equivalent to the problem</italic> <disp-formula id="pone.0270403.e039"><alternatives><graphic id="pone.0270403.e039g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e039" xlink:type="simple"/><mml:math display="block" id="M39"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mtable><mml:mtr><mml:mtd columnalign="left"><mml:mrow><mml:mo>(</mml:mo> <mml:mi>P</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mtd> <mml:mtd columnalign="left"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>M</mml:mi> <mml:mi>i</mml:mi> <mml:mi>n</mml:mi> <mml:mspace width="1em"/><mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mstyle></mml:mtd> <mml:mtd/></mml:mtr> <mml:mtr><mml:mtd/><mml:mtd columnalign="left"><mml:mrow><mml:mi mathvariant="normal">s</mml:mi> <mml:mo>.</mml:mo> <mml:mi mathvariant="normal">t</mml:mi> <mml:mo>.</mml:mo></mml:mrow></mml:mtd> <mml:mtd/></mml:mtr> <mml:mtr><mml:mtd/><mml:mtd columnalign="left"><mml:mrow><mml:mspace width="1em"/><mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mo>-</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo></mml:mrow></mml:mtd> <mml:mtd columnalign="left"><mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd/><mml:mtd columnalign="left"><mml:mrow><mml:mspace width="1em"/><mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mn>0</mml:mn></mml:mrow></mml:mtd> <mml:mtd columnalign="left"><mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd/><mml:mtd columnalign="left"><mml:mrow><mml:mspace width="1em"/><mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo></mml:mrow></mml:mtd> <mml:mtd columnalign="left"><mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd/><mml:mtd columnalign="left"><mml:mrow><mml:mspace width="1em"/><mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mn>0</mml:mn></mml:mrow></mml:mtd> <mml:mtd columnalign="left"><mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula> <italic>where the objective is finding</italic> (<italic>a</italic>, <italic>b</italic>), <italic>that define the hyperplane, with the support of the variables u</italic><sub><italic>i</italic></sub> <italic>and v</italic><sub><italic>j</italic></sub> <italic>that identify potential errors to be minimized</italic>.</p>
<p>Proof.</p>
<p>Since each of the functions to maximize in each operand in <xref ref-type="disp-formula" rid="pone.0270403.e030">(4)</xref> is convex, we have
<disp-formula id="pone.0270403.e040"><alternatives><graphic id="pone.0270403.e040g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e040" xlink:type="simple"/><mml:math display="block" id="M40"><mml:mrow><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mtext>min</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>∈</mml:mo> <mml:msub><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mo>+</mml:mo></mml:msub> <mml:mo>∣</mml:mo> <mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>}</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></disp-formula>
and
<disp-formula id="pone.0270403.e041"><alternatives><graphic id="pone.0270403.e041g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e041" xlink:type="simple"/><mml:math display="block" id="M41"><mml:mrow><mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mtext>min</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>∈</mml:mo> <mml:msub><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mo>+</mml:mo></mml:msub> <mml:mo>∣</mml:mo> <mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:msup><mml:mi>a</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>}</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>It allows us to reformulate our initial problem as the equivalent problem (<italic>P</italic>) in the following sense [<xref ref-type="bibr" rid="pone.0270403.ref013">13</xref>]:</p>
<list list-type="order">
<list-item><p>If <inline-formula id="pone.0270403.e042"><alternatives><graphic id="pone.0270403.e042g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e042" xlink:type="simple"/><mml:math display="inline" id="M42"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic><sub>1</sub>), then taking
<disp-formula id="pone.0270403.e043"><alternatives><graphic id="pone.0270403.e043g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e043" xlink:type="simple"/><mml:math display="block" id="M43"><mml:mrow><mml:msub><mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mo>-</mml:mo> <mml:msup><mml:mover accent="true"><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:mover accent="true"><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mtext>,</mml:mtext> <mml:mspace width="4pt"/><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula>
and
<disp-formula id="pone.0270403.e044"><alternatives><graphic id="pone.0270403.e044g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e044" xlink:type="simple"/><mml:math display="block" id="M44"><mml:mrow><mml:msub><mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mo>-</mml:mo> <mml:mover accent="true"><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:msup><mml:mover accent="true"><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mtext>,</mml:mtext> <mml:mspace width="4pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula>
then <inline-formula id="pone.0270403.e045"><alternatives><graphic id="pone.0270403.e045g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e045" xlink:type="simple"/><mml:math display="inline" id="M45"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic>).</p></list-item>
<list-item><p>If <inline-formula id="pone.0270403.e046"><alternatives><graphic id="pone.0270403.e046g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e046" xlink:type="simple"/><mml:math display="inline" id="M46"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic>), then <inline-formula id="pone.0270403.e047"><alternatives><graphic id="pone.0270403.e047g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e047" xlink:type="simple"/><mml:math display="inline" id="M47"><mml:mrow><mml:msub><mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mover accent="true"><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:msup><mml:mover accent="true"><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> for <italic>i</italic> = 1, …, <italic>n</italic><sub>1</sub> and <inline-formula id="pone.0270403.e048"><alternatives><graphic id="pone.0270403.e048g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e048" xlink:type="simple"/><mml:math display="inline" id="M48"><mml:mrow><mml:msub><mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mtext>max</mml:mtext> <mml:mrow><mml:mo>{</mml:mo> <mml:mo>-</mml:mo> <mml:mover accent="true"><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:msup><mml:mover accent="true"><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>t</mml:mi></mml:msup> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mn>0</mml:mn> <mml:mo>}</mml:mo></mml:mrow> <mml:mtext>,</mml:mtext> <mml:mspace width="4pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e049"><alternatives><graphic id="pone.0270403.e049g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e049" xlink:type="simple"/><mml:math display="inline" id="M49"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic><sub>1</sub>).</p></list-item>
</list>
<p>(<italic>P</italic>) is a solvable problem and every optimal solution will provide a discriminant hyperplane that minimizes the separation error as long as <italic>a</italic> ≠ 0<sub><italic>p</italic></sub>. We can state that if <italic>v</italic>(<italic>P</italic>) = 0, this situation is guaranteed by Proposition 2 but, if <italic>v</italic>(<italic>P</italic>) &gt; 0, we need to add a very weak condition on the data sets (in the sense that it will usually be verified), what we will prove in the following proposition. Let us remember that in a linear problem, a necessary and sufficient condition for <inline-formula id="pone.0270403.e050"><alternatives><graphic id="pone.0270403.e050g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e050" xlink:type="simple"/><mml:math display="inline" id="M50"><mml:mover><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover></mml:math></alternatives></inline-formula> to be an optimal solution is that the objective vector can be written as a non-negative linear combination of the active constraints on <inline-formula id="pone.0270403.e051"><alternatives><graphic id="pone.0270403.e051g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e051" xlink:type="simple"/><mml:math display="inline" id="M51"><mml:mover><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover></mml:math></alternatives></inline-formula>.</p>
<p><bold>Proposition 4</bold> <italic>If v</italic>(<italic>P</italic>) &gt; 0 <italic>and</italic> <inline-formula id="pone.0270403.e052"><alternatives><graphic id="pone.0270403.e052g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e052" xlink:type="simple"/><mml:math display="inline" id="M52"><mml:mrow><mml:mover accent="true"><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>≠</mml:mo> <mml:mover accent="true"><mml:mi>y</mml:mi> <mml:mo>¯</mml:mo></mml:mover></mml:mrow></mml:math></alternatives></inline-formula>, <italic>with</italic> <inline-formula id="pone.0270403.e053"><alternatives><graphic id="pone.0270403.e053g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e053" xlink:type="simple"/><mml:math display="inline" id="M53"><mml:mrow><mml:mover accent="true"><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></alternatives></inline-formula> <italic>and</italic> <inline-formula id="pone.0270403.e054"><alternatives><graphic id="pone.0270403.e054g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e054" xlink:type="simple"/><mml:math display="inline" id="M54"><mml:mrow><mml:mover accent="true"><mml:mi>y</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:math></alternatives></inline-formula> <italic>there exist an optimal solution of</italic> (<italic>P</italic>) <italic>that gives a discriminant hyperplane</italic>.</p>
<p>Proof.</p>
<p>Let us suppose that <inline-formula id="pone.0270403.e055"><alternatives><graphic id="pone.0270403.e055g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e055" xlink:type="simple"/><mml:math display="inline" id="M55"><mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>,</mml:mo> <mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> is an optimal solution of (<italic>P</italic>) with <inline-formula id="pone.0270403.e056"><alternatives><graphic id="pone.0270403.e056g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e056" xlink:type="simple"/><mml:math display="inline" id="M56"><mml:mrow><mml:mover><mml:mi>a</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>=</mml:mo> <mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>. Then,
<disp-formula id="pone.0270403.e057"><alternatives><graphic id="pone.0270403.e057g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e057" xlink:type="simple"/><mml:math display="block" id="M57"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>u</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mi>b</mml:mi> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mspace width="4pt"/><mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(5)</label></disp-formula> <disp-formula id="pone.0270403.e058"><alternatives><graphic id="pone.0270403.e058g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e058" xlink:type="simple"/><mml:math display="block" id="M58"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:mi>b</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="4pt"/><mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(6)</label></disp-formula>
and all of them will be active (otherwise, the solution is no an optimal solution). So we can consider <inline-formula id="pone.0270403.e059"><alternatives><graphic id="pone.0270403.e059g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e059" xlink:type="simple"/><mml:math display="inline" id="M59"><mml:mrow><mml:mover><mml:mi>u</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow> <mml:msub><mml:mn mathvariant="bold">1</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub></mml:mrow></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e060"><alternatives><graphic id="pone.0270403.e060g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e060" xlink:type="simple"/><mml:math display="inline" id="M60"><mml:mrow><mml:mover><mml:mi>v</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow> <mml:msub><mml:mn mathvariant="bold">1</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>, where <inline-formula id="pone.0270403.e061"><alternatives><graphic id="pone.0270403.e061g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e061" xlink:type="simple"/><mml:math display="inline" id="M61"><mml:msub><mml:mn mathvariant="bold">1</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e062"><alternatives><graphic id="pone.0270403.e062g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e062" xlink:type="simple"/><mml:math display="inline" id="M62"><mml:msub><mml:mn mathvariant="bold">1</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub></mml:math></alternatives></inline-formula> are vectors with all its elements equal to 1 in <inline-formula id="pone.0270403.e063"><alternatives><graphic id="pone.0270403.e063g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e063" xlink:type="simple"/><mml:math display="inline" id="M63"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msup></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e064"><alternatives><graphic id="pone.0270403.e064g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e064" xlink:type="simple"/><mml:math display="inline" id="M64"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msup></mml:math></alternatives></inline-formula>, respectively. Then,
<disp-formula id="pone.0270403.e065"><alternatives><graphic id="pone.0270403.e065g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e065" xlink:type="simple"/><mml:math display="block" id="M65"><mml:mrow><mml:mi>v</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>P</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>+</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:mover><mml:mi>b</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mn>2</mml:mn> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>We will distinguish the different values of <italic>b</italic> in order to determine the active constraints in each case and apply the condition that characterizes the optimality.</p>
<list list-type="simple">
<list-item>
<label>(a)</label>
<p>|<italic>b</italic>| ≠ 1. Now, the unique active constraints are <xref ref-type="disp-formula" rid="pone.0270403.e057">(5)</xref> and <xref ref-type="disp-formula" rid="pone.0270403.e058">(6)</xref> and hence,
<disp-formula id="pone.0270403.e066"><alternatives><graphic id="pone.0270403.e066g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e066" xlink:type="simple"/><mml:math display="block" id="M66"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>0</mml:mn></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mi>m</mml:mi></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mi>w</mml:mi></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mi>i</mml:mi></mml:msubsup></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>1</mml:mn></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mi>j</mml:mi></mml:msubsup></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(7)</label></disp-formula>
where λ<sub><italic>i</italic></sub> and <italic>μ</italic><sub><italic>j</italic></sub> belong to <inline-formula id="pone.0270403.e067"><alternatives><graphic id="pone.0270403.e067g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e067" xlink:type="simple"/><mml:math display="inline" id="M67"><mml:msub><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mo>+</mml:mo></mml:msub></mml:math></alternatives></inline-formula>, for all <italic>i</italic> = 1, …, <italic>n</italic><sub>1</sub> and <italic>j</italic> = 1, …, <italic>n</italic><sub>2</sub>; <inline-formula id="pone.0270403.e068"><alternatives><graphic id="pone.0270403.e068g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e068" xlink:type="simple"/><mml:math display="inline" id="M68"><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mi>i</mml:mi></mml:msubsup></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e069"><alternatives><graphic id="pone.0270403.e069g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e069" xlink:type="simple"/><mml:math display="inline" id="M69"><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mi>j</mml:mi></mml:msubsup></mml:math></alternatives></inline-formula> are the <italic>i</italic>th and <italic>j</italic>th vectors of the canonical basis in <inline-formula id="pone.0270403.e070"><alternatives><graphic id="pone.0270403.e070g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e070" xlink:type="simple"/><mml:math display="inline" id="M70"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msup></mml:math></alternatives></inline-formula> and <inline-formula id="pone.0270403.e071"><alternatives><graphic id="pone.0270403.e071g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e071" xlink:type="simple"/><mml:math display="inline" id="M71"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msup></mml:math></alternatives></inline-formula>, respectively. Then,
<disp-formula id="pone.0270403.e072"><alternatives><graphic id="pone.0270403.e072g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e072" xlink:type="simple"/><mml:math display="block" id="M72"><mml:mrow><mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><mml:mi>i</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>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula> <disp-formula id="pone.0270403.e073"><alternatives><graphic id="pone.0270403.e073g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e073" xlink:type="simple"/><mml:math display="block" id="M73"><mml:mrow><mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><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>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula>
whereas
<disp-formula id="pone.0270403.e074"><alternatives><graphic id="pone.0270403.e074g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e074" xlink:type="simple"/><mml:math display="block" id="M74"><mml:mrow><mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mo>-</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mover accent="true"><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>-</mml:mo> <mml:mover accent="true"><mml:mi>y</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
</list-item>
<list-item>
<label>(b)</label>
<p><italic>b</italic> = 1. Now, in addition to <xref ref-type="disp-formula" rid="pone.0270403.e057">(5)</xref> and <xref ref-type="disp-formula" rid="pone.0270403.e058">(6)</xref>, constraints
<disp-formula id="pone.0270403.e075"><alternatives><graphic id="pone.0270403.e075g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e075" xlink:type="simple"/><mml:math display="block" id="M75"><mml:mrow><mml:msub><mml:mi>v</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>≥</mml:mo> <mml:mn>0</mml:mn> <mml:mo>,</mml:mo> <mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>…</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula>
are active too. Hence,
<disp-formula id="pone.0270403.e076"><alternatives><graphic id="pone.0270403.e076g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e076" xlink:type="simple"/><mml:math display="block" id="M76"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>0</mml:mn></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mi>m</mml:mi></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mi>w</mml:mi></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mi>i</mml:mi></mml:msubsup></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:msub></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:mrow><mml:mo>-</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>1</mml:mn></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mi>j</mml:mi></mml:msubsup></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:mi>n</mml:mi></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>0</mml:mn></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msub><mml:mn>0</mml:mn> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:msub></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:msubsup><mml:mi>I</mml:mi> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mi>j</mml:mi></mml:msubsup></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo> <mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(8)</label></disp-formula>
where λ<sub><italic>i</italic></sub>, <italic>μ</italic><sub><italic>j</italic></sub> and <italic>δ</italic><sub><italic>j</italic></sub> belong to <inline-formula id="pone.0270403.e077"><alternatives><graphic id="pone.0270403.e077g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e077" xlink:type="simple"/><mml:math display="inline" id="M77"><mml:msub><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mo>+</mml:mo></mml:msub></mml:math></alternatives></inline-formula>, for all <italic>i</italic> = 1, …, <italic>n</italic><sub>1</sub> and <italic>j</italic> = 1, …, <italic>n</italic><sub>2</sub>. Hence,
<disp-formula id="pone.0270403.e078"><alternatives><graphic id="pone.0270403.e078g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e078" xlink:type="simple"/><mml:math display="block" id="M78"><mml:mrow><mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>m</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><mml:mi>i</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>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula> <disp-formula id="pone.0270403.e079"><alternatives><graphic id="pone.0270403.e079g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e079" xlink:type="simple"/><mml:math display="block" id="M79"><mml:mrow><mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo> <mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><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>.</mml:mo> <mml:mo>.</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula>
whereas
<disp-formula id="pone.0270403.e080"><alternatives><graphic id="pone.0270403.e080g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e080" xlink:type="simple"/><mml:math display="block" id="M80"><mml:mrow><mml:mn>0</mml:mn> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula>
which implies
<disp-formula id="pone.0270403.e081"><alternatives><graphic id="pone.0270403.e081g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e081" xlink:type="simple"/><mml:math display="block" id="M81"><mml:mrow><mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>Then,
<disp-formula id="pone.0270403.e082"><alternatives><graphic id="pone.0270403.e082g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e082" xlink:type="simple"/><mml:math display="block" id="M82"><mml:mrow><mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo></mml:mrow></mml:math></alternatives></disp-formula>
and, consequently,
<disp-formula id="pone.0270403.e083"><alternatives><graphic id="pone.0270403.e083g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e083" xlink:type="simple"/><mml:math display="block" id="M83"><mml:mrow><mml:msub><mml:mi>δ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:mn>0</mml:mn> <mml:mspace width="4pt"/><mml:mtext>and</mml:mtext> <mml:mspace width="4pt"/><mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>w</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mtext>,</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>for</mml:mtext> <mml:mspace width="4pt"/><mml:mtext>all</mml:mtext> <mml:mspace width="4pt"/><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn> <mml:mo>,</mml:mo> <mml:mo>⋯</mml:mo> <mml:mo>,</mml:mo> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></disp-formula></p>
<p>And, as in the first case,
<disp-formula id="pone.0270403.e084"><alternatives><graphic id="pone.0270403.e084g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e084" xlink:type="simple"/><mml:math display="block" id="M84"><mml:mrow><mml:msub><mml:mn>0</mml:mn> <mml:mi>p</mml:mi></mml:msub> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>1</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mo>λ</mml:mo> <mml:mi>i</mml:mi></mml:msub> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:msub><mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msub></mml:munderover> <mml:msub><mml:mi>μ</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mo>-</mml:mo> <mml:msub><mml:mi>y</mml:mi> <mml:mi>j</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mover accent="true"><mml:mi>x</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>-</mml:mo> <mml:mover accent="true"><mml:mi>y</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mo>.</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></p>
</list-item>
<list-item>
<label>(c)</label>
<p><italic>b</italic> = −1. Reasoning as in the case (b), we arise the same conclusion.</p>
</list-item>
</list>
</sec>
<sec id="sec004">
<title>Model definition for more than two data sets</title>
<p>In the case of more than two groups, we could proceed in two different ways:</p>
<list list-type="order">
<list-item>
<p>Obtain the discriminant hyperplanes for each set with respect to the rest.</p>
</list-item>
<list-item>
<p>Obtain the discriminant hyperplanes that separate the given sets by pairs. In this case, if we have <italic>k</italic> different sets, we would obtain <inline-formula id="pone.0270403.e085"><alternatives><graphic id="pone.0270403.e085g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e085" xlink:type="simple"/><mml:math display="inline" id="M85"><mml:mo>(</mml:mo> <mml:mtable><mml:mtr><mml:mtd><mml:mi>k</mml:mi></mml:mtd></mml:mtr> <mml:mtr><mml:mtd><mml:mn>2</mml:mn></mml:mtd></mml:mtr></mml:mtable> <mml:mo>)</mml:mo></mml:math></alternatives></inline-formula> equations corresponding to the discriminant hyperplanes. For each group we will consider the subgroups of equations that separate it from the rest.</p>
</list-item>
</list>
<p>In <bold>lpda</bold> package we have implemented the second option.</p>
</sec>
<sec id="sec005">
<title>Overfitting problem</title>
<p>In nowadays it is very usual being involved in projects where the number of measured variables is much higher than the number of samples. In such cases, the high dimension allows statistical methods were succesfull separating groups. However, the hyperplane can overfit the training data and as a result a bad evaluation in the data test is obtained. To avoid this problem we propose obtaining the hyperplane from Principal Components (PCs) instead of the original variables. In general, when managing large amounts of noisy but correlated data, data analysis can greatly benefit from the application of dimensionality reduction methods, such as PCA, which allows the identification of the main patterns of variability avoiding residual or non-structural variation (examples in [<xref ref-type="bibr" rid="pone.0270403.ref014">14</xref>, <xref ref-type="bibr" rid="pone.0270403.ref015">15</xref>]). Such approaches are effective in providing global understanding of most relevant information that can help to detect the differences between the studied groups.</p>
<p>PCA reduces the dimension of a set of individuals measured in a <italic>p</italic>-dimensional basis, taking advantage of the relationship between the variables. The method consists of projecting the individuals on a subspace of dimension <italic>q</italic> &lt; <italic>p</italic> extracting the major information. The solution of this problem is the subspace defined by the <italic>q</italic> eigenvectors associated with the <italic>q</italic> higher eigenvalues of the variance-covariance matrix of the data. The selected number of PCs, <italic>q</italic>, is typically obtained on the basis of the percentage of the explained variability or by a cross-validation criterion. The PCA model corresponding to a data matrix <bold>X</bold>, of dimensions <italic>n</italic> × <italic>p</italic>, gives us the following decomposition:
<disp-formula id="pone.0270403.e086"><alternatives><graphic id="pone.0270403.e086g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e086" xlink:type="simple"/><mml:math display="block" id="M86"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi mathvariant="bold">X</mml:mi> <mml:mo>=</mml:mo> <mml:msub><mml:mn mathvariant="bold">1</mml:mn> <mml:mi>n</mml:mi></mml:msub> <mml:msup><mml:mi>μ</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>+</mml:mo> <mml:mi mathvariant="bold">T</mml:mi> <mml:msup><mml:mi mathvariant="bold">P</mml:mi> <mml:mi>t</mml:mi></mml:msup> <mml:mo>+</mml:mo> <mml:mi mathvariant="bold">E</mml:mi></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(9)</label></disp-formula>
where <bold>1</bold><sub><italic>n</italic></sub> is a size <italic>n</italic> column vector of ones, <bold>μ</bold><sup><italic>t</italic></sup> is a size <italic>p</italic> row vector containing estimates of de average for each variable, scores of the individuals in each PC are collected in the matrix <bold>T</bold>, the loadings (eigenvectors) are given by the matrix <bold>P</bold> and the residuals are collected in <bold>E</bold>.</p>
<p>The aplication of <italic>LPDA</italic> to the scores, or <bold>T</bold> matrix, will provide a classification hyperplane that avoids the undesirable noise focussing in the signal of interest. For more details about the PCA model and other projection techniques see [<xref ref-type="bibr" rid="pone.0270403.ref016">16</xref>].</p>
</sec>
</sec>
<sec id="sec006">
<title>The evaluation strategy</title>
<p>To evaluate the performance of <italic>LPDA</italic> we first consider a data set with few variables to graphically inspect the behaviour of the hyperplane compared to <italic>SVM</italic>. Second, we consider an example of unbalanced and overlapping data between classes, with few variables but many individuals. Here the interest is to evaluate <italic>LPDA</italic> against other popular techniques such as <italic>SVM</italic>, <italic>LDA</italic> and Logistic Regression. Finally, we address a gene expression RNA-Seq data set, as example from the bioinformatics field, to show results with high-dimensional data. In this case, the method is compared with three classification techniques: <italic>SVM</italic> and two specific classification methods for RNA-Seq data. We describe the data and methods discussed below.</p>
<sec id="sec007">
<title>Data sets</title>
<sec id="sec008">
<title>Palmdates</title>
<p>A data set with scores of 21 palm dates including their respective Raman spectra and the concentration of five compounds covering a wide range of concentrations: fibre, glucose, fructose, sorbitol and myo-inositol. The first 11 dates are Spanish (from Elche, Alicante) with no well-defined variety and the last 10 are from other countries and varieties, mainly Arabian. The data set is available in <bold>lpda</bold> package including two data.frames: conc with 5 variables and spectra with 2050. In this paper we use only conc data.</p>
</sec>
<sec id="sec009">
<title>Default</title>
<p>A simulated data set containing information on 10.000 customers of which only 333 are default. It is an example of unbalanced data. The aim here is to predict which customers will default on their credit card debt, the minority class. This data set is in ISLR package [<xref ref-type="bibr" rid="pone.0270403.ref012">12</xref>].</p>
</sec>
<sec id="sec010">
<title>Cervical cancer</title>
<p>A data set quantifying the expression of 714 microRNAs measured to 29 samples of tumor and 29 nontumor cervical tissue samples. This data set is available in Gene Expression Omnibus (GEO) Datasets with access number GSE20592 [<xref ref-type="bibr" rid="pone.0270403.ref017">17</xref>] and we normalized with <italic>Quantile normalizaton</italic> method described in [<xref ref-type="bibr" rid="pone.0270403.ref018">18</xref>].</p>
</sec>
</sec>
<sec id="sec011">
<title>Classification methods</title>
<p><italic>SVM</italic> is a hyperplane-based classification method, as said in the introduction. This method tries to find the hyperplane with the maximum margin that separates two classes, allowing some errors in the training set to avoid overfitting [<xref ref-type="bibr" rid="pone.0270403.ref004">4</xref>, <xref ref-type="bibr" rid="pone.0270403.ref005">5</xref>]. Although <italic>SVM</italic> can also perform a non-linear classification, when dealing with so many variables there is no need of additional flexibility that will give polynomial or radial kernel models. For this reason, in next section we use linear classifiers, also called Support Vector Classifiers, for RNA-Seq example.</p>
<p>From the different packages avaible in <bold>R</bold> to apply <italic>SVM</italic> [<xref ref-type="bibr" rid="pone.0270403.ref019">19</xref>] we use the <italic>SVM</italic> implementation called <bold>e1071</bold>. The needed parameters in each application were computed with the crossvalidation proccess available in this package.</p>
<p><italic>Logistic Regression</italic> considers a linear model where the response, a binary variable representing the class, is modelled with a logistic transformation. It is considered a specific case of Generalised Linear Models that are a generalization of classical Linear Models, which can accommodate a wider class of distributions named as exponential family, providing great flexibility for modeling different types of response variables. Normal, Poisson, Binomial and Gamma are examples of this family of distributions. In Logistic Regression, Binomial distribution is considered to model the response. More details in [<xref ref-type="bibr" rid="pone.0270403.ref003">3</xref>].</p>
<p><italic>LDA</italic> computes the probabilities of belonging to each of the groups according to the available variables using Bayes Theorem (posteriori probability) and Normal distribution. The predicted class will be the one whose posteriori probability is maximum [<xref ref-type="bibr" rid="pone.0270403.ref001">1</xref>, <xref ref-type="bibr" rid="pone.0270403.ref002">2</xref>].</p>
<p>Poisson Discriminant Analysis (<italic>PDA</italic>) [<xref ref-type="bibr" rid="pone.0270403.ref020">20</xref>] and Negative Binomial Discriminant Analysis (<italic>NBDA</italic>) [<xref ref-type="bibr" rid="pone.0270403.ref021">21</xref>] are specific methods for RNA-Seq samples classification. They can be considered as an extension of the <italic>LDA</italic> because they are Bayes rule-based classifiers taking into account the discrete count distribution inherent in these data.</p>
</sec>
</sec>
<sec id="sec012" sec-type="results">
<title>Results</title>
<p>We begin this section with palmdates data set to show a comparison between <italic>LPDA</italic> and <italic>SVM</italic> graphically. Then we show the results with Default data that is an unbalanced overlapped data set with a high number of samples where the separation is not possible. Finally, we present the application of <italic>LPDA</italic> and other methods to Cervical cancer RNA-Seq data.</p>
<sec id="sec013">
<title>Palmdates data</title>
<p>As <italic>SVM</italic> and <italic>LPDA</italic> are methods based in hyperplanes separation, it is worth taking a closer look at this comparison. By comparing results of <italic>SVM</italic> and <italic>LPDA</italic> to different data sets we have seen that working with a high number of variables or having clear differences between groups, both methods are succesfull separating groups. However when having few variables or existing overlaps between groups, we find some differences. As example we show pairwise variables comparison of palmdates concentration data. We consider 4 variables: fibre, fructose, sorbitol and myo-inositol, avoiding glucose because it is highly correlated with fructose and gives repeated results. <xref ref-type="fig" rid="pone.0270403.g003">Fig 3</xref> shows cases where both methods are successfull but the hyperplanes are slight different and <xref ref-type="fig" rid="pone.0270403.g004">Fig 4</xref> shows cases where <italic>LPDA</italic> gets less separation errors than <italic>SVM</italic>: only one predicted error with <italic>LPDA</italic> in the third comparison meanwhile there are 1, 2 and 7 errors respectively with <italic>SVM</italic>.</p>
<fig id="pone.0270403.g003" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.g003</object-id>
<label>Fig 3</label>
<caption>
<title>Examples where both methods are successfull but the hyperplanes are slight different.</title>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.g003" xlink:type="simple"/>
</fig>
<fig id="pone.0270403.g004" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.g004</object-id>
<label>Fig 4</label>
<caption>
<title>Examples where <italic>LPDA</italic> gets less separation errors than <italic>SVM</italic>.</title>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.g004" xlink:type="simple"/>
</fig>
</sec>
<sec id="sec014">
<title>Default data</title>
<p>Another advantage we have found in <italic>LPDA</italic> with respect other techniques in several data sets is the good treatment of unbalanced data. These data is frequently encountered in biomedical and bioinformatics studies, where the group it is desired to predict is much smaller than the other one. General methods try to minimice the global error thus disadvantaging the minority class. Specific techniques are emerging for dealing with this problem [<xref ref-type="bibr" rid="pone.0270403.ref022">22</xref>]. Weights <italic>m</italic><sub><italic>i</italic></sub> and <italic>w</italic><sub><italic>j</italic></sub> considered by <italic>LPDA</italic> inside each group, mitigate this problem, meanwhile other techiques as <italic>SVM</italic> need to specify additional arguments when this situation arrises [<xref ref-type="bibr" rid="pone.0270403.ref023">23</xref>].</p>
<p>Default data is an example of unbalanced data that illustrates the problem clearly because only 0.3% of the data belongs to the group of interest (default class) that is desired to predict with low error. <xref ref-type="table" rid="pone.0270403.t001">Table 1</xref> shows sensitivity, especificity and the clasification error obtained with <italic>LPDA</italic>, weighted-<italic>SVM</italic>, Logistic Regression and <italic>LDA</italic>. We call weighted-<italic>SVM</italic> results of <italic>SVM</italic> applied considering as weights for each class the inverse of their sizes. As the interest is the good prediction in the default class, identified as the positive class, we must focuss in the sensitivity or percentage of True Positives detected. We observe that <italic>LDA</italic> and Logistic Regression give low sentitivity meanwhile <italic>LPDA</italic> gives a sensitivity very near the obtained with weighted-<italic>SVM</italic> and higher specificity, thus less global error.</p>
<table-wrap id="pone.0270403.t001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.t001</object-id>
<label>Table 1</label>
<caption>
<title>Sensitivity, specificity and classification error for default data.</title>
</caption>
<alternatives>
<graphic id="pone.0270403.t001g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.t001" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="left"/>
<th align="center">Sensitivity</th>
<th align="center">Specificity</th>
<th align="center">Classification error</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><italic>LPDA</italic></td>
<td align="char" char=".">0.9009</td>
<td align="char" char=".">0.8646</td>
<td align="char" char=".">0.1342</td>
</tr>
<tr>
<td align="left">weighted-<italic>SVM</italic></td>
<td align="char" char=".">0.9039</td>
<td align="char" char=".">0.8555</td>
<td align="char" char=".">0.1429</td>
</tr>
<tr>
<td align="left">Logistic</td>
<td align="char" char=".">0.3153</td>
<td align="char" char=".">0.2372</td>
<td align="char" char=".">0.0267</td>
</tr>
<tr>
<td align="left"><italic>LDA</italic></td>
<td align="char" char=".">0.2372</td>
<td align="char" char=".">0.9977</td>
<td align="char" char=".">0.0276</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
</sec>
<sec id="sec015">
<title>Cervical cancer RNAseq data</title>
<p>We applied <italic>LPDA</italic>, <italic>SVM</italic>, <italic>POlda</italic> and <italic>NBlda</italic>, to the cervical cancer data described before. Firstly, all the data was considered to compute the number of classification errors as a training set. None error was detected with <italic>LPDA</italic> and <italic>SVM</italic>. However, <italic>POlda</italic> and <italic>NBlda</italic> gave 3 and 4 classification error respectively, therefore, <italic>LPDA</italic> and <italic>SVM</italic> give a separate hiperplane meanwhile methods based in distributional assumptions do not.</p>
<p>We also evaluated the methods in test sets with a cross-validation strategy where the model was obtained 1000 times in different training and test sets. <xref ref-type="table" rid="pone.0270403.t002">Table 2</xref> shows the classification error rates average jointly to their confidence intervals. First, we notice the importance of the dimension reduction (<italic>LPDA-PCA</italic>) in this case, and in general when dealing with high dimensional data as RNA-Seq, which significantly reduces the error rate. We also observe that <italic>LPDA-PCA</italic> results are very similar to <italic>SVM</italic> and <italic>NBlda</italic> meanwhile <italic>LPDA</italic> without PCA results are similar to the <italic>POlda</italic> approach.</p>
<table-wrap id="pone.0270403.t002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pone.0270403.t002</object-id>
<label>Table 2</label>
<caption>
<title>Classification error test average and confidence interval in cervical cancer dataset.</title>
</caption>
<alternatives>
<graphic id="pone.0270403.t002g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0270403.t002" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="left">Method</th>
<th align="center">8 samples</th>
<th align="center">10 samples</th>
<th align="center">12 samples</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><italic>LPDA</italic></td>
<td align="center">0.102 (0.096, 0.108)</td>
<td align="center">0.106 (0.101, 0.112)</td>
<td align="center">0.100 (0.095, 0.104)</td>
</tr>
<tr>
<td align="left"><italic>LPDA-PCA</italic></td>
<td align="center">0.078 (0.072, 0.084)</td>
<td align="center">0.078 (0.072, 0.083)</td>
<td align="center">0.081 (0.076, 0.086)</td>
</tr>
<tr>
<td align="left"><italic>SVM</italic></td>
<td align="center">0.076 (0.070, 0.082)</td>
<td align="center">0.078 (0.073, 0.083)</td>
<td align="center">0.081 (0.076, 0.085)</td>
</tr>
<tr>
<td align="left"><italic>POlda</italic></td>
<td align="center">0.102 (0.096, 0.109)</td>
<td align="center">0.105 (0.099, 0.110)</td>
<td align="center">0.106 (0.101, 0.111)</td>
</tr>
<tr>
<td align="left"><italic>NBlda</italic></td>
<td align="center">0.076 (0.071, 0.082)</td>
<td align="center">0.082 (0.077, 0.087)</td>
<td align="center">0.079 (0.075, 0.084)</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
</sec>
</sec>
<sec id="sec016" sec-type="conclusions">
<title>Conclusions</title>
<p>In this work, we propose a classification method based in a linear programming problem that is efficient in multiple scenarios. First, we show the basis of the method defining an optimization problem from the idea of separating two data sets in <inline-formula id="pone.0270403.e087"><alternatives><graphic id="pone.0270403.e087g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pone.0270403.e087" xlink:type="simple"/><mml:math display="inline" id="M87"><mml:msup><mml:mi mathvariant="double-struck">R</mml:mi> <mml:mi>p</mml:mi></mml:msup></mml:math></alternatives></inline-formula>. Then we consider the aplication of PCA when having overfitting problems due to high dimensional data and also usefull for correlated data. The method has been applied to different data sets and compared with popular techniques as <italic>SVM</italic>, Logistic Regression and <italic>LDA</italic>. One of these data sets is a real RNA-Seq data for which we considered the comparison with specific methods developed for the specific problematic of this type of data (<italic>NBlda</italic> and <italic>POlda</italic>).</p>
<p>Results show that <italic>LPDA</italic> is efficient in different situations. We have demonstrated its effectiveness in unbalanced experiments where it is able to classify minority classes without adding additional considerations. Moreover, its performance in high-dimensional data sets, such as RNA-Seq data, is similar to the popular <italic>SVM</italic> and also to <italic>NBlda</italic>, developed specially for the specific problematic of this type of data considering distributional hypothesis.</p>
<p>In this paper we have applied the method only in experiments where individuals are classified in two groups, but the method is extrapolated to three or more classes making pairwise comparisons in the available R-package.</p>
<p>In conclusion, <italic>LPDA</italic> is an efficient classification method for general multivariate data.</p>
</sec>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="pone.0270403.ref001">
<label>1</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Fisher</surname> <given-names>RA</given-names></name>. <article-title>The use of multiple measurements in taxonomic problems</article-title>. <source>Eugen</source>. <year>1936</year>;<volume>7</volume>:<fpage>179</fpage>–<lpage>188</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/j.1469-1809.1936.tb02137.x" xlink:type="simple">10.1111/j.1469-1809.1936.tb02137.x</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref002">
<label>2</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Rao</surname> <given-names>CR</given-names></name>. <source>Linear Statistical Inference and its Applications</source>. <publisher-loc>New York</publisher-loc>: <publisher-name>Wiley</publisher-name>; <year>1973</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref003">
<label>3</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Nelder</surname> <given-names>JA</given-names></name>, <name name-style="western"><surname>Wedderburn</surname> <given-names>RWM</given-names></name>. <article-title>Generalized linear models</article-title>. <source>Journal of the Royal Statistical Society</source>. <year>1972</year>;<volume>Series A</volume>(<issue>135</issue>):<fpage>370</fpage>–<lpage>384</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/2344614" xlink:type="simple">10.2307/2344614</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref004">
<label>4</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Vapnik</surname> <given-names>V</given-names></name>. <source>The Nature of Statistical Learning Theory</source>. <publisher-loc>New York</publisher-loc>: <publisher-name>Springer-Verlag</publisher-name>; <year>1996</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref005">
<label>5</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Vapnik</surname> <given-names>V</given-names></name>. <source>Statistical Learning Theory</source>. <publisher-loc>New York</publisher-loc>: <publisher-name>Wiley</publisher-name>; <year>1998</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref006">
<label>6</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Carrizosa</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Morales</surname> <given-names>DR</given-names></name>. <article-title>Supervised classification and mathematical optimization</article-title>. <source>Computers &amp; Operation Research</source>. <year>2013</year>;<volume>40</volume>:<fpage>150</fpage>–<lpage>165</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cor.2012.05.015" xlink:type="simple">10.1016/j.cor.2012.05.015</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref007">
<label>7</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Duarte-Silva</surname> <given-names>AP</given-names></name>. <article-title>Optimization approaches to Supervised Classification</article-title>. <source>European Journal of Operational Research</source>. <year>2017</year>;<volume>261</volume>:<fpage>772</fpage>–<lpage>788</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.ejor.2017.02.020" xlink:type="simple">10.1016/j.ejor.2017.02.020</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref008">
<label>8</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Bal</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Örkcü</surname> <given-names>HH</given-names></name>. <article-title>A new mathematical programming approach to multi-group classification</article-title>. <source>Computers &amp; Operation Research</source>. <year>2011</year>;<volume>38</volume>:<fpage>105</fpage>–<lpage>111</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cor.2010.04.003" xlink:type="simple">10.1016/j.cor.2010.04.003</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref009">
<label>9</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Breiman</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>Friedman</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Stone</surname> <given-names>CJ</given-names></name>, <name name-style="western"><surname>Olshen</surname> <given-names>R</given-names></name>. <source>Classification and Regression Trees</source>. <publisher-loc>Boca Raton</publisher-loc>: <publisher-name>Chapman &amp; Hall/CRC</publisher-name>; <year>1984</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref010">
<label>10</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Breiman</surname> <given-names>L</given-names></name>. <article-title>Random forests</article-title>. <source>Machine Learning</source>. <year>2001</year>;<volume>45</volume>:<fpage>5</fpage>–<lpage>32</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1023/A:1010933404324" xlink:type="simple">10.1023/A:1010933404324</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref011">
<label>11</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Efron</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Hastie</surname> <given-names>T</given-names></name>. <chapter-title>Computer Age Statistical Inference</chapter-title>. <source>Algorithms, Evidence and Data Science</source>. pp.<fpage>351</fpage>–<lpage>374</lpage>. <publisher-name>Cambridge University Press</publisher-name>; <year>2016</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref012">
<label>12</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>James</surname> <given-names>G</given-names></name>. <source>An Introduction to Statistical Learning with applications in R</source>. <publisher-loc>New York</publisher-loc>: <publisher-name>Springer-Verlag</publisher-name>; <year>2013</year>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.statlearning.com" xlink:type="simple">https://www.statlearning.com</ext-link>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref013">
<label>13</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Bertsimas</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Tsitsiklis</surname> <given-names>J</given-names></name>. <article-title>Introduction to Linear Optimization</article-title>. <source>Athena Scientific</source>; <year>1998</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref014">
<label>14</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Nueda</surname> <given-names>MJ</given-names></name>, <name name-style="western"><surname>Conesa</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Westerhuis</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Hoefsloot</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Smilde</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Talón</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Ferrer</surname> <given-names>A</given-names></name>. <article-title>Discovering gene expression patterns in Time Course Microarray Experiments by ANOVA-SCA</article-title>. <source>Bioinformatics</source>. <year>2007</year>;<volume>23</volume>(<issue>14</issue>):<fpage>1792</fpage>–<lpage>1800</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/bioinformatics/btm251" xlink:type="simple">10.1093/bioinformatics/btm251</ext-link></comment> <object-id pub-id-type="pmid">17519250</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref015">
<label>15</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Nueda</surname> <given-names>MJ</given-names></name>, <name name-style="western"><surname>Ferrer</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Conesa</surname> <given-names>A</given-names></name>. <article-title>ARSyN: a method for the identification and removal of systematic noise in multifactorial time course microarray experiments</article-title>. <source>Biostatistics</source>. <year>2012</year>;<volume>13</volume>(<issue>3</issue>):<fpage>553</fpage>–<lpage>566</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/biostatistics/kxr042" xlink:type="simple">10.1093/biostatistics/kxr042</ext-link></comment> <object-id pub-id-type="pmid">22085896</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref016">
<label>16</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Smilde</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Bro</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Geladi</surname> <given-names>P</given-names></name>. <source>Multi-way Analysis</source>. <publisher-loc>England</publisher-loc>: <publisher-name>Wiley</publisher-name>; <year>2004</year>.</mixed-citation>
</ref>
<ref id="pone.0270403.ref017">
<label>17</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Witten</surname> <given-names>DM</given-names></name>, <name name-style="western"><surname>Tibshirani</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Gu</surname> <given-names>SG</given-names></name>, <name name-style="western"><surname>Fire</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Lui</surname> <given-names>W</given-names></name>. <article-title>Ultra-high throughput sequencing-based small RNA discovery and discrete statistical biomarker analysis in a collection of cervical tumours and matched controls</article-title>. <source>BMC Biol</source>. <year>2010</year>;<volume>8</volume>(<issue>58</issue>). <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/1741-7007-8-58" xlink:type="simple">10.1186/1741-7007-8-58</ext-link></comment> <object-id pub-id-type="pmid">20459774</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref018">
<label>18</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Bullard</surname> <given-names>JH</given-names></name>, <name name-style="western"><surname>Purdom</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Hansen</surname> <given-names>KD</given-names></name>, <name name-style="western"><surname>Dudoit</surname> <given-names>S</given-names></name>. <article-title>Evaluation of statistical methods for normalization and differential expression in mRNA-Seq experiments</article-title>. <source>BMC Bioinformatics</source>. <year>2010</year>;<volume>11</volume>:<fpage>94</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/1471-2105-11-94" xlink:type="simple">10.1186/1471-2105-11-94</ext-link></comment> <object-id pub-id-type="pmid">20167110</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref019">
<label>19</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Karatzoglou</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Meyer</surname> <given-names>D</given-names></name>. <article-title>Support Vector Machines in R</article-title>. <source>Journal of Statistical Software</source>. <year>2006</year>;<volume>15</volume>(<issue>9</issue>). <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.18637/jss.v015.i09" xlink:type="simple">10.18637/jss.v015.i09</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref020">
<label>20</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Witten</surname> <given-names>DM</given-names></name>. <article-title>Classification and clustering of sequencing data using a Poisson model</article-title>. <source>The Annals of Applied Statistics</source>. <year>2011</year>;<volume>5</volume>(<issue>4</issue>):<fpage>2493</fpage>–<lpage>2518</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1214/11-AOAS493" xlink:type="simple">10.1214/11-AOAS493</ext-link></comment></mixed-citation>
</ref>
<ref id="pone.0270403.ref021">
<label>21</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Dong</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Zhao</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Tong</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Wan</surname> <given-names>X</given-names></name>. <article-title>NBLDA: negative binomial linear discriminant analysis for RNA-Seq data</article-title>. <source>BMC Bioinformatics</source>. <year>2016</year>;<volume>17</volume>:<fpage>369</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/s12859-016-1208-1" xlink:type="simple">10.1186/s12859-016-1208-1</ext-link></comment> <object-id pub-id-type="pmid">27623864</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref022">
<label>22</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Boughorbel</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Jarray</surname> <given-names>F</given-names></name>, <name name-style="western"><surname>El-Anbari</surname> <given-names>M</given-names></name>. <article-title>Optimal classifier for imbalanced data using Matthews Correlation Coefficient metric</article-title>. <source>PLoS ONE</source>. <year>2017</year>;<volume>12</volume>(<issue>6</issue>):<fpage>e0177678</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pone.0177678" xlink:type="simple">10.1371/journal.pone.0177678</ext-link></comment> <object-id pub-id-type="pmid">28574989</object-id></mixed-citation>
</ref>
<ref id="pone.0270403.ref023">
<label>23</label>
<mixed-citation publication-type="other" xlink:type="simple">Akbani R, Kwek S, Japkowicz N. Applying support vector machines to imbalanced datasets. In: Machine learning: ECML 2004. p. 39-50. Springer; 2004.</mixed-citation>
</ref>
</ref-list>
</back>
</article>