FindMinimum during NMimimize

• To: mathgroup at smc.vnet.net
• Subject: [mg65552] FindMinimum during NMimimize
• From: "mfific at gmail.com" <mfific at gmail.com>
• Date: Fri, 7 Apr 2006 06:14:30 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Dear all,

Math ver 5.0
Here is my problem:

discra[x_,slopex_,intx_]:=x*slopex+intx

distanceOverX[ma1_,ma2_,slopex_,intx_]:=
FindMinimum[Sqrt[(ma1-x)^2+(ma2-discra[x,slopex,intx])^2],{x,10,20}][]

NMinimize[{(distanceOverX[1,1,0,intx]-100)^2,0<intx<10},

I defined a function distanceOverX above that includes FindMinimum for
x variable. And that function works fine by itslef: as an otput I take
the minimized value.

But when I used distanceOverXfunction for finding global Min using
NMinimize, I got the error which indicates that FindMinimum could not
do the job:
for example: The function value ....is not a number at {x}={10}....

I would appreciate for a suggestion how to unlock that  problem.
(Note that for NMinmize I let only one variable (intx) from the
function distanceOverX to be free parameter while other values are
provided)

thank you very much,

Mario Fific

Cognitive Psychology and Cognitive Science
Indiana University

```

• Prev by Date: GridBox coming back unevaluated
• Next by Date: Re: Speed: Inner MUCH slower than dot product??
• Previous by thread: Re: GridBox coming back unevaluated
• Next by thread: Re: FindMinimum during NMimimize
{"ft_lang_label":"__label__en","ft_lang_prob":0.7491125,"math_prob":0.9050661,"size":1263,"snap":"2019-35-2019-39","text_gpt3_token_len":382,"char_repetition_ratio":0.123907864,"word_repetition_ratio":0.0,"special_character_ratio":0.27949327,"punctuation_ratio":0.21509434,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9579554,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-17T13:26:27Z\",\"WARC-Record-ID\":\"<urn:uuid:091e56fe-879e-4b83-9ee8-3326beedee09>\",\"Content-Length\":\"42948\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:266db882-0076-40a8-ae3c-676db29195c3>\",\"WARC-Concurrent-To\":\"<urn:uuid:033e3b71-f1eb-42e8-9305-a7487dee7b91>\",\"WARC-IP-Address\":\"140.177.205.73\",\"WARC-Target-URI\":\"http://forums.wolfram.com/mathgroup/archive/2006/Apr/msg00120.html\",\"WARC-Payload-Digest\":\"sha1:TRF2ZY4HZZBLNHYVPVYL5II2DUAENXEI\",\"WARC-Block-Digest\":\"sha1:ODPKPKEVTABEQEVZ4CXNITBESGAIQEJE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573071.65_warc_CC-MAIN-20190917121048-20190917143048-00212.warc.gz\"}"}