Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16572
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | PAR123 <reiser.paul@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Minimization problem |
| Date | Tue, 18 Feb 2014 03:42:37 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <ldukrd$lao$1@smc.vnet.net> (permalink) |
| Lines | 7 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 18 Feb 2014 03:48:05 GMT |
| NNTP-Posting-Host | f195e42a.news.twtelecom.net |
| X-Trace | DXC=GKU0j`X96bKTY?c\TecZ8HC_A=>8kQj6M;[h;PUXBgbD?SWP;HjUf@FEFiONJ7[GoFQRfDS?0120O |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:16572 |
Show key headers only | View raw
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?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar
Minimization problem PAR123 <reiser.paul@gmail.com> - 2014-02-18 03:42 +0000 Re: Minimization problem "giovanni r." <g.resta@iit.cnr.it> - 2014-02-19 06:55 +0000
csiph-web