<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@commons.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/commons-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/commons-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/commons-user/</id>
<updated>2013-05-23T00:30:26Z</updated>
<entry>
<title>Re: [math] Total derivative of a MultivariateVectorFunction</title>
<author><name>Luc Maisonobe &lt;luc@spaceroots.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c44a304e5-32f0-4bfa-9458-42d53b28065e@email.android.com%3e"/>
<id>urn:uuid:%3c44a304e5-32f0-4bfa-9458-42d53b28065e@email-android-com%3e</id>
<updated>2013-05-22T20:50:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;&#010;&#010;"Christoph Höger" &lt;christoph.hoeger@tu-berlin.de&gt; a écrit :&#010;&#010;&gt;Dear all,&#010;&#010;Hi Christoph,&#010;&#010;&gt;&#010;&gt;I am currently working with the DerivativeStructure-based AD framework&#010;&gt;integrated into math 3.2.&#010;&gt;&#010;&gt;Calculating the n-th order partial derivatives works fine, but I am&#010;&gt;facing some trouble calculating the n-th order total derivative of a&#010;&gt;MultivariateVectorFunction.&#010;&gt;&#010;&gt;My Idea was to have a class Derivative (implementing&#010;&gt;MultivariateVectorFunction) that delegates to its base&#010;&gt;MultivariateVectorFunction and returns the first order total derivative&#010;&gt;of that function. Chaining many such classes should create the n-th&#010;&gt;order total derivative (direct creation would be an optimization).&#010;&gt;&#010;&gt;The class looks like this:&#010;&gt;&#010;&gt;public final class Derivative implements&#010;&gt;MultivariateDifferentiableFunction {&#010;&gt;&#010;&gt;    private final MultivariateDifferentiableFunction base;&#010;&gt;&#010;&gt;    @Override&#010;&gt;    public double value(double[] point) {&#010;&gt;        final int dim = 1 + point.length / 2;&#010;&gt;&#010;&gt;     final DerivativeStructure[] dpoint = new DerivativeStructure[dim];&#010;&gt;        for (int i = 0; i &lt; dim; i++)&#010;&gt;            dpoint[i] = new DerivativeStructure(dim, 1, i, point[i]);&#010;&gt;&#010;&gt;        final double[] dvalue = base.value(dpoint).getAllDerivatives();&#010;&gt;&#010;&gt;        double ret = dvalue[0]; // 𝛿base/𝛿t&#010;&gt;&#010;&gt;        for (int i = 1; i &lt; dvalue.length; i++)&#010;&gt;            ret = dvalue[i] * point[i + dim]; // 𝛿base/𝛿point[i] *&#010;&gt;                                              // dpoint[i]/dt&#010;&gt;&#010;&gt;        return ret;&#010;&gt;    }&#010;&gt;&#010;&gt;    @Override&#010;&gt;    public DerivativeStructure value(DerivativeStructure[] point)&#010;&gt;            throws MathIllegalArgumentException {&#010;&gt;       //??&#010;&gt;        return null;&#010;&gt;    }&#010;&gt;&#010;&gt;}&#010;&gt;&#010;&gt;As you can see, the Derivative takes _more_ parameters than the base&#010;&gt;function. Those additional parameters are the total derivatives of the&#010;&gt;original parameters. The first parameter is the independent variable.&#010;&gt;&#010;&gt;This function is highly regular, and I can probably just calculate the&#010;&gt;partial derivatives directly:&#010;&gt;&#010;&gt;The partial derivative of a parameter from 1 to (dim-1) is the second&#010;&gt;order partial derivative of that parameter in base. The partial&#010;&gt;derivative of a parameter from dim upwards is the corresponding partial&#010;&gt;derivative of base.&#010;&gt;&#010;&gt;&#010;&gt;My problem is: What shall I do with the DerivativeStructure[] point I&#010;&gt;am&#010;&gt;handed from the outside? How to get them into the equation?&#010;&#010;I am not sure I understood your use case properly. I'll look at it further in the next few&#010;days.&#010;&#010;A first very quick answer is that the interface as it is defined does not seem to correspond&#010;to your needs.&#010;In the current interface, the meaning of the two "value" method is the same. So the various&#010;elements in&#010;The point array should be the same. In your case, I think you already use the array to represent&#010;derivatives&#010;of the first element, so I think you expanded the content of what should be a single DerivativeStructure&#010;instance as a double array.&#010;&#010;Are you sure you should not use a univariate function ? The DerivativeStructure argument you&#010;would get&#010;would contain all the partial derivatives already.&#010;&#010;Once again, I'm not sure I understood your example properly as I did not find the time to&#010;think about it for now.&#010;&#010;Best regards,&#010;Luc&#010;&#010;-- &#010;Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Total derivative of a MultivariateVectorFunction</title>
<author><name>Christoph Höger &lt;christoph.hoeger@tu-berlin.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c519CD245.5030302@tu-berlin.de%3e"/>
<id>urn:uuid:%3c519CD245-5030302@tu-berlin-de%3e</id>
<updated>2013-05-22T14:12:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
For the records: Please exchange MultivariateVectorFunction with&#010;MultivariateDifferentiableFunction in my mail below.&#010;&#010;Am 22.05.2013 13:52, schrieb Christoph Höger:&#010;&gt; Dear all,&#010;&gt; &#010;&gt; I am currently working with the DerivativeStructure-based AD framework&#010;&gt; integrated into math 3.2.&#010;&gt; &#010;&gt; Calculating the n-th order partial derivatives works fine, but I am&#010;&gt; facing some trouble calculating the n-th order total derivative of a&#010;&gt; MultivariateVectorFunction.&#010;&gt; &#010;&gt; My Idea was to have a class Derivative (implementing&#010;&gt; MultivariateVectorFunction) that delegates to its base&#010;&gt; MultivariateVectorFunction and returns the first order total derivative&#010;&gt; of that function. Chaining many such classes should create the n-th&#010;&gt; order total derivative (direct creation would be an optimization).&#010;&gt; &#010;&gt; The class looks like this:&#010;&gt; &#010;&gt; public final class Derivative implements&#010;&gt; MultivariateDifferentiableFunction {&#010;&gt; &#010;&gt;     private final MultivariateDifferentiableFunction base;&#010;&gt; &#010;&gt;     @Override&#010;&gt;     public double value(double[] point) {&#010;&gt;         final int dim = 1 + point.length / 2;&#010;&gt; &#010;&gt;         final DerivativeStructure[] dpoint = new DerivativeStructure[dim];&#010;&gt;         for (int i = 0; i &lt; dim; i++)&#010;&gt;             dpoint[i] = new DerivativeStructure(dim, 1, i, point[i]);&#010;&gt; &#010;&gt;         final double[] dvalue = base.value(dpoint).getAllDerivatives();&#010;&gt; &#010;&gt;         double ret = dvalue[0]; // 𝛿base/𝛿t&#010;&gt; &#010;&gt;         for (int i = 1; i &lt; dvalue.length; i++)&#010;&gt;             ret = dvalue[i] * point[i + dim]; // 𝛿base/𝛿point[i] *&#010;&gt;                                               // dpoint[i]/dt&#010;&gt; &#010;&gt;         return ret;&#010;&gt;     }&#010;&gt; &#010;&gt;     @Override&#010;&gt;     public DerivativeStructure value(DerivativeStructure[] point)&#010;&gt;             throws MathIllegalArgumentException {&#010;&gt;        //??&#010;&gt;         return null;&#010;&gt;     }&#010;&gt; &#010;&gt; }&#010;&gt; &#010;&gt; As you can see, the Derivative takes _more_ parameters than the base&#010;&gt; function. Those additional parameters are the total derivatives of the&#010;&gt; original parameters. The first parameter is the independent variable.&#010;&gt; &#010;&gt; This function is highly regular, and I can probably just calculate the&#010;&gt; partial derivatives directly:&#010;&gt; &#010;&gt; The partial derivative of a parameter from 1 to (dim-1) is the second&#010;&gt; order partial derivative of that parameter in base. The partial&#010;&gt; derivative of a parameter from dim upwards is the corresponding partial&#010;&gt; derivative of base.&#010;&gt; &#010;&gt; &#010;&gt; My problem is: What shall I do with the DerivativeStructure[] point I am&#010;&gt; handed from the outside? How to get them into the equation?&#010;&gt; &#010;&gt; &#010;&#010;&#010;-- &#010;Christoph Höger&#010;&#010;Technische Universität Berlin&#010;Fakultät IV - Elektrotechnik und Informatik&#010;Übersetzerbau und Programmiersprachen&#010;&#010;Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin&#010;&#010;Tel.: +49 (30) 314-24890&#010;E-Mail: christoph.hoeger@tu-berlin.de&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Help needed for usage of Newton-Raphson solver</title>
<author><name>Franz Simons &lt;franz.simons@wahyd.tu-berlin.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c1369229076.2374.3.camel@iwawih22%3e"/>
<id>urn:uuid:%3c1369229076-2374-3-camel@iwawih22%3e</id>
<updated>2013-05-22T13:24:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Thomas,&#010;&#010;great, it works that way! Thank you very much! It is nice that I don't&#010;have to do the derivation myself anymore! Is there any perfomance&#010;drawback if the derivation is done internally?&#010;&#010;Best regards,&#010;Franz&#010;&#010;&#010;&#010;Am Mittwoch, den 22.05.2013, 14:51 +0200 schrieb Thomas Neidhart:&#010;&gt; Hi Franz,&#010;&gt; &#010;&gt; you can take a look at the following class which is used for the unit tests:&#010;&gt; &#010;&gt; public class QuinticFunction implements UnivariateDifferentiableFunction {&#010;&gt; &#010;&gt;     /* Evaluate quintic.&#010;&gt;      * @see org.apache.commons.math3.UnivariateFunction#value(double)&#010;&gt;      */&#010;&gt;     public double value(double x) {&#010;&gt;         return (x-1)*(x-0.5)*x*(x+0.5)*(x+1);&#010;&gt;     }&#010;&gt; &#010;&gt;     public DerivativeStructure value(DerivativeStructure t) {&#010;&gt;         return&#010;&gt; t.subtract(1).multiply(t.subtract(0.5)).multiply(t).multiply(t.add(0.5)).multiply(t.add(1));&#010;&gt;     }&#010;&gt; &#010;&gt; }&#010;&gt; &#010;&gt; The DerivativeStructure provides the standard arithmetic operations which&#010;&gt; you can use.&#010;&gt; So in your case the value method would look like this imho:&#010;&gt; &#010;&gt;     public DerivativeStructure value(DerivativeStructure t) {&#010;&gt;         return t.multiply(t);&#010;&gt;     }&#010;&gt; &#010;&gt; This just a quick help from myside, Luc (Maisonobe) will surely give you&#010;&gt; more infos on how to use the DerivativeStructure.&#010;&gt; &#010;&gt; Thomas&#010;&gt; &#010;&gt; &#010;&gt; &#010;&gt; On Tue, May 21, 2013 at 4:21 PM, Franz Simons &lt;&#010;&gt; franz.simons@wahyd.tu-berlin.de&gt; wrote:&#010;&gt; &#010;&gt; &gt; Dear all,&#010;&gt; &gt;&#010;&gt; &gt; I don't understand the usage of the new DerivativeStructure in version 3&#010;&gt; &gt; of the commons math.&#010;&gt; &gt;&#010;&gt; &gt; In the old version I had the following function, which was then used in&#010;&gt; &gt; the Newton solver:&#010;&gt; &gt;&#010;&gt; &gt; public class MyFunction implements&#010;&gt; &gt;          DifferentiableUnivariateRealFunction {&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt;         public double value(double x) {&#010;&gt; &gt;                 // example value&#010;&gt; &gt;                 return x*x;&#010;&gt; &gt;         }&#010;&gt; &gt;&#010;&gt; &gt;         public UnivariateRealFunction derivative() {&#010;&gt; &gt;                 return new UnivariateRealFunction() {&#010;&gt; &gt;                         public double value(double x) {&#010;&gt; &gt;                                 // example derivative&#010;&gt; &gt;                                 return 2.*x;&#010;&gt; &gt;                         }&#010;&gt; &gt;                 }&#010;&gt; &gt;         }&#010;&gt; &gt; }&#010;&gt; &gt;&#010;&gt; &gt; To use the Newton Raphson solver in version 3, I have to implement the&#010;&gt; &gt; new UnivariateDifferentiableFunction interface:&#010;&gt; &gt;&#010;&gt; &gt; public class MyFunctionNew implements&#010;&gt; &gt;          UnivariateDifferentiableFunction {&#010;&gt; &gt;&#010;&gt; &gt;         public double value(double x) {&#010;&gt; &gt;                 // example value&#010;&gt; &gt;                 return x*x;&#010;&gt; &gt;         }&#010;&gt; &gt;&#010;&gt; &gt;         public DerivativeStructure value(DerivativeStructure t) {&#010;&gt; &gt;&#010;&gt; &gt;                 // What do I have to do here??&#010;&gt; &gt;                 // return what?&#010;&gt; &gt;         }&#010;&gt; &gt; }&#010;&gt; &gt;&#010;&gt; &gt; I don't know how to use the DerivativeStructure. What do I have to do,&#010;&gt; &gt; to get the same functionality like in the the previous function? How can&#010;&gt; &gt; I define the derivative of my function?&#010;&gt; &gt; I tried to understand from the user guide, but it wasn't clear for me.&#010;&gt; &gt;&#010;&gt; &gt; It would be great if someone could give me a hint or further explanation&#010;&gt; &gt; on this.&#010;&gt; &gt;&#010;&gt; &gt; Thank you very much in advance!&#010;&gt; &gt;&#010;&gt; &gt; Best regards,&#010;&gt; &gt; Franz&#010;&gt; &gt;&#010;&gt; &gt;&#010;&gt; &gt; ---------------------------------------------------------------------&#010;&gt; &gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; &gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &gt;&#010;&gt; &gt;&#010;&#010;-- &#010;Dipl.-Ing. Franz Simons&#010;Fachgebiet Wasserwirtschaft und Hydrosystemmodellierung&#010;Chair of Water Resources Management and Modeling of Hydrosystems&#010;&#010;Institut für Bauingenieurwesen&#010;Technische Universität Berlin | Sekr. TIB 1-B14&#010;Gustav-Meyer-Allee 25 | 13355 Berlin | Germany&#010;Tel.: +49 30 314-72429 | Fax: +49 30 314-72430&#010;franz.simons@wahyd.tu-berlin.de | www.wahyd.tu-berlin.de&#010;&#010;&#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Help needed for usage of Newton-Raphson solver</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAJSjvwt+QUcqAZXs_V8Ygg--X2v3hiQVonuLprDCikJ_ZzT0HA@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJSjvwt+QUcqAZXs_V8Ygg--X2v3hiQVonuLprDCikJ_ZzT0HA@mail-gmail-com%3e</id>
<updated>2013-05-22T12:51:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Franz,&#010;&#010;you can take a look at the following class which is used for the unit tests:&#010;&#010;public class QuinticFunction implements UnivariateDifferentiableFunction {&#010;&#010;    /* Evaluate quintic.&#010;     * @see org.apache.commons.math3.UnivariateFunction#value(double)&#010;     */&#010;    public double value(double x) {&#010;        return (x-1)*(x-0.5)*x*(x+0.5)*(x+1);&#010;    }&#010;&#010;    public DerivativeStructure value(DerivativeStructure t) {&#010;        return&#010;t.subtract(1).multiply(t.subtract(0.5)).multiply(t).multiply(t.add(0.5)).multiply(t.add(1));&#010;    }&#010;&#010;}&#010;&#010;The DerivativeStructure provides the standard arithmetic operations which&#010;you can use.&#010;So in your case the value method would look like this imho:&#010;&#010;    public DerivativeStructure value(DerivativeStructure t) {&#010;        return t.multiply(t);&#010;    }&#010;&#010;This just a quick help from myside, Luc (Maisonobe) will surely give you&#010;more infos on how to use the DerivativeStructure.&#010;&#010;Thomas&#010;&#010;&#010;&#010;On Tue, May 21, 2013 at 4:21 PM, Franz Simons &lt;&#010;franz.simons@wahyd.tu-berlin.de&gt; wrote:&#010;&#010;&gt; Dear all,&#010;&gt;&#010;&gt; I don't understand the usage of the new DerivativeStructure in version 3&#010;&gt; of the commons math.&#010;&gt;&#010;&gt; In the old version I had the following function, which was then used in&#010;&gt; the Newton solver:&#010;&gt;&#010;&gt; public class MyFunction implements&#010;&gt;          DifferentiableUnivariateRealFunction {&#010;&gt;&#010;&gt;&#010;&gt;         public double value(double x) {&#010;&gt;                 // example value&#010;&gt;                 return x*x;&#010;&gt;         }&#010;&gt;&#010;&gt;         public UnivariateRealFunction derivative() {&#010;&gt;                 return new UnivariateRealFunction() {&#010;&gt;                         public double value(double x) {&#010;&gt;                                 // example derivative&#010;&gt;                                 return 2.*x;&#010;&gt;                         }&#010;&gt;                 }&#010;&gt;         }&#010;&gt; }&#010;&gt;&#010;&gt; To use the Newton Raphson solver in version 3, I have to implement the&#010;&gt; new UnivariateDifferentiableFunction interface:&#010;&gt;&#010;&gt; public class MyFunctionNew implements&#010;&gt;          UnivariateDifferentiableFunction {&#010;&gt;&#010;&gt;         public double value(double x) {&#010;&gt;                 // example value&#010;&gt;                 return x*x;&#010;&gt;         }&#010;&gt;&#010;&gt;         public DerivativeStructure value(DerivativeStructure t) {&#010;&gt;&#010;&gt;                 // What do I have to do here??&#010;&gt;                 // return what?&#010;&gt;         }&#010;&gt; }&#010;&gt;&#010;&gt; I don't know how to use the DerivativeStructure. What do I have to do,&#010;&gt; to get the same functionality like in the the previous function? How can&#010;&gt; I define the derivative of my function?&#010;&gt; I tried to understand from the user guide, but it wasn't clear for me.&#010;&gt;&#010;&gt; It would be great if someone could give me a hint or further explanation&#010;&gt; on this.&#010;&gt;&#010;&gt; Thank you very much in advance!&#010;&gt;&#010;&gt; Best regards,&#010;&gt; Franz&#010;&gt;&#010;&gt;&#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[math] Total derivative of a MultivariateVectorFunction</title>
<author><name>Christoph Höger &lt;christoph.hoeger@tu-berlin.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c519CB18A.6010001@tu-berlin.de%3e"/>
<id>urn:uuid:%3c519CB18A-6010001@tu-berlin-de%3e</id>
<updated>2013-05-22T11:52:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,&#010;&#010;I am currently working with the DerivativeStructure-based AD framework&#010;integrated into math 3.2.&#010;&#010;Calculating the n-th order partial derivatives works fine, but I am&#010;facing some trouble calculating the n-th order total derivative of a&#010;MultivariateVectorFunction.&#010;&#010;My Idea was to have a class Derivative (implementing&#010;MultivariateVectorFunction) that delegates to its base&#010;MultivariateVectorFunction and returns the first order total derivative&#010;of that function. Chaining many such classes should create the n-th&#010;order total derivative (direct creation would be an optimization).&#010;&#010;The class looks like this:&#010;&#010;public final class Derivative implements&#010;MultivariateDifferentiableFunction {&#010;&#010;    private final MultivariateDifferentiableFunction base;&#010;&#010;    @Override&#010;    public double value(double[] point) {&#010;        final int dim = 1 + point.length / 2;&#010;&#010;        final DerivativeStructure[] dpoint = new DerivativeStructure[dim];&#010;        for (int i = 0; i &lt; dim; i++)&#010;            dpoint[i] = new DerivativeStructure(dim, 1, i, point[i]);&#010;&#010;        final double[] dvalue = base.value(dpoint).getAllDerivatives();&#010;&#010;        double ret = dvalue[0]; // 𝛿base/𝛿t&#010;&#010;        for (int i = 1; i &lt; dvalue.length; i++)&#010;            ret = dvalue[i] * point[i + dim]; // 𝛿base/𝛿point[i] *&#010;                                              // dpoint[i]/dt&#010;&#010;        return ret;&#010;    }&#010;&#010;    @Override&#010;    public DerivativeStructure value(DerivativeStructure[] point)&#010;            throws MathIllegalArgumentException {&#010;       //??&#010;        return null;&#010;    }&#010;&#010;}&#010;&#010;As you can see, the Derivative takes _more_ parameters than the base&#010;function. Those additional parameters are the total derivatives of the&#010;original parameters. The first parameter is the independent variable.&#010;&#010;This function is highly regular, and I can probably just calculate the&#010;partial derivatives directly:&#010;&#010;The partial derivative of a parameter from 1 to (dim-1) is the second&#010;order partial derivative of that parameter in base. The partial&#010;derivative of a parameter from dim upwards is the corresponding partial&#010;derivative of base.&#010;&#010;&#010;My problem is: What shall I do with the DerivativeStructure[] point I am&#010;handed from the outside? How to get them into the equation?&#010;&#010;&#010;-- &#010;Christoph Höger&#010;&#010;Technische Universität Berlin&#010;Fakultät IV - Elektrotechnik und Informatik&#010;Übersetzerbau und Programmiersprachen&#010;&#010;Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin&#010;&#010;Tel.: +49 (30) 314-24890&#010;E-Mail: christoph.hoeger@tu-berlin.de&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [dbcp] DBCP - 398 workaround</title>
<author><name>Gary Gregory &lt;garydgregory@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c-8632329085650617177@unknownmsgid%3e"/>
<id>urn:uuid:%3c-8632329085650617177@unknownmsgid%3e</id>
<updated>2013-05-21T22:31:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'll take a look tonight. It would speed things up for you if attached&#010;a patch with a unit test that reproduces the problem.&#010;&#010;Gary&#010;&#010;On May 21, 2013, at 16:42, Sarvesh Sakalanaga&#010;&lt;Sarvesh.Sakalanaga@microsoft.com&gt; wrote:&#010;&#010;&gt; Hi,&#010;&gt;&#010;&gt; Is there any work around for https://issues.apache.org/jira/browse/DBCP-398? This is&#010;stalling our production Hadoop clusters.&#010;&gt;&#010;&gt; Thanks,&#010;&gt; Sarvesh&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[dbcp] DBCP - 398 workaround</title>
<author><name>Sarvesh Sakalanaga &lt;Sarvesh.Sakalanaga@microsoft.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cc39a5d9cea9c4671b253c63c76f3634c@SN2PR03MB045.namprd03.prod.outlook.com%3e"/>
<id>urn:uuid:%3cc39a5d9cea9c4671b253c63c76f3634c@SN2PR03MB045-namprd03-prod-outlook-com%3e</id>
<updated>2013-05-21T20:32:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;Is there any work around for https://issues.apache.org/jira/browse/DBCP-398? This is stalling&#010;our production Hadoop clusters.&#010;&#010;Thanks,&#010;Sarvesh&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Commons Logging version 1.1.3 released</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c519BA960.9000008@gmail.com%3e"/>
<id>urn:uuid:%3c519BA960-9000008@gmail-com%3e</id>
<updated>2013-05-21T17:05:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello.&#010;&#010;The Apache Commons team is pleased to announce the release of&#010;commons-logging-1.1.3.&#010;&#010;Commons Logging is a thin adapter allowing configurable bridging to&#010;other, well known logging systems.&#010;&#010;Source and binary distributions are available for download&#010;from the Apache Commons download site:&#010;&#010;http://commons.apache.org/proper/commons-logging/download_logging.cgi&#010;&#010;For information on Commons Logging, please visit our website:&#010;&#010;http://commons.apache.org/logging/&#010;&#010;Details of the changes and bug fixes in this release can be found in the&#010;release notes or change-report:&#010;&#010;http://www.apache.org/dist/commons/logging/RELEASE-NOTES.txt&#010;http://commons.apache.org/proper/commons-logging/changes-report.html&#010;&#010;This release only changes the Bundle-SymbolicName in the manifest to&#010;"org.apache.commons.logging" to simplify the packaging for certain&#010;distributions.&#010;&#010;Best regards,&#010;&#010;Thomas, on behalf of the Apache Commons community&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[math] Help needed for usage of Newton-Raphson solver</title>
<author><name>Franz Simons &lt;franz.simons@wahyd.tu-berlin.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c1369146117.6686.15.camel@iwawih22%3e"/>
<id>urn:uuid:%3c1369146117-6686-15-camel@iwawih22%3e</id>
<updated>2013-05-21T14:21:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,&#010;&#010;I don't understand the usage of the new DerivativeStructure in version 3&#010;of the commons math. &#010;&#010;In the old version I had the following function, which was then used in&#010;the Newton solver:&#010;&#010;public class MyFunction implements&#010;         DifferentiableUnivariateRealFunction {&#010;&#010;&#010;&#009;public double value(double x) {&#010;&#009;&#009;// example value&#010;&#009;&#009;return x*x;&#010;&#009;}&#010;&#010;&#009;public UnivariateRealFunction derivative() {&#010;        &#009;return new UnivariateRealFunction() {          &#009;&#009;&#010;            &#009;&#009;public double value(double x) {&#010;&#009;&#009;&#009;&#009;// example derivative&#009;&#010;&#009;&#009;&#009;&#009;return 2.*x;&#010;&#009;&#009;&#009;}&#010;&#009;&#009;}&#010;&#009;}&#010;}&#010;&#010;To use the Newton Raphson solver in version 3, I have to implement the&#010;new UnivariateDifferentiableFunction interface:&#010;&#010;public class MyFunctionNew implements&#010;         UnivariateDifferentiableFunction {&#010;&#010;&#009;public double value(double x) {&#010;&#009;&#009;// example value&#010;&#009;&#009;return x*x;&#010;&#009;}&#010;&#010;&#009;public DerivativeStructure value(DerivativeStructure t) {&#010;&#010;&#009;&#009;// What do I have to do here??&#010;&#009;&#009;// return what?&#010;&#009;}&#010;}&#010;&#010;I don't know how to use the DerivativeStructure. What do I have to do,&#010;to get the same functionality like in the the previous function? How can&#010;I define the derivative of my function? &#010;I tried to understand from the user guide, but it wasn't clear for me.&#010;&#010;It would be great if someone could give me a hint or further explanation&#010;on this.&#010;&#010;Thank you very much in advance!&#010;&#010;Best regards,&#010;Franz&#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: math : optim package documentation</title>
<author><name>Gilles &lt;gilles@harfang.homelinux.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c92f1d4c9bf01527be93e0a58bbf4c1d7@scarlet.be%3e"/>
<id>urn:uuid:%3c92f1d4c9bf01527be93e0a58bbf4c1d7@scarlet-be%3e</id>
<updated>2013-05-20T22:09:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi.&#010;&#010;&gt;&#010;&gt; I am, I am a seasonned java developper and I am developping some&#010;&gt; personal research project in DSP.&#010;&gt;&#010;&gt; I need to assess different optim methods for a familly of numerically&#010;&gt; differntiable functions in R^n.&#010;&gt; So far I implemented a few of them on my own (gradient descent,&#010;&gt; Newton, quasi-Newton).&#010;&gt;&#010;&gt; I just discovered that commons-maths 3.2 provide a framework for&#010;&gt; multivariables function. So I would be very happy to use the existing&#010;&gt; optim classes as is, and also, as a base for form own development.&#010;&gt;&#010;&gt; Unfortunately, neither the online dev guide, nor the the javadoc is&#010;&gt; sufficient to use, for instance GradientMultivariateOptimizer : it &#010;&gt; has&#010;&gt; no specific javadoc for the key methods optimise and&#010;&gt; parseOptimisationData.&#010;&gt;&#010;&gt; Is there some documentation somewher to help me?&#010;&#010;The developer's guide needs updating.&#010;&#010;But in that page:&#010;   &#010;http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/scalar/GradientMultivariateOptimizer.html&#010;you can follow the link to the parent class's documentation&#010;in order to find out all the parameters used by the class.&#010;&#010;However, before you start writing code that rely on this API,&#010;be sure to read that recent thread:&#010;   http://markmail.org/thread/3fjvucyz7rax4cyi&#010;What is your opinion on the proposed change?&#010;&#010;&#010;Regards,&#010;Gilles&#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>math : optim package documentation</title>
<author><name>François Laferrière &lt;francoislaferriere2@yahoo.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c1369057100.83687.YahooMailNeo@web172105.mail.ir2.yahoo.com%3e"/>
<id>urn:uuid:%3c1369057100-83687-YahooMailNeo@web172105-mail-ir2-yahoo-com%3e</id>
<updated>2013-05-20T13:38:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,&#010;&#010;I am, I am a seasonned java developper and I am developping some personal research project&#010;in DSP.&#010;&#010;I need to assess different optim methods for a familly of numerically differntiable functions&#010;in R^n.&#010;So far I implemented a few of them on my own (gradient descent, Newton, quasi-Newton).&#010;&#010;I just discovered that commons-maths 3.2 provide a framework for multivariables function.&#010;So I would be very happy to use the existing optim classes as is, and also, as a base for&#010;form own development.&#010;&#010;Unfortunately, neither the online dev guide, nor the the javadoc is sufficient to use, for&#010;instance GradientMultivariateOptimizer : it has no specific javadoc for the key methods optimise&#010;and parseOptimisationData.&#010;&#010;Is there some documentation somewher to help me?&#010;&#010;thanks advance&#010;&#010;François Laferrière&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[daemon] How to enable JMX using the Attach API when running a Java application as a service with Procrun</title>
<author><name>Christopher BROWN &lt;brown@reflexe.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAHL_zcOgzBcnOtGZxEQkcHPHHa359XkCjcwyvCrGcbF+xGUxHQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAHL_zcOgzBcnOtGZxEQkcHPHHa359XkCjcwyvCrGcbF+xGUxHQ@mail-gmail-com%3e</id>
<updated>2013-05-17T11:00:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,&#010;&#010;I've successfully set up a Java application using procrun (using&#010;Oracle Java 6 u45, on Windows 7, 64-bit), and I'd like it to enable&#010;the JMX Attach API, as described in:&#010;http://docs.oracle.com/javase/6/docs/technotes/guides/management/agent.html&#010;&#010;When I run the application standalone, it just works (none of the&#010;"com.sun.management" system properties are required), because of the&#010;Attach API.  I could probably get things working using other&#010;properties, such as other remote protocols using port numbers and so&#010;on.  The advantage of the Attach API is that it's limited to the local&#010;machine, so I don't need to worry about remote access.  So I'd like to&#010;continue this approach, and get it working.&#010;&#010;The Java process running as a service (as Local System, the default)&#010;works fine.  But it's not visible to either "jps" or "jconsole".  I&#010;*have* ensured that :&#010;C:\Users\[USERNAME]\AppData\Local\Temp\hsperfdata_USERNAME&#010;&#010;...is accessible to "Everyone" with "Full Control" when running as a&#010;user.  Maybe it's because I need to locate the equivalent folder for&#010;"Local System" ?  I'm not sure if it's that, or if it is, where to&#010;look?&#010;&#010;The other possibility (but for which I can't find information to&#010;explain it or resolve it) is the perhaps "java.exe" starts the Attach&#010;API, and so it's short-circuited by calling directly into "jvm.dll"&#010;(as procrun does).  Or maybe a CLASSPATH error to a specific&#010;JDK-bundled JAR file?&#010;&#010;Any ideas ?&#010;&#010;Thanks,&#010;Christopher&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Speeding up optimization problem?</title>
<author><name>Thorsten Schaefer &lt;email@thorstenschaefer.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cE39F09BA-DD42-4B18-AA8E-4120B30E9F19@thorstenschaefer.de%3e"/>
<id>urn:uuid:%3cE39F09BA-DD42-4B18-AA8E-4120B30E9F19@thorstenschaefer-de%3e</id>
<updated>2013-05-10T18:23:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Thomas,&#010;&#010;Thanks for the hints.&#010;&#010;&gt; thanks for the sample code.&#010;&gt; &#010;&gt; Something that may be helpful for you:&#010;&gt; &#010;&gt; You compute the relative action frequencies for each resource and then add&#010;&gt; a constraint that they have to be equal to the expected probabilities for&#010;&gt; this action in total. This is quite a hard constraint, try to relax it like&#010;&gt; that:&#010;&#010;I tried that out and it leads to the same solution, but also the runtime doesn't change.&#010;&#010;&#010;&gt; Another observation that I have made, the resources array does contain a&#010;&gt; lot of zeros, but when creating the constraint that each resource must have&#010;&gt; one action assigned this is not taken into account (my understanding is&#010;&gt; that when in the resource array the corresponding entry is 0, this action&#010;&gt; can not be assigned to this resource), so I added also this:&#010;&gt; &#010;&gt;        if (resources[bucket][action] != 0.0) {&#010;&gt;          constraintValuesAction[currentIndex] = 1;&#010;&gt;        }&#010;&gt; &#010;&gt; this means only the actions that are available for this resource are used.&#010;&#010;This is rather a matter of data representation - the assumption that the action cannot be&#010;assigned to a resource if the value is 0 is not true, so I cannot do this optimization.&#010;&#010;Thanks anyway for the help and I guess I just wait for the 4.0 release to be able to get the&#010;result after x iterations. One minor remark as I think you are part of the developing team:&#010;&#010;The type "GoalType" is currently in the package nonlinear.scalar, but also used by linear&#010;optimizations. Maybe its a bit cleaner to move it to the optim package. &#010;&#010;Cheers,&#010;&#010;Thorsten&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[fileupload] customisation to save only one file</title>
<author><name>Diggory Hardy &lt;lists@dhardy.name&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c6688499.U9s1ojXKQk@l10036%3e"/>
<id>urn:uuid:%3c6688499-U9s1ojXKQk@l10036%3e</id>
<updated>2013-05-10T14:53:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello list,&#010;&#010;I'd like to customise fileupload to save one file according to a specific form &#010;name to a specific location, and just ignore any other information in the &#010;request. Am I right in thinking a custom FileItemFactory is the way to do &#010;this? Is it easy?&#010;&#010;I saw this page, but, well, in its current form it doesn't help much:&#010;http://commons.apache.org/proper/commons-fileupload/customizing.html&#010;&#010;Please CC/reply; I don't really want to join another list.&#010;&#010;Best regards,&#010;Diggory&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: FTPClient, resume an interrupted upload?</title>
<author><name>sebb &lt;sebbaz@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAOGo0VbJzcAZN9GhDfo8_mxa8OLBzJASOFvd8DK+z5jYTv6Pzg@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAOGo0VbJzcAZN9GhDfo8_mxa8OLBzJASOFvd8DK+z5jYTv6Pzg@mail-gmail-com%3e</id>
<updated>2013-05-08T23:21:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think you need to discover why the error is occuring and fix that.&#010;I doubt it will be possible to reuse the existing connection once an&#010;error occurs.&#010;&#010;However if that proves impossible the FTP protocol does support the&#010;REST command which tells the server where to start uploading.&#010;Obviously you have to skip the same portion of the file when you then&#010;do the transfer.&#010;&#010;On 8 May 2013 17:58, G E &lt;empaingeo@hotmail.com&gt; wrote:&#010;&gt; Alright, so I tried the last algorithme I sent you, and now I get this ^^ :&#010;&gt;&#010;&gt; 68 %&#010;&gt; java.net.SocketException: Connection reset&#010;&gt;     at java.net.SocketInputStream.read(SocketInputStream.java:168)&#010;&gt;     at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)&#010;&gt;     at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)&#010;&gt;     at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)&#010;&gt;     at java.io.InputStreamReader.read(InputStreamReader.java:167)&#010;&gt;     at java.io.BufferedReader.fill(BufferedReader.java:136)&#010;&gt;     at java.io.BufferedReader.read(BufferedReader.java:157)&#010;&gt;     at org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)&#010;&gt;     at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:314)&#010;&gt;     at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)&#010;&gt;     at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:483)&#010;&gt;     at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:556)&#010;&gt;     at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:605)&#010;&gt;     at org.apache.commons.net.ftp.FTP.pasv(FTP.java:956)&#010;&gt;     at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:806)&#010;&gt;     at org.apache.commons.net.ftp.FTPClient._storeFileStream(FTPClient.java:657)&#010;&gt;     at org.apache.commons.net.ftp.FTPClient.__storeFileStream(FTPClient.java:648)&#010;&gt;     at org.apache.commons.net.ftp.FTPClient.appendFileStream(FTPClient.java:1995)&#010;&gt;     at Main.startUpload(Main.java:356)&#010;&gt;     at Main.uploadFiles(Main.java:240)&#010;&gt;     at Main$2.actionPerformed(Main.java:154)&#010;&gt;     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)&#010;&gt;     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)&#010;&gt;     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)&#010;&gt;     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)&#010;&gt;     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:246)&#010;&gt;     at java.awt.Component.processMouseEvent(Component.java:5617)&#010;&gt;     at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)&#010;&gt;     at java.awt.Component.processEvent(Component.java:5382)&#010;&gt;     at java.awt.Container.processEvent(Container.java:2010)&#010;&gt;     at java.awt.Component.dispatchEventImpl(Component.java:4083)&#010;&gt;     at java.awt.Container.dispatchEventImpl(Container.java:2068)&#010;&gt;     at java.awt.Component.dispatchEvent(Component.java:3918)&#010;&gt;     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)&#010;&gt;     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)&#010;&gt;     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)&#010;&gt;     at java.awt.Container.dispatchEventImpl(Container.java:2054)&#010;&gt;     at java.awt.Window.dispatchEventImpl(Window.java:1801)&#010;&gt;     at java.awt.Component.dispatchEvent(Component.java:3918)&#010;&gt;     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501)&#010;&gt;     at java.awt.EventQueue.access$000(EventQueue.java:80)&#010;&gt;     at java.awt.EventQueue$1.run(EventQueue.java:462)&#010;&gt;     at java.awt.EventQueue$1.run(EventQueue.java:461)&#010;&gt;     at java.security.AccessController.doPrivileged(Native Method)&#010;&gt;     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;&gt;     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95)&#010;&gt;     at java.awt.EventQueue$2.run(EventQueue.java:476)&#010;&gt;     at java.awt.EventQueue$2.run(EventQueue.java:475)&#010;&gt;     at java.security.AccessController.doPrivileged(Native Method)&#010;&gt;     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;&gt;     at java.awt.EventQueue.dispatchEvent(EventQueue.java:473)&#010;&gt;     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)&#010;&gt;     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)&#010;&gt;     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)&#010;&gt;     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)&#010;&gt;     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)&#010;&gt;&#010;&gt; So it sounds like it's not the write methode that thrws the exception :/&#010;&gt;&#010;&gt; Any idea?&#010;&gt;&#010;&gt; Best regards, G. E.&#010;&gt;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] smoothing techniques</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c518A9F7F.3090109@gmail.com%3e"/>
<id>urn:uuid:%3c518A9F7F-3090109@gmail-com%3e</id>
<updated>2013-05-08T18:54:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 05/08/2013 07:54 PM, luca.marchetti@univr.it wrote:&#010;&gt; &#010;&gt; Dear all,&#010;&gt; I would like to know if in math commons is implemented an algorithm that can be used&#010;for cleaning a noisy time series.&#010;&gt; I have the following problem: in my Java application I need to run some calculations&#010;on a set of time series of experimental data. Before applying my algorithms, I would like&#010;to apply a suitable smoothing technique for reducing the noise in the data.&#010;&gt; Usually, when I work with Matlab, I solve the problem by means of the fitting toolbox&#010;and, more specifically, by substituting the noisy time series with those obtained by applying&#010;the Smoothing spline fitting algorithm (which is, more or less, the same of the smooth.spline&#010;algorithm implemented in R).&#010;&gt; Is there something similar implemented in math commons?&#010;&#010;Hi Luca,&#010;&#010;to smooth the output of a stochastic linear process, you can use the&#010;KalmanFilter implementation (see&#010;http://commons.apache.org/proper/commons-math/userguide/filter.html).&#010;You may need to setup your process model and define the estimated&#010;(gaussian) noise to get good results, just ask if you need help.&#010;&#010;There are also several (polynomial) fitters in the fitter package, which&#010;may do what you have in mind.&#010;&#010;Thomas&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[math] smoothing techniques</title>
<author><name>luca.marchetti@univr.it</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cfc7ce3a23cb8.518aad6f@univr.it%3e"/>
<id>urn:uuid:%3cfc7ce3a23cb8-518aad6f@univr-it%3e</id>
<updated>2013-05-08T17:54:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;Dear all,&#010;I would like to know if in math commons is implemented an algorithm that can be used for cleaning&#010;a noisy time series.&#010;I have the following problem: in my Java application I need to run some calculations on a&#010;set of time series of experimental data. Before applying my algorithms, I would like to apply&#010;a suitable smoothing technique for reducing the noise in the data.&#010;Usually, when I work with Matlab, I solve the problem by means of the fitting toolbox and,&#010;more specifically, by substituting the noisy time series with those obtained by applying the&#010;Smoothing spline fitting algorithm (which is, more or less, the same of the smooth.spline algorithm&#010;implemented in R).&#010;Is there something similar implemented in math commons?&#010;&#010;&#010;Thank you very much for the support,&#010;&#010;&#010;Luca&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: FTPClient, resume an interrupted upload?</title>
<author><name>G E &lt;empaingeo@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cBLU175-W100C407F9FA5121DE0B86BBCBB0@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU175-W100C407F9FA5121DE0B86BBCBB0@phx-gbl%3e</id>
<updated>2013-05-08T16:58:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Alright, so I tried the last algorithme I sent you, and now I get this ^^ :&#010;&#010;68 %&#010;java.net.SocketException: Connection reset&#010;    at java.net.SocketInputStream.read(SocketInputStream.java:168)&#010;    at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)&#010;    at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)&#010;    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)&#010;    at java.io.InputStreamReader.read(InputStreamReader.java:167)&#010;    at java.io.BufferedReader.fill(BufferedReader.java:136)&#010;    at java.io.BufferedReader.read(BufferedReader.java:157)&#010;    at org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)&#010;    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:314)&#010;    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)&#010;    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:483)&#010;    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:556)&#010;    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:605)&#010;    at org.apache.commons.net.ftp.FTP.pasv(FTP.java:956)&#010;    at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:806)&#010;    at org.apache.commons.net.ftp.FTPClient._storeFileStream(FTPClient.java:657)&#010;    at org.apache.commons.net.ftp.FTPClient.__storeFileStream(FTPClient.java:648)&#010;    at org.apache.commons.net.ftp.FTPClient.appendFileStream(FTPClient.java:1995)&#010;    at Main.startUpload(Main.java:356)&#010;    at Main.uploadFiles(Main.java:240)&#010;    at Main$2.actionPerformed(Main.java:154)&#010;    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)&#010;    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)&#010;    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)&#010;    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)&#010;    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:246)&#010;    at java.awt.Component.processMouseEvent(Component.java:5617)&#010;    at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)&#010;    at java.awt.Component.processEvent(Component.java:5382)&#010;    at java.awt.Container.processEvent(Container.java:2010)&#010;    at java.awt.Component.dispatchEventImpl(Component.java:4083)&#010;    at java.awt.Container.dispatchEventImpl(Container.java:2068)&#010;    at java.awt.Component.dispatchEvent(Component.java:3918)&#010;    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)&#010;    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)&#010;    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)&#010;    at java.awt.Container.dispatchEventImpl(Container.java:2054)&#010;    at java.awt.Window.dispatchEventImpl(Window.java:1801)&#010;    at java.awt.Component.dispatchEvent(Component.java:3918)&#010;    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501)&#010;    at java.awt.EventQueue.access$000(EventQueue.java:80)&#010;    at java.awt.EventQueue$1.run(EventQueue.java:462)&#010;    at java.awt.EventQueue$1.run(EventQueue.java:461)&#010;    at java.security.AccessController.doPrivileged(Native Method)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95)&#010;    at java.awt.EventQueue$2.run(EventQueue.java:476)&#010;    at java.awt.EventQueue$2.run(EventQueue.java:475)&#010;    at java.security.AccessController.doPrivileged(Native Method)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;    at java.awt.EventQueue.dispatchEvent(EventQueue.java:473)&#010;    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)&#010;    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)&#010;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)&#010;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)&#010;    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)&#010;&#010;So it sounds like it's not the write methode that thrws the exception :/&#010;&#010;Any idea?&#010;&#010;Best regards, G. E.&#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: FTPClient, resume an interrupted upload?</title>
<author><name>G E &lt;empaingeo@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cBLU175-W449CF092E5353A33E86D19BCBA0@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU175-W449CF092E5353A33E86D19BCBA0@phx-gbl%3e</id>
<updated>2013-05-07T22:08:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi and thank you for the reply. Is this what you mean : (?)&#010;&#010;OutputStream outputStream = ftpClient.storeFileStream(remoteFile);                 &#010;while ((read = inputStream.read(bytesIn)) != -1) {&#010;    try {&#010;        outputStream.write(bytesIn, 0, read);&#010;    } catch (Exception e) {&#010;        OutputStream os = ftpClient.appendFileStream(remoteFile);&#010;        os.write(bytesIn, 0, read);&#010;        os.close;&#010;    }       &#010;}&#010;Best regards.&#010;&#010;&gt; From: mcucchiara@apache.org&#010;&gt; Date: Tue, 7 May 2013 12:34:07 +0200&#010;&gt; Subject: Re: FTPClient, resume an interrupted upload?&#010;&gt; To: user@commons.apache.org&#010;&gt; &#010;&gt; Since the exception is probably thrown on outputStream.write method, you should:&#010;&gt; * create a new outputStream using appendFileStream method [1].&#010;&gt; * try to append the previously read bytesIn value&#010;&gt; &#010;&gt; &gt; OutputStream outputStream = ftpClient.storeFileStream(remoteFile);&#010;&gt; &gt;&#010;&gt; &gt;         // Transfer&#010;&gt; &gt;         while ((read = inputStream.read(bytesIn)) != -1) {&#010;&gt; &gt;             outputStream.write(bytesIn, 0, read);&#010;&gt; &gt;             transfered += read;&#010;&gt; &gt;         }&#010;&gt; &#010;&gt; [1] http://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html#appendFileStream(java.lang.String)&#010;&gt; Twitter     :http://www.twitter.com/m_cucchiara&#010;&gt; G+          :https://plus.google.com/107903711540963855921&#010;&gt; Linkedin    :http://www.linkedin.com/in/mauriziocucchiara&#010;&gt; VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara&#010;&gt; &#010;&gt; Maurizio Cucchiara&#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: FTPClient, resume an interrupted upload?</title>
<author><name>Maurizio Cucchiara &lt;mcucchiara@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCANrzj0m4BBDtE+jHD17kwZxoBApxTLn_5NAsQFcUDppu=hCu0A@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCANrzj0m4BBDtE+jHD17kwZxoBApxTLn_5NAsQFcUDppu=hCu0A@mail-gmail-com%3e</id>
<updated>2013-05-07T10:34:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Since the exception is probably thrown on outputStream.write method, you should:&#010;* create a new outputStream using appendFileStream method [1].&#010;* try to append the previously read bytesIn value&#010;&#010;&gt; OutputStream outputStream = ftpClient.storeFileStream(remoteFile);&#010;&gt;&#010;&gt;         // Transfer&#010;&gt;         while ((read = inputStream.read(bytesIn)) != -1) {&#010;&gt;             outputStream.write(bytesIn, 0, read);&#010;&gt;             transfered += read;&#010;&gt;         }&#010;&#010;[1] http://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html#appendFileStream(java.lang.String)&#010;Twitter     :http://www.twitter.com/m_cucchiara&#010;G+          :https://plus.google.com/107903711540963855921&#010;Linkedin    :http://www.linkedin.com/in/mauriziocucchiara&#010;VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara&#010;&#010;Maurizio Cucchiara&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: FTPClient, resume an interrupted upload?</title>
<author><name>G E &lt;empaingeo@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cBLU175-W196EA18CE8EE2551246AB6BCB90@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU175-W196EA18CE8EE2551246AB6BCB90@phx-gbl%3e</id>
<updated>2013-05-06T18:46:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;&#010;&#010;Hello there,&#010;&#010;thanks a lot for the reply. I set the keep alive timeout with "setControlKeepAliveTimeout(300)"&#010;but it did not work, here is the exception thrown :&#010;java.net.SocketException: Broken pipe&#010;    at java.net.SocketOutputStream.socketWrite0(Native Method)&#010;    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)&#010;    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)&#010;    at org.apache.commons.net.io.SocketOutputStream.write(SocketOutputStream.java:71)&#010;    at Main.startUpload(Main.java:349)&#010;    at Main.uploadFiles(Main.java:239)&#010;    at Main$2.actionPerformed(Main.java:153)&#010;    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)&#010;    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)&#010;    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)&#010;    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)&#010;    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:246)&#010;    at java.awt.Component.processMouseEvent(Component.java:5617)&#010;    at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)&#010;    at java.awt.Component.processEvent(Component.java:5382)&#010;    at java.awt.Container.processEvent(Container.java:2010)&#010;    at java.awt.Component.dispatchEventImpl(Component.java:4083)&#010;    at java.awt.Container.dispatchEventImpl(Container.java:2068)&#010;    at java.awt.Component.dispatchEvent(Component.java:3918)&#010;    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)&#010;    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)&#010;    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)&#010;    at java.awt.Container.dispatchEventImpl(Container.java:2054)&#010;    at java.awt.Window.dispatchEventImpl(Window.java:1801)&#010;    at java.awt.Component.dispatchEvent(Component.java:3918)&#010;    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501)&#010;    at java.awt.EventQueue.access$000(EventQueue.java:80)&#010;    at java.awt.EventQueue$1.run(EventQueue.java:462)&#010;    at java.awt.EventQueue$1.run(EventQueue.java:461)&#010;    at java.security.AccessController.doPrivileged(Native Method)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95)&#010;    at java.awt.EventQueue$2.run(EventQueue.java:476)&#010;    at java.awt.EventQueue$2.run(EventQueue.java:475)&#010;    at java.security.AccessController.doPrivileged(Native Method)&#010;    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)&#010;    at java.awt.EventQueue.dispatchEvent(EventQueue.java:473)&#010;    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)&#010;    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)&#010;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)&#010;    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)&#010;    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)&#010;&#010;The upload always fails when I ge to either 65% or 69% of the upload.&#010;&#010;Thanks for the support!&#010;Best regards,&#010;G.E.&#010;&#010;&gt; Date: Sun, 5 May 2013 18:10:05 +0200&#010;&gt; Subject: Re: FTPClient, resume an interrupted upload?&#010;&gt; From: mcucchiara@apache.org&#010;&gt; To: user@commons.apache.org&#010;&gt; &#010;&gt; By incrementing the keep alive timeout you should fix the issue.&#010;&gt; Anyway the code you posted could not work:&#010;&gt; * the output stream doesn't append to the file (there is a method for it)&#010;&gt; * the exception is probably thrown on outputStream.write, so you should try&#010;&gt; to write again the sa me byte array&#010;&#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [configuration] Intenttion of class &quot;FileBased&quot;</title>
<author><name>Oliver Heger &lt;oliver.heger@oliver-heger.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c51868FE7.9060004@oliver-heger.de%3e"/>
<id>urn:uuid:%3c51868FE7-9060004@oliver-heger-de%3e</id>
<updated>2013-05-05T16:59:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Oliver,&#010;&#010;great to get some feedback on the new re-designed trunk!&#010;&#010;Am 05.05.2013 01:17, schrieb Oliver Kopp:&#010;&gt; Hi,&#010;&gt;&#010;&gt; I'm working with the trunk version of apache.commons.configuration. There,&#010;&gt; FileHandler allows to have passed a "FileBased" object in the constructor.&#010;&gt; I thought, I could implement that interface to provide an abstraction to&#010;&gt; the underlying file system. However, if I do it htat way, there is an&#010;&gt; exception "No file name has been set!". When going through the code, it&#010;&gt; seems that this object is the internal data storage for the configuration&#010;&gt; and not the external file storage.&#010;&gt;&#010;&gt; Possibly, just the header comments of this constructor should be updated.&#010;&gt; Like sort of saying "this constructor is for internal use only".&#010;&#010;The purpose of FileHandler is to manage a file description in various &#010;formats (File, URL, file name, etc.). It can be associated with a &#010;FileBased object which has a read() and a write() method and thus more &#010;or less defines the content of the file.&#010;&#010;The typical usage scenario is that you create a FileHandler and &#010;associate it with a FileBased object (all file-based configurations now &#010;implement this interface). Then you use some of the set() methods to &#010;define the file name. Finally, you can call load() to get the FileBased &#010;object loaded. Alternatively, you can use one of the load() methods &#010;expecting a parameter (again various parameter types are supported).&#010;&#010;There is still the FileSystem class which provides an abstraction over &#010;concrete file operations. So this is probably the class you are after. &#010;(Note: I plan to move this class also into the io package. And maybe it &#010;can be a bit simplified.)&#010;&#010;HTH&#010;Oliver&#010;&#010;&gt;&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Oliver&#010;&gt;&#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: FTPClient, resume an interrupted upload?</title>
<author><name>Maurizio Cucchiara &lt;mcucchiara@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCANrzj0nHip0bDj=z_c=5j_dxnS6S5V5p6OfeisHXamneJpb0eQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCANrzj0nHip0bDj=z_c=5j_dxnS6S5V5p6OfeisHXamneJpb0eQ@mail-gmail-com%3e</id>
<updated>2013-05-05T16:10:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
By incrementing the keep alive timeout you should fix the issue.&#010;Anyway the code you posted could not work:&#010;* the output stream doesn't append to the file (there is a method for it)&#010;* the exception is probably thrown on outputStream.write, so you should try&#010;to write again the sa me byte array&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>FTPClient, resume an interrupted upload?</title>
<author><name>Geoffroy EMPAIN &lt;empaingeo@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cBLU175-W231B70624C7D59DA1A8814BCB80@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU175-W231B70624C7D59DA1A8814BCB80@phx-gbl%3e</id>
<updated>2013-05-05T07:47:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello everyone,&#010;&#010;I'm currently working on an App that uploads large PDFs to a server. The app works fine, but&#010;everytime, since the PDFs are so large (25MB), the upload takes a while, and usually after&#010;let's say 30 or 40 minutes, I get a "socketException : broken pipe". I believe that this is&#010;due to a timeout or disconnect from the server (the server cuts the connection I guess), so&#010;I moved the upload routine in a loop that has a try / catch. When an exception is thrown,&#010;I try to reconnect. It works fine. The upload starts where it stopped and completes.&#010;&#010;Problem? Well, since the upload is "broken" in two parts (or more if any other connection&#010;loss occurs), the file uploaded is broken too! I mean that's definatley normal and I unerstand&#010;why that happens, but what I'd like to know is how you can keep the upload on "hold" while&#010;trying to reconnect. I just want to be able to do a complete upload even if there are reconnections.&#010;I want my PDF to uploaded completely. Here is the code I have :&#010;&#010;// In&#010;inputStream = new FileInputStream(localFile); &#010;&#010;// For upload loop&#010;byte[] bytesIn = new byte[4096];&#010;int read = 0;&#010;&#010;// Loop until job is not completed (will try to reconnect if any exception is thrown)&#010;boolean completed = false;&#010;while (!completed){&#010;    try{&#010;&#010;        // Out&#010;        OutputStream outputStream = ftpClient.storeFileStream(remoteFile);&#010;&#010;        // Transfer                    &#010;        while ((read = inputStream.read(bytesIn)) != -1) {&#010;            outputStream.write(bytesIn, 0, read);&#010;            transfered += read;&#010;        }&#010;&#010;        // Closing streams&#010;        inputStream.close();&#010;        outputStream.close();&#010;&#010;        // Final information&#010;        completed = ftpClient.completePendingCommand();&#010;        if (completed) System.out.println("Done");&#010;        else System.out.println("Failure.");&#010;        completed = true;&#010;&#010;    } // end try &#010;    catch (Exception e) {&#010;&#010;        // Telling the user&#010;        System.out.println("Trying to reconnect...");&#010;        Thread.sleep(1000);&#010;&#010;        // Try to reconnect&#010;        ftpClient.connect(server, port);&#010;        success = ftpClient.login(user, pass);&#010;        if (success) {&#010;            System.out.println("Connection : OK");&#010;            Thread.sleep(1000);&#010;        } else {&#010;            System.out.println("Failed to connect");&#010;        }&#010;&#010;        // Set passive mode and file type to binary&#010;        ftpClient.enterLocalPassiveMode();&#010;        ftpClient.setFileType(FTPClient.BINARY_FILE_TYPE);&#010;&#010;    } // end catch&#010;} // end loop&#010;&#010;Any help will be greatly apreciated! Thanks to the community!&#010;&#010;Best regards;&#010;&#010;Geoffrey&#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[configuration] Intenttion of class &quot;FileBased&quot;</title>
<author><name>Oliver Kopp &lt;koppdev@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAA55TJrc+78ibcqAGU+_L50e6bs2NzMwA28sLY97ZgZ+yTxtaQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAA55TJrc+78ibcqAGU+_L50e6bs2NzMwA28sLY97ZgZ+yTxtaQ@mail-gmail-com%3e</id>
<updated>2013-05-04T23:17:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;I'm working with the trunk version of apache.commons.configuration. There,&#010;FileHandler allows to have passed a "FileBased" object in the constructor.&#010;I thought, I could implement that interface to provide an abstraction to&#010;the underlying file system. However, if I do it htat way, there is an&#010;exception "No file name has been set!". When going through the code, it&#010;seems that this object is the internal data storage for the configuration&#010;and not the external file storage.&#010;&#010;Possibly, just the header comments of this constructor should be updated.&#010;Like sort of saying "this constructor is for internal use only".&#010;&#010;Cheers,&#010;&#010;Oliver&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[daemon] Issue DAEMON-281</title>
<author><name>Ian Emmons &lt;iemmons@bbn.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c7ACA04C0-F8C9-4109-855B-924BA04CEAE9@bbn.com%3e"/>
<id>urn:uuid:%3c7ACA04C0-F8C9-4109-855B-924BA04CEAE9@bbn-com%3e</id>
<updated>2013-05-04T19:59:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I re-opened this issue because the previous fix didn't work.  I also attached a patch to the&#010;issue that (I believe) fixes it correctly.&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [vfs] Use File.createTempFile in DefaultFileReplicator</title>
<author><name>Gary Gregory &lt;garydgregory@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCACZkXPx2N9UUQ8dizvo5ZOp4czaqbxXO66W41128e1DB7eDxbQ@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCACZkXPx2N9UUQ8dizvo5ZOp4czaqbxXO66W41128e1DB7eDxbQ@mail-gmail-com%3e</id>
<updated>2013-05-04T18:01:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello Keith,&#010;&#010;Are you looking at the latest code from trunk?&#010;&#010;I do not see a call to createTempFile in DefaultFileReplicatorin trunk.&#010;&#010;Gary&#010;&#010;&#010;On Wed, May 1, 2013 at 12:36 PM, Keith Turner &lt;keith@deenlo.com&gt; wrote:&#010;&#010;&gt; I was looking at the code to see if collisions could occur and if it would&#010;&gt; retry in the case where collisions did occur.  It seems that collisions can&#010;&gt; occur, since the name is based on a random 16 bit in.  It seems like the&#010;&gt; code will throw an error if a collision occurs, but I am not sure.&#010;&gt;&#010;&gt; Why doesn't org.apache.commons.vfs2.impl.DefaultFileReplicator use&#010;&gt; File.createTempFile(String, String, File)?  I was thinking of&#010;&gt; subclassing DefaultFileReplicator and overriding to use&#010;&gt; File.createTempFile().  But I was wondering if there was an issue with this&#010;&gt; approach.&#010;&gt;&#010;&#010;&#010;&#010;-- &#010;E-Mail: garydgregory@gmail.com | ggregory@apache.org&#010;Java Persistence with Hibernate, Second Edition&lt;http://www.manning.com/bauer3/&gt;&#010;JUnit in Action, Second Edition &lt;http://www.manning.com/tahchiev/&gt;&#010;Spring Batch in Action &lt;http://www.manning.com/templier/&gt;&#010;Blog: http://garygregory.wordpress.com&#010;Home: http://garygregory.com/&#010;Tweet! http://twitter.com/GaryGregory&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Speeding up optimization problem?</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAJSjvwtwG=PyZ-33LifUaO+UN0xM7Q3kV=Q2+C9zDaXtOGh=Sw@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAJSjvwtwG=PyZ-33LifUaO+UN0xM7Q3kV=Q2+C9zDaXtOGh=Sw@mail-gmail-com%3e</id>
<updated>2013-05-03T14:12:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Thorsten,&#010;&#010;thanks for the sample code.&#010;&#010;Something that may be helpful for you:&#010;&#010;You compute the relative action frequencies for each resource and then add&#010;a constraint that they have to be equal to the expected probabilities for&#010;this action in total. This is quite a hard constraint, try to relax it like&#010;that:&#010;&#010;    // add constraints for action frequencies&#010;    for (int action=0; action&lt;numberOfActions; action++) {&#010;      constraints.add(new&#010;LinearConstraint(coefficientActionFrequencies[action], Relationship.LEQ,&#010;actionProbabilities[action] + 0.01));&#010;      constraints.add(new&#010;LinearConstraint(coefficientActionFrequencies[action], Relationship.GEQ,&#010;actionProbabilities[action] - 0.01));&#010;    }&#010;&#010;Another observation that I have made, the resources array does contain a&#010;lot of zeros, but when creating the constraint that each resource must have&#010;one action assigned this is not taken into account (my understanding is&#010;that when in the resource array the corresponding entry is 0, this action&#010;can not be assigned to this resource), so I added also this:&#010;&#010;        if (resources[bucket][action] != 0.0) {&#010;          constraintValuesAction[currentIndex] = 1;&#010;        }&#010;&#010;this means only the actions that are available for this resource are used.&#010;&#010;With these changes it runs a bit faster on my machine, but the absolute&#010;values are of course not comparable.&#010;&#010;Thomas&#010;&#010;&#010;&#010;On Thu, May 2, 2013 at 8:09 PM, Thorsten Schaefer &lt;email@thorstenschaefer.de&#010;&gt; wrote:&#010;&#010;&gt; Thanks Thomas for the information so far. It took me some time to create&#010;&gt; an example w/o dependencies, but here is one smaller problem which is&#010;&gt; self-contained:&#010;&gt; http://pastebin.com/7QVMMBpA&#010;&gt;&#010;&gt; Solving it on my laptop takes around 400ms, but as said, there are several&#010;&gt; hundred similar problems to solve and that in many iterations as the input&#010;&gt; (resources and payoffs) change. Note that I first solve the problem&#010;&gt; regularly using simplex, and then round the values to booleans to get a&#010;&gt; heuristic - even though it might not be conform exactly to the restrictions&#010;&gt; its a good enough heuristic for me; if there are faster heuristics for such&#010;&gt; a problem structure I'd be happy to hear them, but as far as I know Integer&#010;&gt; programming is considered harder in general.&#010;&gt; One observation I also made is: if I calculate the problem and then do it&#010;&gt; again with the same input value, giving the optimal solution as an initial&#010;&gt; guess, the runtime doesn't change at all. I suspect that the initial guess&#010;&gt; does not have any impacts on the simplex solver, but it might make sense to&#010;&gt; warn the user about it.&#010;&gt;&#010;&gt; Cheers,&#010;&gt;&#010;&gt; Thorsten&#010;&gt;&#010;&gt;&#010;&gt; On Apr 30, 2013, at 2:43 AM, Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;&#010;&gt; wrote:&#010;&gt;&#010;&gt; &gt; On 04/28/2013 11:14 PM, Thorsten Schaefer wrote:&#010;&gt; &gt;&gt; Hello,&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; I just started using common math and have a performance issue with the&#010;&gt; optimization algorithm, hoping to be able to speed it up in some way, even&#010;&gt; if this reduces the accuracy of the results.&#010;&gt; &gt;&gt;&#010;&gt; &gt;&gt; My problem is as follows:&#010;&gt; &gt;&gt; There are n resources and m actions that can be performed for each&#010;&gt; resource. Each combination of action/resource has a specific payoff, which&#010;&gt; I want to maximize. I linearized the data into rows of size (n*m). An index&#010;&gt; i has the semantics of resource=n/i and action=n%i. Each entry in a row&#010;&gt; must be non-negative, so I added a the respective constraint to the&#010;&gt; Optimization data. Furthermore, the sum of all actions for any resource&#010;&gt; needs to be 1, which are n additional constraints I have. Also, any type of&#010;&gt; action needs to be performed with a relative frequency of x% (additional&#010;&gt; constraint). And finally there are constraints for the limited number of&#010;&gt; resources.&#010;&gt; &gt;&gt; I used the SimplexSolver and can find a working solution within about&#010;&gt; half a second (the size of the problem n*m is somewhere about 2500). The&#010;&gt; problem is, that I need to perform the calculation very frequently and its&#010;&gt; currently too slow. I wonder if there is a way to restrict the number of&#010;&gt; iterations for example or tell the solver to return a solution even if&#010;&gt; there might be way better after a certain number of iterations? I tried the&#010;&gt; MaxIter constraint, which leads only to a TooManyIterations exception&#010;&gt; without being able to retrieve the result found so far. I also tried to&#010;&gt; initialize the solver with different epsilon values, but either it took the&#010;&gt; same amount of iterations (and time) or it finished with a&#010;&gt; NoFeasableSolutionException.&#010;&gt; &gt;&gt; So my question is if there is a way to get non-optimal solutions, but&#010;&gt; those quicker?&#010;&gt; &gt;&gt; If it would speed up the solution finding process, I could live with a&#010;&gt; solution where we restrict the possible results to booleans, i.e., an&#010;&gt; action for any resource is either performed never or always.&#010;&gt; &gt;&#010;&gt; &gt; Hi Thorsten,&#010;&gt; &gt;&#010;&gt; &gt; at the moment there is no way to get the best solution so far, if the&#010;&gt; &gt; maximum number of iterations has been reached.&#010;&gt; &gt;&#010;&gt; &gt; We could add a feature like this (as already several other people have&#010;&gt; &gt; requested it).&#010;&gt; &gt;&#010;&gt; &gt; Could you also attach your example somewhere, so I can take a look at it&#010;&gt; &gt; and maybe provide some more optimization tips?&#010;&gt; &gt;&#010;&gt; &gt; Thanks,&#010;&gt; &gt;&#010;&gt; &gt; Thomas&#010;&gt; &gt;&#010;&gt; &gt; ---------------------------------------------------------------------&#010;&gt; &gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; &gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &gt;&#010;&gt;&#010;&gt;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Speeding up optimization problem?</title>
<author><name>Thorsten Schaefer &lt;email@thorstenschaefer.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3c66E33742-0AC7-4B1A-AAA4-20E3A59A5207@thorstenschaefer.de%3e"/>
<id>urn:uuid:%3c66E33742-0AC7-4B1A-AAA4-20E3A59A5207@thorstenschaefer-de%3e</id>
<updated>2013-05-02T18:09:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Thomas for the information so far. It took me some time to create an example w/o dependencies,&#010;but here is one smaller problem which is self-contained:&#010;http://pastebin.com/7QVMMBpA&#010;&#010;Solving it on my laptop takes around 400ms, but as said, there are several hundred similar&#010;problems to solve and that in many iterations as the input (resources and payoffs) change.&#010;Note that I first solve the problem regularly using simplex, and then round the values to&#010;booleans to get a heuristic - even though it might not be conform exactly to the restrictions&#010;its a good enough heuristic for me; if there are faster heuristics for such a problem structure&#010;I'd be happy to hear them, but as far as I know Integer programming is considered harder in&#010;general. &#010;One observation I also made is: if I calculate the problem and then do it again with the same&#010;input value, giving the optimal solution as an initial guess, the runtime doesn't change at&#010;all. I suspect that the initial guess does not have any impacts on the simplex solver, but&#010;it might make sense to warn the user about it.&#010;&#010;Cheers,&#010;&#010;Thorsten&#010;&#010;&#010;On Apr 30, 2013, at 2:43 AM, Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt; wrote:&#010;&#010;&gt; On 04/28/2013 11:14 PM, Thorsten Schaefer wrote:&#010;&gt;&gt; Hello, &#010;&gt;&gt; &#010;&gt;&gt; I just started using common math and have a performance issue with the optimization&#010;algorithm, hoping to be able to speed it up in some way, even if this reduces the accuracy&#010;of the results.&#010;&gt;&gt; &#010;&gt;&gt; My problem is as follows:&#010;&gt;&gt; There are n resources and m actions that can be performed for each resource. Each&#010;combination of action/resource has a specific payoff, which I want to maximize. I linearized&#010;the data into rows of size (n*m). An index i has the semantics of resource=n/i and action=n%i.&#010;Each entry in a row must be non-negative, so I added a the respective constraint to the Optimization&#010;data. Furthermore, the sum of all actions for any resource needs to be 1, which are n additional&#010;constraints I have. Also, any type of action needs to be performed with a relative frequency&#010;of x% (additional constraint). And finally there are constraints for the limited number of&#010;resources.&#010;&gt;&gt; I used the SimplexSolver and can find a working solution within about half a second&#010;(the size of the problem n*m is somewhere about 2500). The problem is, that I need to perform&#010;the calculation very frequently and its currently too slow. I wonder if there is a way to&#010;restrict the number of iterations for example or tell the solver to return a solution even&#010;if there might be way better after a certain number of iterations? I tried the MaxIter constraint,&#010;which leads only to a TooManyIterations exception without being able to retrieve the result&#010;found so far. I also tried to initialize the solver with different epsilon values, but either&#010;it took the same amount of iterations (and time) or it finished with a NoFeasableSolutionException.&#010;&gt;&gt; So my question is if there is a way to get non-optimal solutions, but those quicker?&#010;&gt;&gt; If it would speed up the solution finding process, I could live with a solution where&#010;we restrict the possible results to booleans, i.e., an action for any resource is either performed&#010;never or always. &#010;&gt; &#010;&gt; Hi Thorsten,&#010;&gt; &#010;&gt; at the moment there is no way to get the best solution so far, if the&#010;&gt; maximum number of iterations has been reached.&#010;&gt; &#010;&gt; We could add a feature like this (as already several other people have&#010;&gt; requested it).&#010;&gt; &#010;&gt; Could you also attach your example somewhere, so I can take a look at it&#010;&gt; and maybe provide some more optimization tips?&#010;&gt; &#010;&gt; Thanks,&#010;&gt; &#010;&gt; Thomas&#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[vfs] Use File.createTempFile in DefaultFileReplicator</title>
<author><name>Keith Turner &lt;keith@deenlo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201305.mbox/%3cCAGUtCHqc70CYzGE3MOPO_T5qgtzAfpEsfpp4Pn9vXDV-Ou+E0A@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAGUtCHqc70CYzGE3MOPO_T5qgtzAfpEsfpp4Pn9vXDV-Ou+E0A@mail-gmail-com%3e</id>
<updated>2013-05-01T16:36:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I was looking at the code to see if collisions could occur and if it would&#010;retry in the case where collisions did occur.  It seems that collisions can&#010;occur, since the name is based on a random 16 bit in.  It seems like the&#010;code will throw an error if a collision occurs, but I am not sure.&#010;&#010;Why doesn't org.apache.commons.vfs2.impl.DefaultFileReplicator use&#010;File.createTempFile(String, String, File)?  I was thinking of&#010;subclassing DefaultFileReplicator and overriding to use&#010;File.createTempFile().  But I was wondering if there was an issue with this&#010;approach.&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Speeding up optimization problem?</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c51804676.1090409@gmail.com%3e"/>
<id>urn:uuid:%3c51804676-1090409@gmail-com%3e</id>
<updated>2013-04-30T22:32:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 04/30/2013 07:43 AM, Thomas Neidhart wrote:&#010;&gt; On 04/28/2013 11:14 PM, Thorsten Schaefer wrote:&#010;&gt;&gt; Hello, &#010;&gt;&gt;&#010;&gt;&gt; I just started using common math and have a performance issue with the optimization&#010;algorithm, hoping to be able to speed it up in some way, even if this reduces the accuracy&#010;of the results.&#010;&gt;&gt;&#010;&gt;&gt; My problem is as follows:&#010;&gt;&gt; There are n resources and m actions that can be performed for each resource. Each&#010;combination of action/resource has a specific payoff, which I want to maximize. I linearized&#010;the data into rows of size (n*m). An index i has the semantics of resource=n/i and action=n%i.&#010;Each entry in a row must be non-negative, so I added a the respective constraint to the Optimization&#010;data. Furthermore, the sum of all actions for any resource needs to be 1, which are n additional&#010;constraints I have. Also, any type of action needs to be performed with a relative frequency&#010;of x% (additional constraint). And finally there are constraints for the limited number of&#010;resources.&#010;&gt;&gt; I used the SimplexSolver and can find a working solution within about half a second&#010;(the size of the problem n*m is somewhere about 2500). The problem is, that I need to perform&#010;the calculation very frequently and its currently too slow. I wonder if there is a way to&#010;restrict the number of iterations for example or tell the solver to return a solution even&#010;if there might be way better after a certain number of iterations? I tried the MaxIter constraint,&#010;which leads only to a TooManyIterations exception without being able to retrieve the result&#010;found so far. I also tried to initialize the solver with different epsilon values, but either&#010;it took the same amount of iterations (and time) or it finished with a NoFeasableSolutionException.&#010;&gt;&gt; So my question is if there is a way to get non-optimal solutions, but those quicker?&#010;&gt;&gt; If it would speed up the solution finding process, I could live with a solution where&#010;we restrict the possible results to booleans, i.e., an action for any resource is either performed&#010;never or always. &#010;&gt; &#010;&gt; Hi Thorsten,&#010;&gt; &#010;&gt; at the moment there is no way to get the best solution so far, if the&#010;&gt; maximum number of iterations has been reached.&#010;&gt; &#010;&gt; We could add a feature like this (as already several other people have&#010;&gt; requested it).&#010;&#010;btw. I have created an issue for this:&#010;&#010;https://issues.apache.org/jira/browse/MATH-970&#010;&#010;Thomas&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>[digester] Annotations handled multiple times</title>
<author><name>Lars Francke &lt;lars.francke@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3cCAD-Ua_g9Y+pgvvZzMG8KAefLhdKW5ZJhp3Gwxn2xA99wLTzH=A@mail.gmail.com%3e"/>
<id>urn:uuid:%3cCAD-Ua_g9Y+pgvvZzMG8KAefLhdKW5ZJhp3Gwxn2xA99wLTzH=A@mail-gmail-com%3e</id>
<updated>2013-04-30T16:13:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,&#010;&#010;I'm using the Digester Annotations and everything works pretty well&#010;(looking forward to 3.3 for DIGESTER-174).&#010;&#010;We have a model where we share a "contact" class and have that&#010;annotated with an @ObjectCreate.List because it can live under&#010;multiple different elements and a tree-like structure where the top&#010;level element contains other elements that in turn have "contacts".&#010;&#010;Here's a simplified version of the schema:&#010;A(/a) has B(/a/b)&#010;A(/a) has C(/a/c)&#010;&#010;B has D(/a/b/d + /a/c/d)&#010;C has D(/a/b/d + /a/c/d)&#010;&#010;The problem now is that the AnnotationHandler processes the D element&#010;multiple times because it's being reached through multiple branches of&#010;the "tree", thus creating multiple instances of the ObjectCreateRule&#010;which are all fired and obviously screw up the stack.&#010;&#010;To me this seems like a bug and the AnnotationHandlers should check if&#010;they have already visited an element. I'm happy to file a JIRA but I&#010;wasn't sure if this might not be intended behavior for some reason I&#010;don't understand yet. Also: I might be completely wrong in my&#010;diagnosis of this problem.&#010;&#010;Any help is greatly appreciated.&#010;&#010;Cheers,&#010;Lars&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [daemon] JSVC re-exec requires execution with an absolute or relative path</title>
<author><name>Mladen Turk &lt;mturk@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c517FC192.3010405@apache.org%3e"/>
<id>urn:uuid:%3c517FC192-3010405@apache-org%3e</id>
<updated>2013-04-30T13:05:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 04/30/2013 12:47 AM, John Boyer wrote:&#010;&gt; Hi:&#010;&gt;&#010;&gt; UPDATE:&#010;&gt; The UNIX error message is referring to the absolute path of the jsvc executable. When&#010;I invoked the executable with its absolute path it worked. I assume it's the same problem&#010;on Mac OS X.&#010;&gt;&#010;&gt; /usr/local/bin/jsvc -jvm server -debug -home /usr/lib/jvm/java-6-openjdk -cp /usr/local/bin/commons-daemon-1.0.15.jar:myjar.jar&#010;MyDaemonClass&#010;&gt;&#010;&gt; I'm really happy it's working now.&#010;&gt;&#010;&#010;Yeah. Sorry, forgot that this message is for jsvc not classpath.&#010;You should either call ./jsvc or /absolute/path/jsvc&#010;The reason is again security so that child does not pick up different&#010;executable in case users and root environment PATH mismatch and both&#010;have jsvc in PATH directories in different places.&#010;Eg. a typical would be systems with jsvc inside /usr/sbin/ and you&#010;wish to start your own from /foo/bar/. It would be hard to determine&#010;which one would be called (depends on PATH)&#010;&#010;So, just use either relative or absolute paths.&#010;Actually we just test if the executable has '/' inside invocation&#010;since this prevents PATH search.&#010;&#010;&#010;Regards&#010;-- &#010;^TM&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [daemon] JSVC re-exec requires execution with an absolute or relative path</title>
<author><name>Martin Gainty &lt;mgainty@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3cBLU172-W23FF8B445114E593F3F4E4AEB30@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU172-W23FF8B445114E593F3F4E4AEB30@phx-gbl%3e</id>
<updated>2013-04-30T10:17:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
'Mornin John&#010; &#010;so to recap&#010;&#010;prepend /usr/local/bin/jsvc to $PATH&#010; &#010;put "-jvm server -debug -home /usr/lib/jvm/java-6-openjdk" ON $JAVA_OPTS&#010;&#010;prepend /usr/local/bin/commons-daemon-1.0.15.jar to $CLASSPATH&#010; &#010;then automate the process with &#010;https://github.com/jeroenr/Maven-Jsvc-Plugin&#010;&#010;glad you're on your way to a solution!&#010;&#010;Martin &#010;______________________________________________ &#010;Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité&#010;&#010;Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten&#010;wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist&#010;unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet&#010;keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen&#010;wir keine Haftung fuer den Inhalt uebernehmen.&#010;Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire&#010;prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe&#010;quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information&#010;seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les&#010;email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune&#010;responsabilité pour le contenu fourni.&#010;&#010;  &#010;&#010;&#010;&gt; Subject: Re: [daemon] JSVC re-exec requires execution with an absolute or relative path&#010;&gt; From: johnboyer99@gmail.com&#010;&gt; Date: Mon, 29 Apr 2013 15:47:57 -0700&#010;&gt; To: user@commons.apache.org&#010;&gt; &#010;&gt; Hi:&#010;&gt; &#010;&gt; UPDATE: &#010;&gt; The UNIX error message is referring to the absolute path of the jsvc executable. When&#010;I invoked the executable with its absolute path it worked. I assume it's the same problem&#010;on Mac OS X.&#010;&gt; &#010;&gt; /usr/local/bin/jsvc -jvm server -debug -home /usr/lib/jvm/java-6-openjdk -cp /usr/local/bin/commons-daemon-1.0.15.jar:myjar.jar&#010;MyDaemonClass&#010;&gt; &#010;&gt; I'm really happy it's working now.&#010;&gt; &#010;&gt; Regards,&#010;&gt; &#010;&gt; John&#010;&gt; &#010;&gt; On Apr 29, 2013, at 9:10 AM, John Boyer &lt;johnboyer99@gmail.com&gt; wrote:&#010;&gt; &#010;&gt; &gt; UPDATE: Unfortunately, using the absolute and relative classpaths results in the&#010;same error.&#010;&gt; &gt; &#010;&gt; &gt; We haven't been able to get this to work on UNIX or Mac OS X. I think we'll need&#010;to look at other alternatives such as the Java Service Wrapper.&#010;&gt; &gt; &#010;&gt; &gt; UNIX Error: "JSVC re-exec requires execution with an absolute or relative path"&#010;&gt; &gt; &#010;&gt; &gt; Mac OS X: "Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader"&#010;&gt; &gt; &#010;&gt; &gt; Regards,&#010;&gt; &gt; &#010;&gt; &gt; John&#010;&gt; &gt; &#010;&gt; &gt; &#010;&gt; &gt; On Apr 29, 2013, at 8:46 AM, John Boyer &lt;johnboyer99@gmail.com&gt; wrote:&#010;&gt; &gt; &#010;&gt; &gt;&gt; Hi TM:&#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; Thanks, I will try this. In any case, I believe if the log message mentioned&#010;the "classpath" explicitly it would have saved me a lot of time. It's unclear what the real&#010;object of the sentence is or what path it's referring to. Just spitting out the classpath&#010;in the log message would've given me a clue as to what it was complaining about.&#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; JSVC re-exec requires execution with an absolute or relative path&#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; Thanks again,&#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; John &#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; On Apr 28, 2013, at 9:42 PM, Mladen Turk &lt;mturk@apache.org&gt; wrote:&#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt;&gt; On 04/28/2013 11:05 PM, John Boyer wrote:&#010;&gt; &gt;&gt;&gt;&gt; Hello:&#010;&gt; &gt;&gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt;&gt; I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a re-exec&#010;path error. I've sunk a lot of hours into this. I'm beginning to think I should have used&#010;the Java Service Wrapper Community Edition instead.&#010;&gt; &gt;&gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt;&gt; Anyway, can anyone help me with this problem? Thank you for your time.&#010;John&#010;&gt; &gt;&gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; Like the log says. Use either absolute or relative paths.&#010;&gt; &gt;&gt;&gt; I presume you know what those concepts are.&#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; Reason for that is security. Having just 'commons-daemon-1.0.15.jar' in&#010;the classpath&#010;&gt; &gt;&gt;&gt; means it can come from anywhere in the PATH.&#010;&gt; &gt;&gt;&gt; So use&#010;&gt; &gt;&gt;&gt; -cp ./commons-daemon-1.0.15.jar:./api-monitor.jar&#010;&gt; &gt;&gt;&gt; (That's relative path)&#010;&gt; &gt;&gt;&gt; or&#010;&gt; &gt;&gt;&gt; -cp `pwd`/commons-daemon-1.0.15.jar:`pwd`/api-monitor.jar&#010;&gt; &gt;&gt;&gt; (That's absolute path)&#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; Regards&#010;&gt; &gt;&gt;&gt; -- &#010;&gt; &gt;&gt;&gt; ^TM&#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt;&gt; ---------------------------------------------------------------------&#010;&gt; &gt;&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; &gt;&gt;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &gt;&gt;&gt; &#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; &#010;&gt; &gt;&gt; ---------------------------------------------------------------------&#010;&gt; &gt;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; &gt;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &gt;&gt; &#010;&gt; &gt; &#010;&gt; &#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010; &#009;&#009; &#009;   &#009;&#009;  &#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Speeding up optimization problem?</title>
<author><name>Thomas Neidhart &lt;thomas.neidhart@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c517F59F2.9080708@gmail.com%3e"/>
<id>urn:uuid:%3c517F59F2-9080708@gmail-com%3e</id>
<updated>2013-04-30T05:43:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 04/28/2013 11:14 PM, Thorsten Schaefer wrote:&#010;&gt; Hello, &#010;&gt; &#010;&gt; I just started using common math and have a performance issue with the optimization algorithm,&#010;hoping to be able to speed it up in some way, even if this reduces the accuracy of the results.&#010;&gt; &#010;&gt; My problem is as follows:&#010;&gt; There are n resources and m actions that can be performed for each resource. Each combination&#010;of action/resource has a specific payoff, which I want to maximize. I linearized the data&#010;into rows of size (n*m). An index i has the semantics of resource=n/i and action=n%i. Each&#010;entry in a row must be non-negative, so I added a the respective constraint to the Optimization&#010;data. Furthermore, the sum of all actions for any resource needs to be 1, which are n additional&#010;constraints I have. Also, any type of action needs to be performed with a relative frequency&#010;of x% (additional constraint). And finally there are constraints for the limited number of&#010;resources.&#010;&gt; I used the SimplexSolver and can find a working solution within about half a second (the&#010;size of the problem n*m is somewhere about 2500). The problem is, that I need to perform the&#010;calculation very frequently and its currently too slow. I wonder if there is a way to restrict&#010;the number of iterations for example or tell the solver to return a solution even if there&#010;might be way better after a certain number of iterations? I tried the MaxIter constraint,&#010;which leads only to a TooManyIterations exception without being able to retrieve the result&#010;found so far. I also tried to initialize the solver with different epsilon values, but either&#010;it took the same amount of iterations (and time) or it finished with a NoFeasableSolutionException.&#010;&gt; So my question is if there is a way to get non-optimal solutions, but those quicker?&#010;&gt; If it would speed up the solution finding process, I could live with a solution where&#010;we restrict the possible results to booleans, i.e., an action for any resource is either performed&#010;never or always. &#010;&#010;Hi Thorsten,&#010;&#010;at the moment there is no way to get the best solution so far, if the&#010;maximum number of iterations has been reached.&#010;&#010;We could add a feature like this (as already several other people have&#010;requested it).&#010;&#010;Could you also attach your example somewhere, so I can take a look at it&#010;and maybe provide some more optimization tips?&#010;&#010;Thanks,&#010;&#010;Thomas&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [daemon] JSVC re-exec requires execution with an absolute or relative path</title>
<author><name>John Boyer &lt;johnboyer99@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c669D48AB-BDCC-4425-8D19-160F18BE6196@gmail.com%3e"/>
<id>urn:uuid:%3c669D48AB-BDCC-4425-8D19-160F18BE6196@gmail-com%3e</id>
<updated>2013-04-29T22:47:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi:&#010;&#010;UPDATE: &#010;The UNIX error message is referring to the absolute path of the jsvc executable. When I invoked&#010;the executable with its absolute path it worked. I assume it's the same problem on Mac OS&#010;X.&#010;&#010;/usr/local/bin/jsvc -jvm server -debug -home /usr/lib/jvm/java-6-openjdk -cp /usr/local/bin/commons-daemon-1.0.15.jar:myjar.jar&#010;MyDaemonClass&#010;&#010;I'm really happy it's working now.&#010;&#010;Regards,&#010;&#010;John&#010;&#010;On Apr 29, 2013, at 9:10 AM, John Boyer &lt;johnboyer99@gmail.com&gt; wrote:&#010;&#010;&gt; UPDATE: Unfortunately, using the absolute and relative classpaths results in the same&#010;error.&#010;&gt; &#010;&gt; We haven't been able to get this to work on UNIX or Mac OS X. I think we'll need to look&#010;at other alternatives such as the Java Service Wrapper.&#010;&gt; &#010;&gt; UNIX Error: "JSVC re-exec requires execution with an absolute or relative path"&#010;&gt; &#010;&gt; Mac OS X: "Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader"&#010;&gt; &#010;&gt; Regards,&#010;&gt; &#010;&gt; John&#010;&gt; &#010;&gt; &#010;&gt; On Apr 29, 2013, at 8:46 AM, John Boyer &lt;johnboyer99@gmail.com&gt; wrote:&#010;&gt; &#010;&gt;&gt; Hi TM:&#010;&gt;&gt; &#010;&gt;&gt; Thanks, I will try this. In any case, I believe if the log message mentioned the&#010;"classpath" explicitly it would have saved me a lot of time. It's unclear what the real object&#010;of the sentence is or what path it's referring to. Just spitting out the classpath in the&#010;log message would've given me a clue as to what it was complaining about.&#010;&gt;&gt; &#010;&gt;&gt; JSVC re-exec requires execution with an absolute or relative path&#010;&gt;&gt; &#010;&gt;&gt; Thanks again,&#010;&gt;&gt; &#010;&gt;&gt; John &#010;&gt;&gt; &#010;&gt;&gt; On Apr 28, 2013, at 9:42 PM, Mladen Turk &lt;mturk@apache.org&gt; wrote:&#010;&gt;&gt; &#010;&gt;&gt;&gt; On 04/28/2013 11:05 PM, John Boyer wrote:&#010;&gt;&gt;&gt;&gt; Hello:&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a re-exec path&#010;error. I've sunk a lot of hours into this. I'm beginning to think I should have used the Java&#010;Service Wrapper Community Edition instead.&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; Anyway, can anyone help me with this problem? Thank you for your time. John&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Like the log says. Use either absolute or relative paths.&#010;&gt;&gt;&gt; I presume you know what those concepts are.&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Reason for that is security. Having just 'commons-daemon-1.0.15.jar' in the classpath&#010;&gt;&gt;&gt; means it can come from anywhere in the PATH.&#010;&gt;&gt;&gt; So use&#010;&gt;&gt;&gt; -cp ./commons-daemon-1.0.15.jar:./api-monitor.jar&#010;&gt;&gt;&gt; (That's relative path)&#010;&gt;&gt;&gt; or&#010;&gt;&gt;&gt; -cp `pwd`/commons-daemon-1.0.15.jar:`pwd`/api-monitor.jar&#010;&gt;&gt;&gt; (That's absolute path)&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Regards&#010;&gt;&gt;&gt; -- &#010;&gt;&gt;&gt; ^TM&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; ---------------------------------------------------------------------&#010;&gt;&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt;&gt;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; ---------------------------------------------------------------------&#010;&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt;&gt; &#010;&gt; &#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [daemon] JSVC re-exec requires execution with an absolute or relative path</title>
<author><name>John Boyer &lt;johnboyer99@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3cE867B5A5-8C5F-48F2-92BB-CBCB657936F9@gmail.com%3e"/>
<id>urn:uuid:%3cE867B5A5-8C5F-48F2-92BB-CBCB657936F9@gmail-com%3e</id>
<updated>2013-04-29T16:10:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
UPDATE: Unfortunately, using the absolute and relative classpaths results in the same error.&#010;&#010;We haven't been able to get this to work on UNIX or Mac OS X. I think we'll need to look at&#010;other alternatives such as the Java Service Wrapper.&#010;&#010;UNIX Error: "JSVC re-exec requires execution with an absolute or relative path"&#010;&#010;Mac OS X: "Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader"&#010;&#010;Regards,&#010;&#010;John&#010;&#010;&#010;On Apr 29, 2013, at 8:46 AM, John Boyer &lt;johnboyer99@gmail.com&gt; wrote:&#010;&#010;&gt; Hi TM:&#010;&gt; &#010;&gt; Thanks, I will try this. In any case, I believe if the log message mentioned the "classpath"&#010;explicitly it would have saved me a lot of time. It's unclear what the real object of the&#010;sentence is or what path it's referring to. Just spitting out the classpath in the log message&#010;would've given me a clue as to what it was complaining about.&#010;&gt; &#010;&gt; JSVC re-exec requires execution with an absolute or relative path&#010;&gt; &#010;&gt; Thanks again,&#010;&gt; &#010;&gt; John &#010;&gt; &#010;&gt; On Apr 28, 2013, at 9:42 PM, Mladen Turk &lt;mturk@apache.org&gt; wrote:&#010;&gt; &#010;&gt;&gt; On 04/28/2013 11:05 PM, John Boyer wrote:&#010;&gt;&gt;&gt; Hello:&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a re-exec path&#010;error. I've sunk a lot of hours into this. I'm beginning to think I should have used the Java&#010;Service Wrapper Community Edition instead.&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Anyway, can anyone help me with this problem? Thank you for your time. John&#010;&gt;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; Like the log says. Use either absolute or relative paths.&#010;&gt;&gt; I presume you know what those concepts are.&#010;&gt;&gt; &#010;&gt;&gt; Reason for that is security. Having just 'commons-daemon-1.0.15.jar' in the classpath&#010;&gt;&gt; means it can come from anywhere in the PATH.&#010;&gt;&gt; So use&#010;&gt;&gt; -cp ./commons-daemon-1.0.15.jar:./api-monitor.jar&#010;&gt;&gt; (That's relative path)&#010;&gt;&gt; or&#010;&gt;&gt; -cp `pwd`/commons-daemon-1.0.15.jar:`pwd`/api-monitor.jar&#010;&gt;&gt; (That's absolute path)&#010;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; &#010;&gt;&gt; Regards&#010;&gt;&gt; -- &#010;&gt;&gt; ^TM&#010;&gt;&gt; &#010;&gt;&gt; ---------------------------------------------------------------------&#010;&gt;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt;&gt; &#010;&gt; &#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [daemon] JSVC re-exec requires execution with an absolute or relative path</title>
<author><name>John Boyer &lt;johnboyer99@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c6D3C6E5C-B099-4465-A48E-A8D39CD7406F@gmail.com%3e"/>
<id>urn:uuid:%3c6D3C6E5C-B099-4465-A48E-A8D39CD7406F@gmail-com%3e</id>
<updated>2013-04-29T15:46:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi TM:&#010;&#010;Thanks, I will try this. In any case, I believe if the log message mentioned the "classpath"&#010;explicitly it would have saved me a lot of time. It's unclear what the real object of the&#010;sentence is or what path it's referring to. Just spitting out the classpath in the log message&#010;would've given me a clue as to what it was complaining about.&#010;&#010;JSVC re-exec requires execution with an absolute or relative path&#010;&#010;Thanks again,&#010;&#010;John &#010;&#010;On Apr 28, 2013, at 9:42 PM, Mladen Turk &lt;mturk@apache.org&gt; wrote:&#010;&#010;&gt; On 04/28/2013 11:05 PM, John Boyer wrote:&#010;&gt;&gt; Hello:&#010;&gt;&gt; &#010;&gt;&gt; I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a re-exec path error.&#010;I've sunk a lot of hours into this. I'm beginning to think I should have used the Java Service&#010;Wrapper Community Edition instead.&#010;&gt;&gt; &#010;&gt;&gt; Anyway, can anyone help me with this problem? Thank you for your time. John&#010;&gt;&gt; &#010;&gt; &#010;&gt; Like the log says. Use either absolute or relative paths.&#010;&gt; I presume you know what those concepts are.&#010;&gt; &#010;&gt; Reason for that is security. Having just 'commons-daemon-1.0.15.jar' in the classpath&#010;&gt; means it can come from anywhere in the PATH.&#010;&gt; So use&#010;&gt; -cp ./commons-daemon-1.0.15.jar:./api-monitor.jar&#010;&gt; (That's relative path)&#010;&gt; or&#010;&gt; -cp `pwd`/commons-daemon-1.0.15.jar:`pwd`/api-monitor.jar&#010;&gt; (That's absolute path)&#010;&gt; &#010;&gt; &#010;&gt; &#010;&gt; Regards&#010;&gt; -- &#010;&gt; ^TM&#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Re: LevenbergMarquardtOptimizer</title>
<author><name>Gilles &lt;gilles@harfang.homelinux.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c2b22a35c43ce3dc368ccd67ed9c176dc@scarlet.be%3e"/>
<id>urn:uuid:%3c2b22a35c43ce3dc368ccd67ed9c176dc@scarlet-be%3e</id>
<updated>2013-04-29T12:37:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;&gt;&gt; [...]&#010;&gt;&gt;&gt; Very hard to guess that this parameter (Bound) is not required&#010;&gt;&gt;&gt; according to the documentation.&#010;&gt;&gt;&#010;&gt;&gt; Excerpt from&#010;&gt;&gt; &#010;&gt;&gt; http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html&#010;&gt;&gt;&#010;&gt;&gt; "Constraints are not supported: the call to optimize will throw&#010;&gt;&gt; MathUnsupportedOperationException if bounds are passed to it."&#010;&gt;&gt;&#010;&gt;&gt; Would you suggest a better alternative?&#010;&gt;&#010;&gt; I didn't see that. It is clear enough. But,&#010;&gt; my starting point was:&#010;&gt;&#010;&gt;&#010;&gt; &#010;&gt; http://commons.apache.org/proper/commons-math///javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html&#010;&gt;&#010;&gt; where there is no such comment (the sentence "Constraints are not&#010;&gt; supported:  ... " has disappeared). I dont' remember where&#010;&gt; I took this link on the web ...&#010;&#010;The link is the same (and the comment is there, now; until a few days&#010;ago it pointed to the Javadoc of release 3.1.1).&#010;&#010;Regards,&#010;Gilles&#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [math] Re: LevenbergMarquardtOptimizer</title>
<author><name>eric henon &lt;eric.henon@univ-reims.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/commons-user/201304.mbox/%3c5B659CF3-77B1-4001-BC01-D349D1DA4E52@univ-reims.fr%3e"/>
<id>urn:uuid:%3c5B659CF3-77B1-4001-BC01-D349D1DA4E52@univ-reims-fr%3e</id>
<updated>2013-04-29T12:19:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&#010;Le 29 avr. 2013 à 13:31, Gilles a écrit :&#010;&#010;&gt; Hi.&#010;&gt; &#010;&gt;&gt;&gt;&gt; Thanks Luc for your help.&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; I modified my code as you recommend (it is given below), but it&#010;&gt;&gt;&gt;&gt; doesn't work either.&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; The error message (at running) is :&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; Exception in thread "main"&#010;&gt;&gt;&gt;&gt; org.apache.commons.math3.exception.MathUnsupportedOperationException: contrainte&#010;&gt;&gt;&gt;&gt; [...]&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; It is about a contraint ...&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Indeed.&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; [...]&#010;&gt;&gt;&gt;&gt; &#010;&gt;&gt;&gt;&gt; Do you any idea about what goes wrong ?&#010;&gt;&gt;&gt; &#010;&gt;&gt;&gt; Yes. The "SimpleBounds" (constraint) is not a parameter of "LevenbergMarquardtOptimizer";&#010;&gt;&gt;&gt; hence an exception is thrown. Just try to remove this parameter.&#010;&gt;&gt; &#010;&gt;&gt; That works !&#010;&gt;&gt; Very hard to guess that this parameter (Bound) is not required&#010;&gt;&gt; according to the documentation.&#010;&gt; &#010;&gt; Excerpt from&#010;&gt; http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html&#010;&gt; &#010;&gt; "Constraints are not supported: the call to optimize will throw&#010;&gt; MathUnsupportedOperationException if bounds are passed to it."&#010;&gt; &#010;&gt; Would you suggest a better alternative?&#010;&#010;I didn't see that. It is clear enough. But,&#010;my starting point was:&#010;&#010;  http://commons.apache.org/proper/commons-math///javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html&#010;&#010;where there is no such comment (the sentence "Constraints are not supported:  ... " has disappeared).&#010;I dont' remember where&#010;I took this link on the web ...&#010;&#010;Thanks again.&#010;Eric&#010;&#010;&#010;&#010;&#010;&gt; &#010;&gt;&gt; Thank you very much Gilles.&#010;&gt;&gt; I give below the code that works well.&#010;&gt;&gt; Have a nice week.&#010;&gt; &#010;&gt; Thanks,&#010;&gt; Gilles&#010;&gt; &#010;&gt; &#010;&gt; ---------------------------------------------------------------------&#010;&gt; To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;&gt; For additional commands, e-mail: user-help@commons.apache.org&#010;&gt; &#010;&#010;&#010;---------------------------------------------------------------------&#010;To unsubscribe, e-mail: user-unsubscribe@commons.apache.org&#010;For additional commands, e-mail: user-help@commons.apache.org&#010;&#010;&#010;
</pre>
</div>
</content>
</entry>
</feed>
