Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9844
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: LinearModelFit doesn't work with constraints? |
| Date | 2012-04-28 09:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jngd8b$nh$1@smc.vnet.net> (permalink) |
On 4/27/12 at 6:49 AM, mheaney@gmail.com (Michael B. Heaney) wrote:
>Why does this fit work with FindFit but not with LinearModelFit? Can
>it be fixed to work with LinearModelFit?:
>lmf = LinearModelFit[data, {a + b*x, {a < 0, b< 0}}, {a, b}, {x}]
Look at the documentation for LinearModelFit. The syntax is not
the same as for FindFit. You've attempted to use FindFit syntax
which is the problem.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: LinearModelFit doesn't work with constraints? Bill Rowe <readnews@sbcglobal.net> - 2012-04-28 09:28 +0000
csiph-web