MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: FindMinimum numerical constraint functions

  • To: mathgroup at
  • Subject: [mg110860] Re: FindMinimum numerical constraint functions
  • From: "Stuart Nettleton" <Stuart.Nettleton at>
  • Date: Thu, 8 Jul 2010 20:34:10 -0400 (EDT)

Hi Daniel,
I am pleased that FindMinimum is happy with constraint return values like  
{True, False, False} etc.
This gives me a whole new perspective.
Thanks once again for a magnificent insight!
Best regards,

> obj[vars_] := Sin[vars[[1]]]*Sin[2*vars[[2]]] /; VectorQ[vars, NumberQ]
> con[vars_List, vals_] :=
>    Thread[{vars[[1]]^2 + vars[[2]]^2, -vars[[1]], -vars[[2]]} <= vals] /;
> 	VectorQ[vals, NumberQ] && Length[vals]===3
> FindMinimum[{obj[vars], Thread[con[vars,{3,0,0}]]}, vars]

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

  • Prev by Date: Re: Can This be Possible? A bug in Set (=) ?
  • Next by Date: Re: Pattern: x_List with conditions on elements
  • Previous by thread: FindMinimum numerical constraint functions
  • Next by thread: Re: FindMinimum numerical constraint functions