Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EC83FBE6 for ; Mon, 29 Apr 2013 11:32:26 +0000 (UTC) Received: (qmail 80604 invoked by uid 500); 29 Apr 2013 11:32:25 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 80130 invoked by uid 500); 29 Apr 2013 11:32:19 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 80080 invoked by uid 99); 29 Apr 2013 11:32:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 11:32:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.74.71.27] (HELO eir.is.scarlet.be) (193.74.71.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 11:32:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1367235110; bh=D6F5EGbzTFl9QX/YuCwdneQEFjx7nQrOt0G1XcxWxdE=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=z/789Tns/xAK3G+LT7UKQRkI8pYkrSpxK8B0KoE0z68fL4x4kP3TmD7udrRQBaIia L/t98pbrTbTtjSdDNu9s0DnESk513GjvuoG7ODXsgGyeE10iLZuiC7IPmd/waSP1mq iOdj88HF60hXVDvFL3gUtAnX0+hUz7awt7drkamw= Received: from webmail.scarlet.be (meigs.is.scarlet.be [193.74.71.216]) by eir.is.scarlet.be (8.14.5/8.14.5) with ESMTP id r3TBVnbQ003137 for ; Mon, 29 Apr 2013 13:31:49 +0200 X-Scarlet: d=1367235109 c=193.74.71.216 Received: from ip-83-134-186-22.dsl.scarlet.be ([83.134.186.22]) via ip-83-134-186-22.dsl.scarlet.be ([83.134.186.22]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Mon, 29 Apr 2013 13:31:48 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 29 Apr 2013 13:31:48 +0200 From: Gilles To: Subject: Re: [math] Re: LevenbergMarquardtOptimizer In-Reply-To: <11450486-CDAF-4B3C-BB15-5899A455A42B@univ-reims.fr> References: <6D43E9D4-35A3-4FD7-8728-9A602B225C78@univ-reims.fr> <516E5C2B.5010502@free.fr> <6D659797-A9DC-4608-9E2F-4F02E436F0CE@univ-reims.fr> <11450486-CDAF-4B3C-BB15-5899A455A42B@univ-reims.fr> Message-ID: X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: eir; whitelist X-Virus-Scanned: clamav-milter 0.97.1-exp at eir X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hi. >>> Thanks Luc for your help. >>> >>> I modified my code as you recommend (it is given below), but it >>> doesn't work either. >>> >>> The error message (at running) is : >>> >>> Exception in thread "main" >>> >>> org.apache.commons.math3.exception.MathUnsupportedOperationException: >>> contrainte >>> [...] >>> >>> It is about a contraint ... >> >> Indeed. >> >>> [...] >>> >>> Do you any idea about what goes wrong ? >> >> Yes. The "SimpleBounds" (constraint) is not a parameter of >> "LevenbergMarquardtOptimizer"; >> hence an exception is thrown. Just try to remove this parameter. > > That works ! > Very hard to guess that this parameter (Bound) is not required > according to the documentation. Excerpt from http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizer.html "Constraints are not supported: the call to optimize will throw MathUnsupportedOperationException if bounds are passed to it." Would you suggest a better alternative? > Thank you very much Gilles. > I give below the code that works well. > Have a nice week. Thanks, Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org