Recognising parameters in function
- To: mathgroup at smc.vnet.net
- Subject: [mg94523] Recognising parameters in function
- From: "Stuart Nettleton" <Stuart.Nettleton at uts.edu.au>
- Date: Mon, 15 Dec 2008 07:47:38 -0500 (EST)
- Organization: University of Technology, Sydney
Hi, would someone be able to suggest why FindMinimum will recognise
parameters in the following function but the backsubstitution will not.
Thanks for any help, Stuart
Clear[f, vars1, z];
vars1 = {x, y};
z = (x - 5)^2 + (y - 3)^2;
f[vars_] := Module[{a},
a = z/2;
Return[a]
] /; VectorQ[vars, NumericQ];
optim = FindMinimum[Join[{f[vars1]}, Thread[vars1 >= 0]], vars1]
optim[[2]]
f[vars1] /. optim[[2]]
--
UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.
- Follow-Ups:
- Re: Recognising parameters in function
- From: Patrick Scheibe <pscheibe@trm.uni-leipzig.de>
- Re: Recognising parameters in function