1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Parallelizing FindMinimum

Discussion in 'Mathematics' started by M i ech, Aug 1, 2020.

  1. M i ech

    M i ech Guest

    I have complicated 6-dimensional function to optimise. Using FindMinimum works all right, but takes a few minutes. Considering that I want to check multiple starting points, I'm looking at run times of day or more. Can I improve it with parallel computing? I'd prefer to start from user defined points if possible.

    I was looking if I can somehow define list of lists of initial locations, microexample:

    inittable1long = {{{f1, -1}, {f2, 0}, {f3, 0}, {f4, 0}, {f5, 0}, {f6, 0}},
    {{f1, 0}, {f2, 0}, {f3, 0}, {f4, 0}, {f5, 0}, {f6, 0}},
    {{f1, 1}, {f2, 0}, {f3, 0}, {f4, 0}, {f5, 0}, {f6, 0}}};

    and then somehow run FindMinimum with above list of lists as initial conditions

    FindMinimum[{finaleq1 /. {d -> 0.6}, -1.2 <= f1 <= 1.2,
    -1.2 <= f2 <= 1.2, -1.2 <= f3 <= 1.2, -1.2 <= f4 <= 1.2,
    -1.2 <= f5 <= 1.2, -1.2 <= f6 <= 1.2}, inittable1long]

    to then use Parallelise, ParallelEvalutate or ParallelTable to make them run in parallel.

    Initially I simply had 6 nested loops changing initial values (a.k.a. standard programming approach), which of course gives me correct answer in form of list of optimisation results, but I do believe such an approach is impossible to parallelise.

    But it seems I'm missing too many elements to make it work. I'd appreciate any help in making my scheme work or providing alternate solution.

    Login To add answer/comment

Share This Page