Skip to main content
1-Visitor
Nov 18, 2014 1:07 AM UTC
Solved

Minimization with 6 variational parameters

Hello,

I having a problem with Minimization with 6 paramaters. I have attached the worksheet. i am not able to find the problem. Its calculating, but it doesnot bring the answer. Pls kndly check my worksheet.

Thank you

RichardJAnswer
19-Tanzanite
Nov 19, 2014 12:33 PM UTC

How long did you wait? There's no way to know how many iterations will be needed to converge, but if each iteration takes 15 seconds then even 100 iterations would take about 25 minutes.

5 replies

Werner_E
25-Diamond I
Nov 18, 2014 7:14 AM UTC

You have to provide ALL variables when you call Minimize, not just the first.

1.png

I didn't wait for the expression to finsh calculation so I can't tell if it ever will stop and provide a solution.

Translate
aayyappan1-VisitorAuthor
1-Visitor
Nov 18, 2014 4:13 PM UTC

why its take too much of time to calculate? what is wrong with that?, what should i do to reduce the calculation time?

Translate
19-Tanzanite
Nov 18, 2014 7:20 PM UTC

The minimization is iterative. A numeric integration is iterative. So each triple integral is a loop in a loop in a loop, and you have 21 of them. They are all inside another loop (the minimization). There's probably not a lot you can do to speed things up, but one improvement would be to get rid of your x and y functions. They are always squared, so zh-ze and ze-zh are equivalent. A quick test indicates that replacing them with just zh-ze almost doubles the speed. Calculation of H still takes about 15 seconds though on my PC, so the minimization will take many times that.

Translate