MathGroup Archive 2014

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

Search the Archive

Minimization problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132352] Minimization problem
  • From: PAR123 <reiser.paul at gmail.com>
  • Date: Mon, 17 Feb 2014 23:04:34 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

I'm trying to minimize f[{h1,h2,h3,h4}] subject to constraints that all h's lie between 0.1 and 1. Trying to use NMinimize:
NMinimize[{f[{h1, h2, h3, h4}], {h1 > 0.1, h1 <= 1.0, h2 > 0.1, 
   h2 <= 1.0, h3 > 0.1, h3 <= 1.0, h4 > 0.1, h4 <= 1.0}}, {h1, h2, h3,
   h4}]

I keep getting errors that indicate FindMinimum is attempting to call f[] with symbolic h's, not numbers. f[] will return a number if the inputs are numbers, but if they are symbols, its not going to happen. Is there a simple thing I am doing wrong?



  • Prev by Date: Re: Possible bug in Floor function?
  • Next by Date: Re: Possible bug in Floor function?
  • Previous by thread: Re: Possible bug in Floor function?
  • Next by thread: Re: Minimization problem