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 A80ECECCF for ; Thu, 7 Mar 2013 16:14:08 +0000 (UTC) Received: (qmail 13516 invoked by uid 500); 7 Mar 2013 16:14:07 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 13116 invoked by uid 500); 7 Mar 2013 16:14:04 -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 13094 invoked by uid 99); 7 Mar 2013 16:14:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 16:14:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.217.182] (HELO mail-lb0-f182.google.com) (209.85.217.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 16:13:58 +0000 Received: by mail-lb0-f182.google.com with SMTP id gg6so582028lbb.13 for ; Thu, 07 Mar 2013 08:13:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:subject:message-id:date:to :mime-version:x-mailer:x-gm-message-state; bh=poowaC57FCynJyIznUP5OOfq6dvEAvfIsHrKoNKomC8=; b=DOeAWRtupoZK7XvUk4iPdx4Kg2CFCCrfNRzMXxNEfHc6vsgb1hu+z/4Ww0tyjPvPRs 0j7BOSOByWwbviq3vvjT/3Ymv7mb9Fj8m84liXvL+JZxa5+s56y4BlWiZhc717aAJhSz qfgKxfDNBAv73j0psm81YF7tERW/x2aXMAi1ClhC2dJvzrN5MHa1/o+HeRectb3mICpg 1x6wtC2AA8xaLAtdzh+5S77jmEvyAF8zjWpOnSygqyvbz1b012uVPE6BkxK8fGI8kN5l GeCEp2aoY3ojlt6CyWrpKciHaWsf7xDW2huXTITWvbLfWfY7m4TWibINUPzrYStaT72l j9PA== X-Received: by 10.112.37.234 with SMTP id b10mr9243775lbk.118.1362672816218; Thu, 07 Mar 2013 08:13:36 -0800 (PST) Received: from [10.101.1.215] (static-88.131.62.36.addr.tdcsong.se. [88.131.62.36]) by mx.google.com with ESMTPS id fl9sm740307lbb.9.2013.03.07.08.13.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 08:13:34 -0800 (PST) From: =?iso-8859-1?Q?Alexander_Sehlstr=F6m?= Content-Type: multipart/alternative; boundary="Apple-Mail=_928FC837-DA03-4BAB-B7C7-6D8273D0B222" Subject: [math] Solving SLP problem Message-Id: <370CABD7-C9B3-44C2-A252-7E4BA9A94F7B@sehlstrom.se> Date: Thu, 7 Mar 2013 17:13:32 +0100 To: user@commons.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQn2t2Cv/QgLtOe1X2HzH/sXG6MOv74y7K8KkXKoBW0/Msj5VrLD92cm/lEjQYblmICEakST X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_928FC837-DA03-4BAB-B7C7-6D8273D0B222 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I wish to solve the following problem: /* Problem -------------------------------------------------------- * Starting from double[] s0, determine double[] s, the solution of: *=20 * | min f' * s * | * | s.t. s_l <=3D s <=3D s_u *=20 * where double[] f has the same length as the double [] s. * * The double[] s_l and double[] s_u are lower and upper bounds of s, * respectively. * ---------------------------------------------------------------- */ I have tried to understand what solution algorithm in Apache Commons = Math to use. I have tried the SimplexSolver, but it seams unable to = handle SimpleBounds and demands LinearConstraint which I do not have = any. Any suggestions of how to use the library for this problem?= --Apple-Mail=_928FC837-DA03-4BAB-B7C7-6D8273D0B222--