Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C30BDC44 for ; Sat, 29 Sep 2012 22:30:08 +0000 (UTC) Received: (qmail 45301 invoked by uid 500); 29 Sep 2012 22:30:08 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45179 invoked by uid 500); 29 Sep 2012 22:30:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 45170 invoked by uid 99); 29 Sep 2012 22:30:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Sep 2012 22:30:07 +0000 Date: Sun, 30 Sep 2012 09:30:07 +1100 (NCT) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: <1323815464.144090.1348957807985.JavaMail.jiratomcat@arcas> In-Reply-To: <681098766.110030.1348268048729.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (MATH-867) CMAESOptimizer with bounds fits finely near lower bound and coarsely near upper bound. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466344#comment-13466344 ] Gilles commented on MATH-867: ----------------------------- Revision 1391908 contains the cleaned up code: * All limitations concerning boundary specifications removed. This supersedes the fix for MATH-865. * Methods "encode" and "decode" removed. * "sigmaArray" is assigned the values from "inputSigma" (or 0.3 if "inputSigma" is null). This probably also solves MATH-868. Please test. > CMAESOptimizer with bounds fits finely near lower bound and coarsely near upper bound. > --------------------------------------------------------------------------------------- > > Key: MATH-867 > URL: https://issues.apache.org/jira/browse/MATH-867 > Project: Commons Math > Issue Type: Bug > Reporter: Frank Hess > Attachments: MATH867_patch, Math867Test.java > > > When fitting with bounds, the CMAESOptimizer fits finely near the lower bound and coarsely near the upper bound. This is because it internally maps the fitted parameter range into the interval [0,1]. The unit of least precision (ulp) between floating point numbers is much smaller near zero than near one. Thus, fits have much better resolution near the lower bound (which is mapped to zero) than the upper bound (which is mapped to one). I will attach a example program to demonstrate. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira