Re: Maximize
- To: mathgroup at smc.vnet.net
- Subject: [mg91484] Re: [mg91454] Maximize
- From: DrMajorBob <drmajorbob at att.net>
- Date: Sat, 23 Aug 2008 01:42:57 -0400 (EDT)
- References: <14780827.1219391841547.JavaMail.root@m08>
- Reply-to: drmajorbob at longhorns.com
Maximize[{g + (1 - g)*x - (g/2)*x^2 - (g/2)*v, x == (a/c) + Sqrt[(d/c)*(v - 1/c)]}, {x, g, v, c, d}] {\[Infinity], {x -> Indeterminate, g -> Indeterminate, v -> Indeterminate, c -> Indeterminate, d -> Indeterminate}} I suspect that's the right answer, since none of the variables are specified. Bobby On Fri, 22 Aug 2008 02:12:58 -0500, Gregory Lypny <gregory.lypny at videotron.ca> wrote: > Not sure why this won't work. I'm trying to maximize with respect to > x subject to a constraint. I get an error message saying that the > constraint is not a valid variable. > > Maximize[ > g + (1-g)*x -(g/2)*x^2 - (g/2)*v, > x = (a/c) + sqrt((d/c)*(v - 1/c)), > x > ] > > -- DrMajorBob at longhorns.com