943,840 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3606
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Sep 7th, 2006
1

optimization library

Expand Post »
does anyone know where i can find a library for minimizing a function, given a set of parameters and contraints? (similar to Solver in Excel)

i've searched around and found quantlib/solvers1d but am still at a lost of how to use it ..

any help is appreciated,
regards,
Reputation Points: 44
Solved Threads: 0
Newbie Poster
kimw is offline Offline
22 posts
since Oct 2005
Sep 7th, 2006
1

Re: optimization library

The best way to start learning a library is reading its documentation properly and visiting the related forums. If you still feel that you are lost then you need to do a check whether you really prepared to handle this project.

Hope it helped, bye.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 7th, 2006
0

Re: optimization library

Do you mean Quantlib open source library for quantitative finance ? I don't know a thing about it, but their web site has a lot of information including documentation and links to relevant forums. The site even contains links to example programs.
Last edited by Ancient Dragon; Sep 7th, 2006 at 3:29 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,951 posts
since Aug 2005
Sep 7th, 2006
1

Re: optimization library

thanks..actually i read their documentation and it is not helping ..
ive decided to build the library myself...
Reputation Points: 44
Solved Threads: 0
Newbie Poster
kimw is offline Offline
22 posts
since Oct 2005
Sep 7th, 2006
1

Re: optimization library

Wow, now thats the kind of spirit we expect from a programmer.

But if you dont undestand the documentation which is specifically tailored for the people who plan on using it and those who know the basics of the language, do you think you can handle a big thing like library development all by yourself.

Better do a reality check if you really want to move ahead in life. Start with small goals and then eventually you will reach the destination which you always desired.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 7th, 2006
1

Re: optimization library

forgive my overstatement .. i'm actually planning to build a function and not the whole library

if you're familiar with quantlib maybe u can point me to a more indepth treatment of the functions, because for the one that i've found,
http://quantlib.org/reference/newton_8hpp.html

it is not helping.
Reputation Points: 44
Solved Threads: 0
Newbie Poster
kimw is offline Offline
22 posts
since Oct 2005
Sep 7th, 2006
2

Re: optimization library

Click to Expand / Collapse  Quote originally posted by kimw ...
forgive my overstatement .. i'm actually planning to build a function and not the whole library

if you're familiar with quantlib maybe u can point me to a more indepth treatment of the functions, because for the one that i've found,
http://quantlib.org/reference/newton_8hpp.html

it is not helping.
Hey let me ask you few questions first:
  • How much do you know C++ ?
  • Do you know what a namespace in C++ and how it works ?
  • Have you in your academics done or encountered the terms or concepts which have been implemented in the library and the ones you are trying to use ?
  • What is the maximum complexity of the C++ program you have written till date ?
Well you see the thing is that you should always start small before jumping in the fray. Try to understand small small things and concepts before going overboard with the big ones.

And just a food for thought, how do you propose we make you understand the library even if we knew it ? Obvioulsy it is you who must understand the library and so it is you who must put in all the required effort. Even i had used external library many times (Irrlicht game library, Audiere Sound library) and i know it takes many days to master the function calls and understand the whole architechture.

Hope it helped, bye.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 7th, 2006
2

Re: optimization library

Hey with all due respect I am a beginner in C++ and I AM trying to extract whatever knowledge I could from existing library . Please read my above posts; I have not asked anyone to explain the library to me. I am merely asking for places to find alternative library/documentations other than the ones I have.

Goodbye.
Reputation Points: 44
Solved Threads: 0
Newbie Poster
kimw is offline Offline
22 posts
since Oct 2005
Sep 7th, 2006
1

Re: optimization library

Sorry if i sounded rude, that wasn't intentional.

By my post what i wanted to convey was that since a library is released by a orgaization or an individual the manpages or the manual of the library is most likely to be provided by the same people and it is highly improbable you would find an alternative documentation.

So the only alternative you are left with is to understand the given documentation which i am sure you would be able to in the near future.

Best of luck with your project.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 7th, 2006
1

Re: optimization library

Although I know a little C/C++ I don't know mathematics. So I don't know what you aer trying to do exactly. But if you want to solve a function using Newton's method, you can get an idea using this thread.
Reputation Points: 166
Solved Threads: 0
Junior Poster in Training
Shane_Warne is offline Offline
59 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: help with extra credit lab
Next Thread in C++ Forum Timeline: on Ifstream





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC