Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6184 > unrolled thread

Constraint evaluation in NMinimize

Started byRay Koopman <koopman@sfu.ca>
First post2011-11-04 11:11 +0000
Last post2011-11-04 11:11 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Constraint evaluation in NMinimize Ray Koopman <koopman@sfu.ca> - 2011-11-04 11:11 +0000

#6184 — Constraint evaluation in NMinimize

FromRay Koopman <koopman@sfu.ca>
Date2011-11-04 11:11 +0000
SubjectConstraint evaluation in NMinimize
Message-ID<j90h90$snk$1@smc.vnet.net>
I want to minimize f[x] with respect to x, subject to g[x].
Both f and g depend in part on h[x], so to avoid calculating h[x]
twice I use an auxiliary variable:

  NMinimize[{t = h[x]; f[x,t], g[x,t]}, {x}].

That appears to work, but it depends on the constraint never being
evaluated without first evaluating the minimand, and I can't find
anything in the documentation that says that that will always be
the case. Can anyone help?

(I asked a similar question several years ago, at which time DrBob
pointed me to sec 2.6.4 in the book, but it's not obvious to me if
the standard evaluation procedure necessarily applies here.)

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web