How to resume a simulation based direct optimisation

One question comes up quite often: I had to stop an optimisation running on my laptop; can I resume the optimisation taking into account the simulations already performed?

In this post, we will explain one way to do this.

The start of the procedure is the same as an optimisation done from scratch:

  • open a lagun session;
  • click « Problem definition/Import DOE » menu item; a dialogue box should appear;
  • select « Use Simulator/Study without a DOE: Direct Optimization ».

Before clicking « Confirm », you need to select from the drop-down list the « Run Set » used by the previous optimization.

Note 1: to be sure to select the good « run set », you can check if the corresponding directory contains the two files generated by optimisation process: OptimYYYY-MM-DD_HHhMMmSSs.json and OptimYYYY-MM-DD_HHhMMmSSs.zip

resumeDirectOptim-Part1

Once the « Direct Optimization » panel is displayed:

  • click « Use a previous optimization » button; a dialogue box should appear;
  • if necessary, change the item YYYY-MM-DD_HHhMMmSSs selected in the drop-down list;
  • click « Confirm ».

The « Direct Optimization » panel should appear filled in with the data from the previous optimisation (if necessary, click « Define Optimization Problem » to expand the panel).

resumeDirectOptim-Part2

Now, you can click « Launch Optimization »: as the optimisation process is deterministic, the points requested during the previous optimisation should be requested again and the results reused.

Note 2: If necessary, the parameter maxeval must first be increased so that the optimisation process goes further than the previous one.

Note 3: in the « Run Set » directory, you should see two new files generated by this new optimisation process (OptimYYYY-MM-DD_HHhMMmSSs.json and OptimYYYY-MM-DD_HHhMMmSSs.zip).