Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1953
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail |
|---|---|
| From | "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: plot of nmaximized result |
| Date | Thu, 28 Apr 2011 10:35:19 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <ipbft7$ae1$1@smc.vnet.net> (permalink) |
| References | <ip8o93$pjd$1@smc.vnet.net> |
| Lines | 29 |
| NNTP-Posting-Date | 28 Apr 2011 09:36:04 GMT |
| NNTP-Posting-Host | b65042e2.news.twtelecom.net |
| X-Trace | DXC=gcgAl:8HON:1EVcB1^B3[=C_A=>8kQj6=;[h;PUXBgb4AbB79SZHZ=<EFiONJ7[Go6IA?cWfob7N4 |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:1953 |
Show key headers only | View raw
As the error message states your function is unbounded, so
maximization is useless. See for yourself by adding Plot[f, {z, -2,
2}] // Print; after the definition of f in your loop
Cheers -- Sjoerd
On Apr 27, 11:39 am, tarun dutta <tarundut...@gmail.com> wrote:
> this is the following program.here I want to plot between x VS max.but
> I can not get the result.
>
> Do[d = 2635/33859;
> r = 0.6;
> a1 = 0.7;
> a2 = 0.13;
> g = 33859;
> b = 0.6631;
> x = (b*j*(j + 1))/g;
> f = (1/(a1 + a1*z + a2*z^2))*(b/g)*j*(j + 1) + (1 - Exp[-z])^2 +
> d*Exp[-r*z];
> {max, val} = NMaximize[f, z];
> list1 = Print[(*"x= ",*)x];
> list2 = Print[(*" max= ",*)max], {j, 0, 5}]
> ListPlot[{list1, list2}]
>
> any help will be appreciated.
> regards,
> tarun
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
plot of nmaximized result tarun dutta <tarunduttaz@gmail.com> - 2011-04-27 09:39 +0000 Re: plot of nmaximized result "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-04-28 10:35 +0000
csiph-web