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

This is a discussion on *Help... library for calculate Linear and Nonlinear least squares?* within the **C Programming** forums, part of the General Programming Boards category; hello to all
I have a problem that to resolve... I need to know where to find a library or ...

- 09-15-2006 #1

- 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.

ThanksLast edited by juanpc; 09-15-2006 at 11:19 AM.

- 09-15-2006 #2
Where have you looked so far?

My best code is written with the delete key.

- 09-15-2006 #3

- 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

- 09-15-2006 #4
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.

- 09-15-2006 #5

- 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

- Exactly how to get started with C++ (or C) today
- C Tutorial
- C++ Tutorial
- 5 ways you can learn to program faster
- The 5 Most Common Problems New Programmers Face
- How to set up a compiler
- 8 Common programming Mistakes
- What is C++11?
- Creating a game, from start to finish

- How to create a shared library on Linux with GCC - December 30, 2011
- Enum classes and nullptr in C++11 - November 27, 2011
- Learn about The Hash Table - November 20, 2011
- Rvalue References and Move Semantics in C++11 - November 13, 2011
- C and C++ for Java Programmers - November 5, 2011
- A Gentle Introduction to C++ IO Streams - October 10, 2011