473,378 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Constrained Nonlinear Minimizaiton

Hi, I am looking for a way to do nonlinear minimization in c++ (c is
acceptable also) with constraints (a la minimize f() with parameters
x,y such that x+y<1) or somthing.. I was wondering if anyone knew of a
library that supported this.

GSL seems to only support unconstrained minimization. Thanks!

Jul 26 '06 #1
7 2545
laniik wrote:
Hi, I am looking for a way to do nonlinear minimization in c++
1. Find algorithm for nonlinear minimization (google is your friend).
2. Implement said algorithm in C++.
3. PROFIT!
Jul 26 '06 #2
no reason to re-invent the wheel. you might as well suggest to program
your own compiler in assembly.

red floyd wrote:
laniik wrote:
Hi, I am looking for a way to do nonlinear minimization in c++
1. Find algorithm for nonlinear minimization (google is your friend).
2. Implement said algorithm in C++.
3. PROFIT!
Jul 26 '06 #3
Hi, I am looking for a way to do nonlinear minimization in c++ (c is
acceptable also) with constraints (a la minimize f() with parameters
x,y such that x+y<1) or somthing.. I was wondering if anyone knew of a
library that supported this.
First piece of advice: don't ask in comp.lang.c++. This isn't the
place for it.

That said, there are lots of annealing libraries out there that work
just fine for constrained combinatorial optimization and nonlinear
integer programming. If nonlinear integer programming is what you
need, then simulated and/or compressed annealing are your friends.

Jul 26 '06 #4
laniik wrote:
Hi, I am looking for a way to do nonlinear minimization in c++ (c is
acceptable also) with constraints (a la minimize f() with parameters
x,y such that x+y<1) or somthing.. I was wondering if anyone knew of
a library that supported this.

GSL seems to only support unconstrained minimization. Thanks!
Please consider asking in 'sci.math.num-analysis' or 'comp.programming'.

Your question has nothing to do with C++ _language_, the fact that you
need the "way to do {blah} in C++" notwithstanding.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 26 '06 #5
Well, I can already do it fine in matlab or mathematica, which would be
valid answers in any those other groups.

Im not asking about the theoretical solution, simply an existing c++
implementation. This group seems by far the most relevant.
Victor Bazarov wrote:
laniik wrote:
Hi, I am looking for a way to do nonlinear minimization in c++ (c is
acceptable also) with constraints (a la minimize f() with parameters
x,y such that x+y<1) or somthing.. I was wondering if anyone knew of
a library that supported this.

GSL seems to only support unconstrained minimization. Thanks!

Please consider asking in 'sci.math.num-analysis' or 'comp.programming'.

Your question has nothing to do with C++ _language_, the fact that you
need the "way to do {blah} in C++" notwithstanding.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 26 '06 #6
laniik wrote:
Well, I can already do it fine in matlab or mathematica, which would
be valid answers in any those other groups.

Im not asking about the theoretical solution, simply an existing c++
implementation. This group seems by far the most relevant.
(a) Don't top-post.

(b) Don't overquote.

(c) It's off-topic. Whatever you're looking for, you'll find it
on the Web, just use your favourite search engine. We do not
discuss (or dispense the code for) any particular applications,
algorithms (except what's in the Standard library) here. C++
is a very widely used that if we started doing that, we'd be
swamped by irrelevant posts.
Victor Bazarov wrote:
>laniik wrote:
>>Hi, I am looking for a way to do nonlinear minimization in c++ (c is
acceptable also) with constraints (a la minimize f() with parameters
x,y such that x+y<1) or somthing.. I was wondering if anyone knew
of a library that supported this.

GSL seems to only support unconstrained minimization. Thanks!

Please consider asking in 'sci.math.num-analysis' or
'comp.programming'.

Your question has nothing to do with C++ _language_, the fact that
you need the "way to do {blah} in C++" notwithstanding.

V
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 27 '06 #7

laniik wrote:
red floyd wrote:
laniik wrote:
Hi, I am looking for a way to do nonlinear minimization in c++
1. Find algorithm for nonlinear minimization (google is your friend).
2. Implement said algorithm in C++.
3. PROFIT!
no reason to re-invent the wheel. you might as well suggest to program
your own compiler in assembly.
1. Please don't top-post. Reponse rearranged to fit c.l.c++
netiquette.

2. No, I'm not telling you to reinvent the wheel, I'm telling you your
post is off-topic. Apparently, I will need to use SARCASM tags, for
the sarcasm-impaired.

Jul 27 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Mikito Harakiri | last post by:
I wonder if WITH RECURSIVE MaryAncestor(anc,desc) AS ( (SELECT parent as anc, child as desc FROM ParentOf WHERE desc = "Mary") UNION (SELECT A1.anc, A2.desc FROM MaryAncestor A1, MaryAncestor...
7
by: Leicester B. Ford Jr. | last post by:
I have this class: public class ItemType .... public class ProductType<T> where T: ItemType .... Now I want to add an IDisposable interface to ProductType...
19
by: Fernando Cacciola | last post by:
I'm puzzled, Why and how _exactly_ is this: void Foo<T>(T v ) where T : Interface/Value/Class/class any better than this void Foo( Interface/Value/Class/object v )
3
by: Michele Simionato | last post by:
I want to interpolate a data distribution with a function depending on various parameters; the function can be a Gaussian, a Breit-Wigner, a custom function. Where should I look? I am getting lost...
14
nurulshidanoni
by: nurulshidanoni | last post by:
DEAL ALL EXPERTS, How can i write random nonlinear function? Let say, the nonlinear is 2 x power of 3. But , I want the random function of nonlinear. Thank you. Ashida.
6
by: Explore_Imagination | last post by:
The task is to solve a constrained optimization problem in C/C++. Computational Time is of high priority. One approach can be to use ready functions in a "free ware" Optimization Library (if...
2
by: Explore_Imagination | last post by:
The task is to solve a constrained optimization problem in C. Computational Time is of high priority. One approach can be to use ready functions in a "free ware" Optimization Library (if...
1
by: Uwe Kotyczka | last post by:
Hallo, sorry for multiposting, but I am really looking for some hint to solve my problem. And no, I don't use Matlab, but maybe the matlab people have an idea nevertheless. I have to solve a...
2
by: Federico Zenith | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody, I am looking into a problem that probably someone had before, so I hope I can avoid reinventing the wheel... I am looking into...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.