|
[Date Index]
[Thread Index]
[Author Index]
Re: Root search on results of minimization with free parameter
- To: mathgroup at smc.vnet.net
- Subject: [mg114787] Re: Root search on results of minimization with free parameter
- From: Themis Matsoukas <tmatsoukas at me.com>
- Date: Fri, 17 Dec 2010 03:28:16 -0500 (EST)
Hi Philipp,
Nminimize is a numerical function and cannot be used on example[c, x] unless you provide a numerical value for c. This is what the error message says:
NMinimize::nnum: The function value 0.0929857+c/2 is not a number at {x} = {0.30493561594805696`}
It seems what you want is to minimize with respect to both c and x. You can do this in one step:
Minimize[{example[c, x], 0 <= c <= 1}, {c, x}]
{0, {c -> 0, x -> 0}}
I placed the constraint 0 <= c <= 1 in order to get e unique answer in this example.
Themis
Prev by Date:
Re: NMinimize::nrnum:
Next by Date:
Obtaining information about function definitions
Previous by thread:
Root search on results of minimization with free parameter
Next by thread:
Help with Loop to Rule Based Algorithm
|