Timeline for Can you run FindMinimum excluding imaginary results?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:55 | history | edited | CommunityBot |
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
|
|
Aug 11, 2016 at 21:46 | comment | added | Quark Soup | I can't speak for Xavier, but removing the subscripts seems to have cleared the problem. I like the read-ability of the subscripted notebooks - it looks more like what I write by hand - but I'm having second thoughts about the practice. | |
Aug 11, 2016 at 14:08 | comment | added | Michael E2 |
The error message shows that the value of the function is not a complex number either. Try plugging valid values in for the variables and see what you get. There's something wrong with your definition. (FWIW, I always avoid subscripts myself, except sometimes with Format[] . I also tend to avoid questions with subscripts. There are plenty of other questions without them. :)
|
|
Aug 11, 2016 at 12:14 | comment | added | user31159 |
@DRAirey1 Giving FindMinimum[{chiSquared[Subscript[t, 1], Subscript[a, 0]]}, {{Subscript[t, 1], 1*^16}, {Subscript[a, 0], 1*^-14}}] works fine and produces the same result as FindMinimum[{chiSquared[t1, a0]}, {{t1, 1*^16}, {a0, 1*^-14}}] for me.
|
|
Aug 11, 2016 at 12:05 | comment | added | Quark Soup | I'm still working on it, but there seems to be a bug when using the subscript notation. You are correct, the notation I supplied seems to work. In my original notebook, the same values when subscripted (e.g. $t_1, a_0$) fail with the above message. | |
Aug 11, 2016 at 11:56 | comment | added | user31159 | Are you using the same definitions and values as in the post you linked to? This does not produce any error on my side. | |
Aug 11, 2016 at 11:42 | comment | added | Quark Soup | Apparently not. I get the same message above, but with the 'Re[<previous message>]'. Oddly, if I just take the 'chiSquared' function at the coordinates quoted in the error message (e.g. 1, 1), I get a real number. | |
Aug 11, 2016 at 11:40 | history | edited | Quark Soup | CC BY-SA 3.0 |
added 428 characters in body
|
Aug 11, 2016 at 11:35 | comment | added | Feyre |
Can't you just wrap the function in Re[] ?
|
|
Aug 11, 2016 at 11:17 | history | undeleted | Quark Soup | ||
Aug 11, 2016 at 11:02 | history | deleted | Quark Soup | via Vote | |
Aug 11, 2016 at 10:52 | history | asked | Quark Soup | CC BY-SA 3.0 |