Mathematica:How to solve the summation of numerical integration

Click For Summary
SUMMARY

The forum discussion focuses on using Mathematica to solve a numerical integration problem involving the minimization of variables t1 and t2, given fixed values for t0 and t3. The user successfully employs the NMinimize function to find optimal values for t1 and t2 based on a defined integral expression. The discussion also raises the question of how to extend this method to larger sets of variables, specifically from t1 to t9, indicating a need for scalable solutions in Mathematica.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of numerical integration techniques
  • Knowledge of optimization methods, specifically NMinimize
  • Basic grasp of exponential functions and their applications in integration
NEXT STEPS
  • Explore advanced features of NMinimize in Mathematica for handling larger variable sets
  • Research techniques for numerical integration in Mathematica with multiple variables
  • Learn about the use of constraints in optimization problems within Mathematica
  • Investigate alternative optimization methods available in Mathematica for complex problems
USEFUL FOR

Mathematica users, mathematicians, and engineers involved in numerical analysis and optimization tasks, particularly those dealing with complex integrals and variable minimization.

shafieza_garl
Messages
20
Reaction score
0
From the attachment. i would like to know how to find (t_1 and t_2)minimum if given t_0=0 and t_3=5.It seem like when using excel solver to find the minimum.anyone know how to do it with mathematica?
 

Attachments

  • Kerja_2.jpg
    Kerja_2.jpg
    8.4 KB · Views: 618
Physics news on Phys.org
In my experience with MMA trying to use subscripts is often more trouble than it is worth.

What I would do is

t0 = 0; t3 = 5; NMinimize[{
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t1) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t1)*t1))^2, {t, t0, t1}] +
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t2) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t2)*t1))^2, {t, t1, t2}] +
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t3) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t3)*t1))^2,{t, t2, t3}],
t0 <= t1 && t1 <= t2 && t2 <= t3}, {t1, t2}]

and it gives you an answer in a few seconds.
 
thanks for da help.it really help me.but is there any other way to solve when n become a large number.like we change 3 into 10 and we want to find t1 until t9.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
3
Views
3K
  • · Replies 58 ·
2
Replies
58
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
3K