Version information

[1]:
%matplotlib notebook
from PySide2.QtWidgets import *
from datetime import date
print("Running date:", date.today().strftime("%B %d, %Y"))
import pyleecan
print("Pyleecan version:" + pyleecan.__version__)
import SciDataTool
print("SciDataTool version:" + SciDataTool.__version__)
Running date: April 27, 2023
Pyleecan version:1.5.0
SciDataTool version:2.5.0

How to solve optimization problem in Pyleecan

This tutorial explains how to use Pyleecan to solve constrained global optimization problem.

The notebook related to this tutorial is available on GitHub.

The tutorial introduces the different objects to define each aspect of an optimization. To do so, we will present an example to maximize the average torque and minimize the first torque harmonic by varying the stator slot opening and the rotor external radius and by adding a constraint on torque ripple.

Problem definition

The object OptiProblem contains all the optimization problem characteristics:

  • the simulation/machine to iterate on

  • the design variable to vary some parameters of the simulation (e.g. input current, topology of the machine)

  • the objective functions to minimize for the simulation

  • some constraints (optional)

Reference simulation definition

To define the problem, we first define a reference simulation. Each optimization evaluation will copy the reference simulation, set the value of the design variables and run the new simulation.

This exemple uses the simulation defined in the tutorial How to define a simulation to call FEMM, (with less precision for FEMM mesh to speed up the calculations)

[3]:
%matplotlib notebook
from numpy import ones, pi, array, linspace
from pyleecan.Classes.Simu1 import Simu1
from pyleecan.Classes.Output import Output
from pyleecan.Classes.InputCurrent import InputCurrent
from pyleecan.Classes.OPdq import OPdq
from pyleecan.Classes.ImportMatrixVal import ImportMatrixVal
from pyleecan.Classes.MagFEMM import MagFEMM
from pyleecan.Functions.load import load
from pyleecan.definitions import DATA_DIR
from os.path import join

# Import the machine from a script
Toyota_Prius = load(join(DATA_DIR, "Machine", "Toyota_Prius.json"))
fig, ax = Toyota_Prius.plot()
rotor_speed = 2000 # [rpm]

# Create the Simulation
simu_ref = Simu1(name="EM_SIPMSM_AL_001", machine=Toyota_Prius)

# Defining Simulation Input
simu_ref.input = InputCurrent()

# time discretization [s]
simu_ref.input.Nt_tot = 16

# Angular discretization along the airgap circonference for flux density calculation
simu_ref.input.Na_tot = 1024

# Defining Operating Point
simu_ref.input.OP = OPdq()
simu_ref.input.OP.N0 = rotor_speed # Rotor speed as a function of time [rpm]
# Stator sinusoidal currents
simu_ref.input.OP.Id_ref = -100 # [Arms]
simu_ref.input.OP.Iq_ref = 200 # [Arms]

# Definition of the magnetic simulation (is_mmfr=False => no flux from the magnets)
simu_ref.mag = MagFEMM(
    type_BH_stator=0, # 0 to use the B(H) curve,
                           # 1 to use linear B(H) curve according to mur_lin,
                           # 2 to enforce infinite permeability (mur_lin =100000)
    type_BH_rotor=0,  # 0 to use the B(H) curve,
                           # 1 to use linear B(H) curve according to mur_lin,
                           # 2 to enforce infinite permeability (mur_lin =100000)
    file_name = "", # Name of the file to save the FEMM model
    is_periodicity_a=True, # Use Angular periodicity
    is_periodicity_t=True,  # Use time periodicity
    Kmesh_fineness = 0.2, # Decrease mesh precision
    Kgeo_fineness = 0.2, # Decrease mesh precision
)

# We only use the magnetic part
simu_ref.force = None
simu_ref.struct = None

Minimization problem definition

To setup the optimization problem, we define some objective functions using the OptiObjective object (which behave the same way as DataKeeper).

Each objective function is stored in the keeper attribute of a OptiObjective. keeper is a function and can be set either with a string (mandatory to be able to save the object) or directly with a function (the function will be discarded when saving). This type of function takes an output object in argument and returns a float to minimize.

We gather the objective functions into a list:

[4]:
from pyleecan.Classes.OptiObjective import OptiObjective
import numpy as np

def harm1(output):
    """Return the first torque harmonic """
    harm_list = output.mag.Tem.get_magnitude_along("freqs")["T_{em}"]

    # Return the first torque harmonic
    return harm_list[1]

my_obj = [
    OptiObjective(
        name="Maximization of the average torque",
        symbol="Tem_av",
        unit="N.m",
        keeper="lambda output: -abs(output.mag.Tem_av)",  # keeper can be saved
    ),
    OptiObjective(
        name="Minimization of the first torque harmonic",
        symbol="Tem_h1",
        unit="N.m",
        keeper=harm1,  # keeper will be cleaned in save
    ),
]

The first objective minimize the “-abs(output.mag.Tem_av)” and so maximize the average torque and is set with a string.

The second objective is set as a function. To set it as a string, this function can be defined inside a file and then keeper can be defined as “path/to/file” (example available at https://github.com/Eomys/pyleecan/blob/master/Tests/Validation/Multisimulation/test_multi_multi.py with the function “make_gif”)

Design variables

We use the object OptiDesignVarInterval or OptiDesignVarSet to define the design variables.

OptiDesignVarInterval is for continuous variables. OptiDesignVarSet is for discret variables.

To define a design variable, we have to specify different attributes (both objects have the same attributes but different use):

  • name to define the design variable name

  • symbol to access to the variable / for plot (must be unique)

  • unit to define the variable unit

  • space to set the variable bound

  • setter to access to the variable in the simu object. This attribute must begin by “simu”.

  • get_value function that takes the space in argument and returns a variable value (To initiate the first generation)

We store the design variables in a list. For this example, we define two design variables:

  1. Stator slot opening: can be any value between 0 and the slot width.

  2. Rotor external radius: can be one of the four value specified [99.8%, 99.9%, 100%, 100.1%] of the default rotor external radius

[5]:
from pyleecan.Classes.OptiDesignVarInterval import OptiDesignVarInterval
from pyleecan.Classes.OptiDesignVarSet import OptiDesignVarSet
import random

# Design variables
my_design_var = [
    OptiDesignVarInterval(
        name="Stator slot opening",
        symbol = "SW0",
        unit = "m",
        space=[
            0 * simu_ref.machine.stator.slot.W2,
            simu_ref.machine.stator.slot.W2,
        ],
        get_value="lambda space: random.uniform(*space)", # To initiate randomly the first generation
        setter="simu.machine.stator.slot.W0", # Variable to edit
    ),
    OptiDesignVarSet(
        name= "Rotor ext radius",
        symbol = "Rext",
        unit = "m",
        space=[
            0.998 * simu_ref.machine.rotor.Rext,
            0.999 * simu_ref.machine.rotor.Rext,
            simu_ref.machine.rotor.Rext,
            1.001 * simu_ref.machine.rotor.Rext,
        ],
        get_value="lambda space: random.choice(space)",
        setter = "simu.machine.rotor.Rext"
    ),
]

Setter and get_value are also functions defined as string, which enable to set more complex function. For instance, setter could be used to multiply all the slot parameter by a scalling factor (example available at https://github.com/Eomys/pyleecan/blob/master/Tests/Validation/Multisimulation/test_slot_scale.py)

Constraints

The class OptiConstraint enables to define some constraint. For each constraint, we have to define the following attributes:

  • name

  • type_const: type of constraint

    • “==”

    • “<=”

    • “<”

    • “>=”

    • “>”

  • value: value to compare

  • keeper: function which takes output in argument and returns the constraint value

We also store the constraints into a list.

[6]:
from pyleecan.Classes.OptiConstraint import OptiConstraint
my_constraint = [
    OptiConstraint(
        name = "const1",
        type_const = "<=",
        value = 700,
        keeper = "lambda output: abs(output.mag.Tem_rip_pp)",
    )
]

Evaluation function & Problem definition

Finally we can define our problem by gathering the simulation to run, the design variables, the objectives functions, the constraints and by setting an evalutaion function. For this example we keep the default one which calls the simu.run method. A custom evaluation function can also be defined as illustrated in the Bayesian optimization tutorial.

[7]:
from pyleecan.Classes.OptiProblem import OptiProblem


# Problem creation
my_prob = OptiProblem(
    simu=simu_ref,
    design_var=my_design_var,
    obj_func=my_obj,
    constraint = my_constraint,
    eval_func = None # To keep the default evaluation function (simu.run)
)

Solver

Pyleecan separes the problem and solver definition to be able to create different solver that uses the same objects.

The class OptiGenAlgNsga2 enables to solve our problem using NSGA-II genetical algorithm. The algorithm takes several parameters:

Parameter

Description

Type

Default Value

problem

Problem to solve

OptiProblem

mandatory

size_pop

Population size per generation

int

40

nb_gen

Generation number

int

100

p_cross

Crossover probability

float

0.9

p_mutate

Mutation probability

float

0.1

The solve method performs the optimization and returns an OutputMultiOpti object which contains the results.

[8]:
from pyleecan.Classes.OptiGenAlgNsga2Deap import OptiGenAlgNsga2Deap

# Solve problem with NSGA-II
solver = OptiGenAlgNsga2Deap(problem=my_prob, size_pop=16, nb_gen=8, p_mutate=0.5)
res = solver.solve()
16:59:50 Starting optimization...
        Number of generations: 8
        Population size: 16

16:59:50  gen     0: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 3.60e-03, Rext: 8.01e-02
[16:59:50] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[16:59:50] Starting Magnetic module
[16:59:51] Computing Airgap Flux in FEMM
[16:59:53] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.52e+01

16:59:53  gen     0: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 2.33e-03, Rext: 8.03e-02
[16:59:53] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[16:59:53] Starting Magnetic module
[16:59:54] Computing Airgap Flux in FEMM
[16:59:56] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.92e+02, Tem_h1: 1.71e+01

16:59:56  gen     0: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 5.63e-03, Rext: 8.01e-02
[16:59:56] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[16:59:56] Starting Magnetic module
[16:59:57] Computing Airgap Flux in FEMM
[16:59:58] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.73e+02, Tem_h1: 1.38e+01

16:59:58  gen     0: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 7.68e-04, Rext: 8.01e-02
[16:59:58] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[16:59:58] Starting Magnetic module
[16:59:59] Computing Airgap Flux in FEMM
[17:00:01] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.66e+02, Tem_h1: 1.55e+01

17:00:01  gen     0: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 6.23e-03, Rext: 8.03e-02
[17:00:01] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:01] Starting Magnetic module
[17:00:02] Computing Airgap Flux in FEMM
[17:00:04] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.87e+02, Tem_h1: 1.58e+01

17:00:04  gen     0: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 7.90e-03, Rext: 8.03e-02
[17:00:04] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:04] Starting Magnetic module
[17:00:05] Computing Airgap Flux in FEMM
[17:00:07] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.72e+02, Tem_h1: 1.66e+01

17:00:07  gen     0: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.02e-02
[17:00:07] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:07] Starting Magnetic module
[17:00:08] Computing Airgap Flux in FEMM
[17:00:09] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 1.21e+01

17:00:09  gen     0: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 8.48e-04, Rext: 8.03e-02
[17:00:09] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:09] Starting Magnetic module
[17:00:10] Computing Airgap Flux in FEMM
[17:00:11] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.71e+02, Tem_h1: 2.03e+01

17:00:11  gen     0: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 5.21e-03, Rext: 8.02e-02
[17:00:11] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:11] Starting Magnetic module
[17:00:12] Computing Airgap Flux in FEMM
[17:00:13] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.82e+02, Tem_h1: 1.60e+01

17:00:13  gen     0: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 3.94e-03, Rext: 8.03e-02
[17:00:13] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:13] Starting Magnetic module
[17:00:14] Computing Airgap Flux in FEMM
[17:00:15] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.94e+02, Tem_h1: 1.62e+01

17:00:15  gen     0: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 1.25e-03, Rext: 8.03e-02
[17:00:15] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:15] Starting Magnetic module
[17:00:16] Computing Airgap Flux in FEMM
[17:00:17] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.73e+01

17:00:17  gen     0: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 2.28e-03, Rext: 8.00e-02
[17:00:17] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:18] Starting Magnetic module
[17:00:18] Computing Airgap Flux in FEMM
[17:00:20] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.56e+01

17:00:20  gen     0: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 2.56e-03, Rext: 8.00e-02
[17:00:20] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:20] Starting Magnetic module
[17:00:20] Computing Airgap Flux in FEMM
[17:00:22] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.96e+01

17:00:22  gen     0: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 7.72e-03, Rext: 8.02e-02
[17:00:22] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:22] Starting Magnetic module
[17:00:23] Computing Airgap Flux in FEMM
[17:00:24] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.71e+02, Tem_h1: 1.40e+01

17:00:24  gen     0: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 3.10e-05, Rext: 8.02e-02
[17:00:24] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:24] Starting Magnetic module
[17:00:25] Computing Airgap Flux in FEMM
[17:00:26] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.52e+02, Tem_h1: 1.60e+01

17:00:26  gen     0: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.03e-02
[17:00:26] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:27] Starting Magnetic module
[17:00:27] Computing Airgap Flux in FEMM
[17:00:29] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.96e+02, Tem_h1: 1.67e+01

17:00:29  gen     0: Finished,    0 errors,   0 infeasible.

17:00:29  gen     1: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 3.90e-03, Rext: 8.00e-02
[17:00:29] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:29] Starting Magnetic module
[17:00:30] Computing Airgap Flux in FEMM
[17:00:31] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.45e+01

17:00:31  gen     1: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 7.72e-03, Rext: 8.01e-02
[17:00:31] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:31] Starting Magnetic module
[17:00:32] Computing Airgap Flux in FEMM
[17:00:33] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.65e+02, Tem_h1: 1.79e+01

17:00:33  gen     1: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 7.68e-04, Rext: 8.03e-02
[17:00:33] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:33] Starting Magnetic module
[17:00:34] Computing Airgap Flux in FEMM
[17:00:35] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 2.06e+01

17:00:35  gen     1: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.00e-02
[17:00:35] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:35] Starting Magnetic module
[17:00:36] Computing Airgap Flux in FEMM
[17:00:37] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.60e+02, Tem_h1: 1.13e+01

17:00:37  gen     1: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 7.75e-03, Rext: 8.03e-02
[17:00:37] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:37] Starting Magnetic module
[17:00:38] Computing Airgap Flux in FEMM
[17:00:39] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.43e+01

17:00:39  gen     1: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 2.09e-03, Rext: 8.03e-02
[17:00:39] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:39] Starting Magnetic module
[17:00:40] Computing Airgap Flux in FEMM
[17:00:42] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.88e+02, Tem_h1: 1.78e+01

17:00:42  gen     1: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 2.56e-03, Rext: 8.03e-02
[17:00:42] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:42] Starting Magnetic module
[17:00:42] Computing Airgap Flux in FEMM
[17:00:44] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.91e+02, Tem_h1: 1.70e+01

17:00:44  gen     1: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 3.18e-03, Rext: 8.01e-02
[17:00:44] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:44] Starting Magnetic module
[17:00:45] Computing Airgap Flux in FEMM
[17:00:46] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.81e+01

17:00:46  gen     1: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 4.77e-03, Rext: 8.00e-02
[17:00:46] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:46] Starting Magnetic module
[17:00:47] Computing Airgap Flux in FEMM
[17:00:48] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.41e+01

17:00:48  gen     1: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 2.33e-03, Rext: 8.00e-02
[17:00:48] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:48] Starting Magnetic module
[17:00:49] Computing Airgap Flux in FEMM
[17:00:50] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 2.06e+01

17:00:50  gen     1: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 2.33e-03, Rext: 8.00e-02
[17:00:50] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:50] Starting Magnetic module
[17:00:51] Computing Airgap Flux in FEMM
[17:00:52] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 2.04e+01

17:00:52  gen     1: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 5.31e-04, Rext: 8.00e-02
[17:00:52] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:52] Starting Magnetic module
[17:00:53] Computing Airgap Flux in FEMM
[17:00:55] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.60e+02, Tem_h1: 1.41e+01

17:00:55  gen     1: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 2.28e-03, Rext: 8.01e-02
[17:00:55] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:55] Starting Magnetic module
[17:00:55] Computing Airgap Flux in FEMM
[17:00:57] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.75e+02, Tem_h1: 2.15e+01

17:00:57  gen     1: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 5.32e-03, Rext: 8.03e-02
[17:00:57] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:57] Starting Magnetic module
[17:00:58] Computing Airgap Flux in FEMM
[17:00:59] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.92e+02, Tem_h1: 1.69e+01

17:00:59  gen     1: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 1.58e-05, Rext: 8.02e-02
[17:00:59] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:00:59] Starting Magnetic module
[17:01:00] Computing Airgap Flux in FEMM
[17:01:02] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.50e+02, Tem_h1: 1.64e+01

17:01:02  gen     1: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 6.25e-03, Rext: 8.03e-02
[17:01:02] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:02] Starting Magnetic module
[17:01:02] Computing Airgap Flux in FEMM
[17:01:04] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.87e+02, Tem_h1: 1.58e+01

17:01:04  gen     1: Finished,    0 errors,   0 infeasible.

17:01:04  gen     2: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 5.25e-03, Rext: 8.01e-02
[17:01:04] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:04] Starting Magnetic module
[17:01:05] Computing Airgap Flux in FEMM
[17:01:06] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.38e+01

17:01:06  gen     2: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 7.52e-03, Rext: 8.03e-02
[17:01:06] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:06] Starting Magnetic module
[17:01:07] Computing Airgap Flux in FEMM
[17:01:08] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.43e+01

17:01:08  gen     2: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 5.63e-03, Rext: 8.02e-02
[17:01:08] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:08] Starting Magnetic module
[17:01:09] Computing Airgap Flux in FEMM
[17:01:10] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.55e+01

17:01:10  gen     2: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 2.29e-03, Rext: 8.02e-02
[17:01:10] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:10] Starting Magnetic module
[17:01:11] Computing Airgap Flux in FEMM
[17:01:12] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.84e+02, Tem_h1: 1.66e+01

17:01:12  gen     2: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 1.80e-03, Rext: 8.03e-02
[17:01:12] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:12] Starting Magnetic module
[17:01:13] Computing Airgap Flux in FEMM
[17:01:14] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.85e+02, Tem_h1: 1.73e+01

17:01:15  gen     2: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 7.46e-03, Rext: 8.00e-02
[17:01:15] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:15] Starting Magnetic module
[17:01:15] Computing Airgap Flux in FEMM
[17:01:17] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.62e+02, Tem_h1: 1.36e+01

17:01:17  gen     2: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 2.22e-03, Rext: 8.03e-02
[17:01:17] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:17] Starting Magnetic module
[17:01:17] Computing Airgap Flux in FEMM
[17:01:19] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.89e+02, Tem_h1: 1.76e+01

17:01:19  gen     2: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 5.90e-03, Rext: 8.03e-02
[17:01:19] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:19] Starting Magnetic module
[17:01:20] Computing Airgap Flux in FEMM
[17:01:21] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.89e+02, Tem_h1: 1.57e+01

17:01:21  gen     2: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 3.47e-03, Rext: 8.02e-02
[17:01:21] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:21] Starting Magnetic module
[17:01:22] Computing Airgap Flux in FEMM
[17:01:23] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.85e+02, Tem_h1: 1.76e+01

17:01:23  gen     2: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 7.86e-03, Rext: 8.01e-02
[17:01:23] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:23] Starting Magnetic module
[17:01:24] Computing Airgap Flux in FEMM
[17:01:25] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.62e+02, Tem_h1: 1.43e+01

17:01:25  gen     2: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 4.77e-03, Rext: 8.00e-02
[17:01:25] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:25] Starting Magnetic module
[17:01:26] Computing Airgap Flux in FEMM
[17:01:27] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.41e+01

17:01:27  gen     2: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 2.57e-03, Rext: 8.00e-02
[17:01:27] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:27] Starting Magnetic module
[17:01:28] Computing Airgap Flux in FEMM
[17:01:29] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.94e+01

17:01:29  gen     2: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 7.93e-03, Rext: 8.02e-02
[17:01:29] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:29] Starting Magnetic module
[17:01:30] Computing Airgap Flux in FEMM
[17:01:31] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.66e+02, Tem_h1: 1.59e+01

17:01:31  gen     2: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 4.98e-03, Rext: 8.02e-02
[17:01:31] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:31] Starting Magnetic module
[17:01:32] Computing Airgap Flux in FEMM
[17:01:33] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.84e+02, Tem_h1: 1.56e+01

17:01:33  gen     2: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 3.90e-03, Rext: 8.03e-02
[17:01:33] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:33] Starting Magnetic module
[17:01:34] Computing Airgap Flux in FEMM
[17:01:35] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.94e+02, Tem_h1: 1.62e+01

17:01:35  gen     2: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 5.55e-03, Rext: 8.01e-02
[17:01:35] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:35] Starting Magnetic module
[17:01:36] Computing Airgap Flux in FEMM
[17:01:38] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.74e+02, Tem_h1: 1.48e+01

17:01:38  gen     2: Finished,    0 errors,   0 infeasible.

17:01:38  gen     3: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 5.96e-03, Rext: 8.02e-02
[17:01:38] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:38] Starting Magnetic module
[17:01:39] Computing Airgap Flux in FEMM
[17:01:40] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.50e+01

17:01:40  gen     3: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 7.31e-03, Rext: 8.01e-02
[17:01:40] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:40] Starting Magnetic module
[17:01:41] Computing Airgap Flux in FEMM
[17:01:42] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.68e+02, Tem_h1: 9.97e+00

17:01:42  gen     3: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 6.25e-03, Rext: 8.01e-02
[17:01:42] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:42] Starting Magnetic module
[17:01:43] Computing Airgap Flux in FEMM
[17:01:44] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.71e+02, Tem_h1: 1.40e+01

17:01:44  gen     3: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 3.96e-03, Rext: 8.01e-02
[17:01:44] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:44] Starting Magnetic module
[17:01:45] Computing Airgap Flux in FEMM
[17:01:46] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.67e+01

17:01:46  gen     3: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 5.40e-03, Rext: 8.00e-02
[17:01:46] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:46] Starting Magnetic module
[17:01:47] Computing Airgap Flux in FEMM
[17:01:48] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.34e+01

17:01:48  gen     3: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.01e-02
[17:01:48] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:48] Starting Magnetic module
[17:01:49] Computing Airgap Flux in FEMM
[17:01:50] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.64e+02, Tem_h1: 8.57e+00

17:01:50  gen     3: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 7.46e-03, Rext: 8.00e-02
[17:01:50] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:50] Starting Magnetic module
[17:01:51] Computing Airgap Flux in FEMM
[17:01:52] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.62e+02, Tem_h1: 1.36e+01

17:01:52  gen     3: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 5.63e-03, Rext: 8.02e-02
[17:01:52] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:52] Starting Magnetic module
[17:01:53] Computing Airgap Flux in FEMM
[17:01:54] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.55e+01

17:01:54  gen     3: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 5.25e-03, Rext: 8.03e-02
[17:01:54] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:54] Starting Magnetic module
[17:01:55] Computing Airgap Flux in FEMM
[17:01:56] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.93e+02, Tem_h1: 1.60e+01

17:01:56  gen     3: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 5.21e-03, Rext: 8.00e-02
[17:01:56] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:56] Starting Magnetic module
[17:01:57] Computing Airgap Flux in FEMM
[17:01:58] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.29e+01

17:01:58  gen     3: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 7.22e-03, Rext: 8.01e-02
[17:01:58] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:01:58] Starting Magnetic module
[17:01:59] Computing Airgap Flux in FEMM
[17:02:00] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.68e+02, Tem_h1: 9.28e+00

17:02:00  gen     3: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 7.46e-03, Rext: 8.03e-02
[17:02:00] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:00] Starting Magnetic module
[17:02:01] Computing Airgap Flux in FEMM
[17:02:03] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.43e+01

17:02:03  gen     3: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 2.09e-03, Rext: 8.00e-02
[17:02:03] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:03] Starting Magnetic module
[17:02:03] Computing Airgap Flux in FEMM
[17:02:05] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.75e+02, Tem_h1: 1.51e+01

17:02:05  gen     3: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 5.25e-03, Rext: 8.02e-02
[17:02:05] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:05] Starting Magnetic module
[17:02:06] Computing Airgap Flux in FEMM
[17:02:07] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.81e+02, Tem_h1: 1.58e+01

17:02:07  gen     3: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 7.66e-03, Rext: 8.03e-02
[17:02:07] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:07] Starting Magnetic module
[17:02:08] Computing Airgap Flux in FEMM
[17:02:09] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 1.40e+01

17:02:09  gen     3: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 2.45e-03, Rext: 8.00e-02
[17:02:09] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:09] Starting Magnetic module
[17:02:10] Computing Airgap Flux in FEMM
[17:02:11] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.76e+02, Tem_h1: 2.00e+01

17:02:11  gen     3: Finished,    0 errors,   0 infeasible.

17:02:11  gen     4: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 4.64e-03, Rext: 8.02e-02
[17:02:11] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:11] Starting Magnetic module
[17:02:12] Computing Airgap Flux in FEMM
[17:02:13] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.84e+02, Tem_h1: 1.62e+01

17:02:13  gen     4: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 7.40e-03, Rext: 8.00e-02
[17:02:13] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:13] Starting Magnetic module
[17:02:14] Computing Airgap Flux in FEMM
[17:02:15] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.62e+02, Tem_h1: 1.37e+01

17:02:15  gen     4: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 6.25e-03, Rext: 8.01e-02
[17:02:15] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:15] Starting Magnetic module
[17:02:16] Computing Airgap Flux in FEMM
[17:02:18] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.71e+02, Tem_h1: 1.40e+01

17:02:18  gen     4: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:02:18] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:18] Starting Magnetic module
[17:02:18] Computing Airgap Flux in FEMM
[17:02:19] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:02:19  gen     4: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 5.21e-03, Rext: 8.01e-02
[17:02:19] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:19] Starting Magnetic module
[17:02:20] Computing Airgap Flux in FEMM
[17:02:21] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.75e+02, Tem_h1: 1.56e+01

17:02:21  gen     4: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.01e-02
[17:02:21] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:21] Starting Magnetic module
[17:02:22] Computing Airgap Flux in FEMM
[17:02:23] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.47e+01

17:02:23  gen     4: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 2.11e-03, Rext: 8.01e-02
[17:02:23] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:23] Starting Magnetic module
[17:02:24] Computing Airgap Flux in FEMM
[17:02:26] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.74e+02, Tem_h1: 1.84e+01

17:02:26  gen     4: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 2.56e-03, Rext: 8.03e-02
[17:02:26] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:26] Starting Magnetic module
[17:02:26] Computing Airgap Flux in FEMM
[17:02:28] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.91e+02, Tem_h1: 1.70e+01

17:02:28  gen     4: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.00e-02
[17:02:28] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:28] Starting Magnetic module
[17:02:29] Computing Airgap Flux in FEMM
[17:02:30] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.60e+02, Tem_h1: 1.13e+01

17:02:30  gen     4: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 6.72e-03, Rext: 8.03e-02
[17:02:30] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:30] Starting Magnetic module
[17:02:31] Computing Airgap Flux in FEMM
[17:02:32] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.52e+01

17:02:32  gen     4: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 7.22e-03, Rext: 8.02e-02
[17:02:32] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:32] Starting Magnetic module
[17:02:33] Computing Airgap Flux in FEMM
[17:02:34] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.73e+02, Tem_h1: 1.45e+01

17:02:34  gen     4: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 5.25e-03, Rext: 8.03e-02
[17:02:34] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:34] Starting Magnetic module
[17:02:35] Computing Airgap Flux in FEMM
[17:02:36] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.93e+02, Tem_h1: 1.60e+01

17:02:36  gen     4: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 7.27e-03, Rext: 8.01e-02
[17:02:36] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:36] Starting Magnetic module
[17:02:37] Computing Airgap Flux in FEMM
[17:02:38] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.68e+02, Tem_h1: 9.98e+00

17:02:38  gen     4: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 7.59e-03, Rext: 8.03e-02
[17:02:38] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:38] Starting Magnetic module
[17:02:39] Computing Airgap Flux in FEMM
[17:02:40] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:02:40  gen     4: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 5.40e-03, Rext: 8.01e-02
[17:02:40] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:40] Starting Magnetic module
[17:02:41] Computing Airgap Flux in FEMM
[17:02:43] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.74e+02, Tem_h1: 1.35e+01

17:02:43  gen     4: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 5.21e-03, Rext: 8.03e-02
[17:02:43] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:43] Starting Magnetic module
[17:02:43] Computing Airgap Flux in FEMM
[17:02:45] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.93e+02, Tem_h1: 1.61e+01

17:02:45  gen     4: Finished,    0 errors,   0 infeasible.

17:02:45  gen     5: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 7.04e-03, Rext: 8.01e-02
[17:02:45] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:45] Starting Magnetic module
[17:02:46] Computing Airgap Flux in FEMM
[17:02:47] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 1.12e+01

17:02:47  gen     5: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 4.77e-03, Rext: 8.01e-02
[17:02:47] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:47] Starting Magnetic module
[17:02:48] Computing Airgap Flux in FEMM
[17:02:49] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.48e+01

17:02:49  gen     5: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:02:49] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:49] Starting Magnetic module
[17:02:50] Computing Airgap Flux in FEMM
[17:02:51] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:02:51  gen     5: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 4.98e-03, Rext: 8.02e-02
[17:02:51] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:51] Starting Magnetic module
[17:02:52] Computing Airgap Flux in FEMM
[17:02:54] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.84e+02, Tem_h1: 1.56e+01

17:02:54  gen     5: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 7.52e-03, Rext: 8.03e-02
[17:02:54] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:54] Starting Magnetic module
[17:02:54] Computing Airgap Flux in FEMM
[17:02:56] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.46e+01

17:02:56  gen     5: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.02e-02
[17:02:56] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:56] Starting Magnetic module
[17:02:57] Computing Airgap Flux in FEMM
[17:02:58] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 1.21e+01

17:02:58  gen     5: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 7.22e-03, Rext: 8.01e-02
[17:02:58] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:02:58] Starting Magnetic module
[17:02:59] Computing Airgap Flux in FEMM
[17:03:00] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.68e+02, Tem_h1: 9.28e+00

17:03:00  gen     5: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.02e-02
[17:03:00] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:00] Starting Magnetic module
[17:03:01] Computing Airgap Flux in FEMM
[17:03:02] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 1.21e+01

17:03:02  gen     5: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 7.70e-03, Rext: 8.02e-02
[17:03:02] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:02] Starting Magnetic module
[17:03:03] Computing Airgap Flux in FEMM
[17:03:04] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.72e+02, Tem_h1: 1.41e+01

17:03:04  gen     5: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 3.94e-03, Rext: 8.02e-02
[17:03:04] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:04] Starting Magnetic module
[17:03:05] Computing Airgap Flux in FEMM
[17:03:06] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.85e+02, Tem_h1: 1.58e+01

17:03:06  gen     5: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 5.73e-03, Rext: 8.00e-02
[17:03:06] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:06] Starting Magnetic module
[17:03:07] Computing Airgap Flux in FEMM
[17:03:08] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.73e+02, Tem_h1: 1.24e+01

17:03:08  gen     5: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.02e-02
[17:03:08] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:08] Starting Magnetic module
[17:03:09] Computing Airgap Flux in FEMM
[17:03:10] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.61e+01

17:03:10  gen     5: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.02e-02
[17:03:10] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:10] Starting Magnetic module
[17:03:11] Computing Airgap Flux in FEMM
[17:03:12] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.61e+01

17:03:12  gen     5: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 7.25e-03, Rext: 8.03e-02
[17:03:12] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:12] Starting Magnetic module
[17:03:13] Computing Airgap Flux in FEMM
[17:03:14] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.54e+01

17:03:14  gen     5: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 5.90e-03, Rext: 8.03e-02
[17:03:14] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:14] Starting Magnetic module
[17:03:15] Computing Airgap Flux in FEMM
[17:03:16] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.89e+02, Tem_h1: 1.57e+01

17:03:16  gen     5: Finished,    0 errors,   0 infeasible.

17:03:17  gen     6: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 7.43e-03, Rext: 8.01e-02
[17:03:17] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:17] Starting Magnetic module
[17:03:17] Computing Airgap Flux in FEMM
[17:03:19] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.67e+02, Tem_h1: 9.69e+00

17:03:19  gen     6: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 6.72e-03, Rext: 8.03e-02
[17:03:19] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:19] Starting Magnetic module
[17:03:20] Computing Airgap Flux in FEMM
[17:03:21] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.52e+01

17:03:21  gen     6: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 5.17e-03, Rext: 8.02e-02
[17:03:21] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:21] Starting Magnetic module
[17:03:22] Computing Airgap Flux in FEMM
[17:03:23] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.82e+02, Tem_h1: 1.54e+01

17:03:23  gen     6: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 5.54e-03, Rext: 8.03e-02
[17:03:23] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:23] Starting Magnetic module
[17:03:24] Computing Airgap Flux in FEMM
[17:03:25] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.90e+02, Tem_h1: 1.62e+01

17:03:25  gen     6: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:03:25] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:25] Starting Magnetic module
[17:03:26] Computing Airgap Flux in FEMM
[17:03:27] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:03:27  gen     6: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 5.90e-03, Rext: 8.01e-02
[17:03:27] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:27] Starting Magnetic module
[17:03:28] Computing Airgap Flux in FEMM
[17:03:29] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.72e+02, Tem_h1: 1.41e+01

17:03:29  gen     6: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 6.72e-03, Rext: 8.01e-02
[17:03:29] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:29] Starting Magnetic module
[17:03:30] Computing Airgap Flux in FEMM
[17:03:31] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.67e+02, Tem_h1: 1.39e+01

17:03:31  gen     6: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 7.39e-03, Rext: 8.03e-02
[17:03:31] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:31] Starting Magnetic module
[17:03:32] Computing Airgap Flux in FEMM
[17:03:34] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.53e+01

17:03:34  gen     6: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 6.11e-03, Rext: 8.02e-02
[17:03:34] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:34] Starting Magnetic module
[17:03:34] Computing Airgap Flux in FEMM
[17:03:36] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.49e+01

17:03:36  gen     6: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 7.04e-03, Rext: 8.01e-02
[17:03:36] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:36] Starting Magnetic module
[17:03:36] Computing Airgap Flux in FEMM
[17:03:38] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.69e+02, Tem_h1: 1.12e+01

17:03:38  gen     6: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 6.42e-03, Rext: 8.03e-02
[17:03:38] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:38] Starting Magnetic module
[17:03:38] Computing Airgap Flux in FEMM
[17:03:40] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.84e+02, Tem_h1: 1.58e+01

17:03:40  gen     6: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 5.21e-03, Rext: 8.01e-02
[17:03:40] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:40] Starting Magnetic module
[17:03:41] Computing Airgap Flux in FEMM
[17:03:42] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.75e+02, Tem_h1: 1.56e+01

17:03:42  gen     6: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.02e-02
[17:03:42] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:42] Starting Magnetic module
[17:03:43] Computing Airgap Flux in FEMM
[17:03:44] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.61e+01

17:03:44  gen     6: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 5.73e-03, Rext: 8.00e-02
[17:03:44] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:44] Starting Magnetic module
[17:03:45] Computing Airgap Flux in FEMM
[17:03:46] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.73e+02, Tem_h1: 1.24e+01

17:03:46  gen     6: simu 15/16 (87.50%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:03:46] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:46] Starting Magnetic module
[17:03:47] Computing Airgap Flux in FEMM
[17:03:48] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:03:48  gen     6: simu 16/16 (93.75%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.01e-02
[17:03:48] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:48] Starting Magnetic module
[17:03:49] Computing Airgap Flux in FEMM
[17:03:50] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.64e+02, Tem_h1: 8.57e+00

17:03:50  gen     6: Finished,    0 errors,   0 infeasible.

17:03:51  gen     7: simu 1/16 ( 0.00%),    0 errors.
Design Variables: SW0: 6.88e-03, Rext: 8.03e-02
[17:03:51] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:51] Starting Magnetic module
[17:03:52] Computing Airgap Flux in FEMM
[17:03:53] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.81e+02, Tem_h1: 1.53e+01

17:03:53  gen     7: simu 2/16 ( 6.25%),    0 errors.
Design Variables: SW0: 4.55e-03, Rext: 8.01e-02
[17:03:53] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:53] Starting Magnetic module
[17:03:54] Computing Airgap Flux in FEMM
[17:03:55] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.49e+01

17:03:55  gen     7: simu 3/16 (12.50%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:03:55] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:55] Starting Magnetic module
[17:03:56] Computing Airgap Flux in FEMM
[17:03:57] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:03:57  gen     7: simu 4/16 (18.75%),    0 errors.
Design Variables: SW0: 7.54e-03, Rext: 8.03e-02
[17:03:57] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:03:57] Starting Magnetic module
[17:03:58] Computing Airgap Flux in FEMM
[17:04:00] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.46e+01

17:04:00  gen     7: simu 5/16 (25.00%),    0 errors.
Design Variables: SW0: 7.22e-03, Rext: 8.00e-02
[17:04:00] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:00] Starting Magnetic module
[17:04:00] Computing Airgap Flux in FEMM
[17:04:02] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.64e+02, Tem_h1: 1.27e+01

17:04:02  gen     7: simu 6/16 (31.25%),    0 errors.
Design Variables: SW0: 7.51e-03, Rext: 8.03e-02
[17:04:02] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:02] Starting Magnetic module
[17:04:02] Computing Airgap Flux in FEMM
[17:04:04] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.77e+02, Tem_h1: 1.50e+01

17:04:04  gen     7: simu 7/16 (37.50%),    0 errors.
Design Variables: SW0: 7.46e-03, Rext: 8.01e-02
[17:04:04] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:04] Starting Magnetic module
[17:04:05] Computing Airgap Flux in FEMM
[17:04:06] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.67e+02, Tem_h1: 9.63e+00

17:04:06  gen     7: simu 8/16 (43.75%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.03e-02
[17:04:06] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:06] Starting Magnetic module
[17:04:07] Computing Airgap Flux in FEMM
[17:04:08] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.96e+02, Tem_h1: 1.67e+01

17:04:08  gen     7: simu 9/16 (50.00%),    0 errors.
Design Variables: SW0: 5.27e-03, Rext: 8.02e-02
[17:04:08] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:08] Starting Magnetic module
[17:04:09] Computing Airgap Flux in FEMM
[17:04:10] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.81e+02, Tem_h1: 1.53e+01

17:04:10  gen     7: simu 10/16 (56.25%),    0 errors.
Design Variables: SW0: 5.73e-03, Rext: 8.01e-02
[17:04:10] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:10] Starting Magnetic module
[17:04:11] Computing Airgap Flux in FEMM
[17:04:12] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.73e+02, Tem_h1: 1.46e+01

17:04:12  gen     7: simu 11/16 (62.50%),    0 errors.
Design Variables: SW0: 4.57e-03, Rext: 8.01e-02
[17:04:12] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:12] Starting Magnetic module
[17:04:13] Computing Airgap Flux in FEMM
[17:04:14] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.47e+01

17:04:14  gen     7: simu 12/16 (68.75%),    0 errors.
Design Variables: SW0: 4.56e-03, Rext: 8.02e-02
[17:04:14] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:14] Starting Magnetic module
[17:04:15] Computing Airgap Flux in FEMM
[17:04:16] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.83e+02, Tem_h1: 1.61e+01

17:04:16  gen     7: simu 13/16 (75.00%),    0 errors.
Design Variables: SW0: 5.00e-03, Rext: 8.02e-02
[17:04:16] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:16] Starting Magnetic module
[17:04:17] Computing Airgap Flux in FEMM
[17:04:18] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.78e+02, Tem_h1: 1.87e+01

17:04:18  gen     7: simu 14/16 (81.25%),    0 errors.
Design Variables: SW0: 4.77e-03, Rext: 8.00e-02
[17:04:18] Starting running simulation EM_SIPMSM_AL_001 (machine=Toyota_Prius)
[17:04:18] Starting Magnetic module
[17:04:19] Computing Airgap Flux in FEMM
[17:04:20] End of simulation EM_SIPMSM_AL_001
Objectives: Tem_av: -3.79e+02, Tem_h1: 1.41e+01

17:04:20  gen     7: Finished,    0 errors,   0 infeasible.

During the algorithm the object displays some data containing:

  • number of errors: failure during the objective function execution

  • number of infeasible: number of individual with constraints violations

Plot results

OutputMultiOpti has several methods to display some results:

  • plot_generation: to plot individuals for in 2D

  • plot_pareto: to plot the pareto front in 2D

[9]:
import matplotlib.pyplot as plt

# Create a figure containing 4 subfigures (axes)
fig, axs = plt.subplots(2,2, figsize=(8,8))

# Plot every individual in the fitness space
res.plot_generation(
    x_symbol = "Tem_av", # symbol of the first objective function or design variable
    y_symbol = "Tem_h1", # symbol of the second objective function or design variable
    ax = axs[0,0] # ax to plot
)

# Plot every individual in the design space
res.plot_generation(
    x_symbol = "SW0",
    y_symbol = "Rext",
    ax = axs[0,1]
)

# Plot pareto front in fitness space
res.plot_pareto(
    x_symbol = "Tem_av",
    y_symbol = "Tem_h1",
    ax = axs[1,0]
)

# Plot pareto front in design space
res.plot_pareto(
    x_symbol = "SW0",
    y_symbol = "Rext",
    ax = axs[1,1]
)

fig.tight_layout()

*c* argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with *x* & *y*.  Please use the *color* keyword-argument or provide a 2-D array with a single row if you intend to specify the same RGB or RGBA value for all points.
*c* argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with *x* & *y*.  Please use the *color* keyword-argument or provide a 2-D array with a single row if you intend to specify the same RGB or RGBA value for all points.
[ ]: