Thread: Help... library for calculate Linear and Nonlinear least squares?

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    Help... library to calculate Linear and Nonlinear least squares?

    hello to all

    I have a problem that to resolve... I need to know where to find a library or some routine that calculate ....Linear least squares with nonnegativity constraints, and Nonlinear least squares with upper and lower bounds.

    Thanks
    Last edited by juanpc; 09-15-2006 at 10:19 AM.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Where have you looked so far?
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    2
    The libraries that I looked are LAPACK and NEWMATH but I have sought on those libraries and I have not found. ...

    I Know that the libraries of optimizacion of MATLAB have them ..

    1) lsqnonlin - Nonlinear least squares with upper and lower bounds.
    2) lsqnonneg - Linear least squares with nonnegativity constraints.

    but I need them in C

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Maybe this one
    http://en.wikipedia.org/wiki/GNU_Scientific_Library

    I'm assuming that you actually know what you're doing on the math front to make a decent amount of sense of the things it offers...
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I googled Nonlinear ... in C library, and got a lot of hits. This one might have what you need:

    http://wwwasd.web.cern.ch/wwwasd/lhc.../html/doc.html

    Adak

Popular pages Recent additions subscribe to a feed