Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Algebra sorted by activeMaximize values using a grid search?
http://community.wolfram.com/groups/-/m/t/1321309
[![enter image description here][1]][1]
I would like to find the maximum value and the optimal m_a and m_d from the above two functions using GRID search. I have tried but it doesn't work. Do you have any ideas? Any different example of the function with the code would also be great.
f = Integrate[PDF[NormalDistribution[10*Subscript[m, d], 1*Subscript[m, d]], Subscript[c,i]] * (Subscript[m, d]*Subscript[c, i] - 10) * (1-CDF[NormalDistribution[10*Subscript[m, a], 2*Subscript[m, a]], Subscript[c, i]]), {Subscript[c, i], -Infinity, Infinity}];
g = Integrate[PDF[NormalDistribution[10*Subscript[m, a], 2*Subscript[m, a]], Subscript[c,i]] * (Subscript[m, a]*Subscript[c, i] - 10) * (1-CDF[NormalDistribution[10*Subscript[m, d], 1*Subscript[m, a]], Subscript[c, i]]), {Subscript[c, i], -Infinity, Infinity}];
NMaximize[f, {Subscript[m, d], Subscript[m, a]},Method -> {"RandomSearch"}];
NMaximize[g, {Subscript[m, d], Subscript[m, a]},Method -> {"RandomSearch"}];
The results show just f and g. It doesn't work for NMaximize. The screenshot is as follows:
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/vl0gw.png
[2]: https://i.stack.imgur.com/yqW7V.pngSanghoon Cho2018-04-16T15:46:46ZDetermine the characteristic polynomial of an algebraic 11 by 11 matrix?
http://community.wolfram.com/groups/-/m/t/1321094
I wish to carry out a calculation which will produce a large volume of output. Specifically, to determine the characteristic polynomial of a general algebraic 11 by 11 symmetric matrix called 'm11' using Mathematica 10. I input the matrix then give the input CharacteristicPolynomial[m11, W] and for a while the banner at the top of the Mathematica says 'Running', but then it changes to just the file name without giving any output. Under 'Evaluation' the Abort Evaluation option now appears greyed-out, whereas it was in black to start.
My computer runs Windows 10 and has 64 Gb or RAM and two 1 Tb hard discs. The smaller 10 by 10 matrix does calculate and gives an output, though it takes about 10 minutes. I appreciate that the 11 by 11 one will take longer.
Mathematica does not give a clear indication that it has stopped calculating -- I cannot tell whether it is still working away in the background.
Therefore I cannot tell whether it will produce output in a few hours, or whether it has given up the job without telling me clearly.
Can any of you experts please advise a novice on this, please?batemill2018-04-16T12:20:06ZFind a maximum of the following function using Grid Search?
http://community.wolfram.com/groups/-/m/t/1319525
[![enter image description here][1]][1]
I would like to find the maximum value and the optimal m_a and m_d from the above two functions using GRID search. I have tried but it doesn't work. Do you have any ideas? Any different example of the function with the code would also be great.
f = Integrate[PDF[NormalDistribution[10*Subscript[m, d], 1*Subscript[m, d]], Subscript[c,i]] * (Subscript[m, d]*Subscript[c, i] - 10) * (1-CDF[NormalDistribution[10*Subscript[m, a], 2*Subscript[m, a]], Subscript[c, i]]), {Subscript[c, i], -Infinity, Infinity}];
g = Integrate[PDF[NormalDistribution[10*Subscript[m, a], 2*Subscript[m, a]], Subscript[c,i]] * (Subscript[m, a]*Subscript[c, i] - 10) * (1-CDF[NormalDistribution[10*Subscript[m, d], 1*Subscript[m, a]], Subscript[c, i]]), {Subscript[c, i], -Infinity, Infinity}];
NMaximize[f, {Subscript[m, d], Subscript[m, a]},Method -> {"RandomSearch"}];
NMaximize[g, {Subscript[m, d], Subscript[m, a]},Method -> {"RandomSearch"}];
The results show just f and g. It doesn't work for NMaximize. The screenshot is as follows:
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/vl0gw.png
[2]: https://i.stack.imgur.com/yqW7V.pngSanghoon Cho2018-04-13T01:03:22Z