Bernard.Mangay wrote:

I have a method

double myfunction(double param1){

// code here

}

The Method takes 1 parameter, and returns a double. It is

continuous.

Are tehre any functions in C sharp that will help me to find param1

such that myfunction is minimised?

There wouldn't be anything in the language itself and I don't think

there's anything in the .NET framework. The solver foundation that

others have mentioned may have something--I haven't had a chance to

look at it.

Beyond that, there are other options.

If you can put up with the terms of license, "Numerical Recipes in

C++", available from Amazon.com, has code samples for this sort of

thing that should run in C# with minimal modification.

Any decent text on numerical analysis should have several algorithms

for this sort of thing--I don't have a recommendation as the ones I

have are out of print.

If you just need to solve the thing and can't do it analyticall or

graphically, Wolfram puts out a product for 165 bucks called

"Mathematical Explorer" that runs on top of an older version of

Mathematica and exposes the engine--while it's not cutting edge it

shouldn't have any problem finding extrema of a continuous function.

--

--

--John

to email, dial "usenet" and validate

(was jclarke at eye bee em dot net)