space_mapping
Implementation of an aggressive space mapping algorithm for RF-design
cost_calc(perf_list, goal_list, weight_list=None)
cached
return the normalize standard deviation between the perf_list and the goal_list
Parameters:
Name | Type | Description | Default |
---|---|---|---|
perf_list |
tuple of float
|
list of the performances achieved. |
required |
goal_list |
tuple of float
|
list of the goal to be achieved. If one value is given, the goal is a point. If two, the goal is an interval. |
required |
weight_list |
tuple of float, optional
|
weightning of the goals. If set to None, all the weight are set to one. |
None
|
Returns:
Name | Type | Description |
---|---|---|
cost |
float
|
cost value |
Source code in passive_auto_design\space_mapping.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
space_map(coarse_model, dim0, fine_model, par0, goal, maxiter=5)
Optimization function for space mapping algorithm.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
coarse_model |
fun
|
function evaluating the coarse model goals for a set of dimensions (dim) and parameters (par) |
required |
dim0 |
dict
|
initial dimensions of the component |
required |
fine_model |
fun
|
function evaluating the fine model goals for a set of dimensions (dim) |
required |
par0 |
dict
|
initial parameters of the component coarse model |
required |
goal |
dict
|
set of goal targeted by the algorithm |
required |
maxiter |
int, optional
|
maximal number of iteration. The default is 5. |
5
|
Returns:
Name | Type | Description |
---|---|---|
dim |
dict
|
final dimension of the component. |
par |
dict
|
final parameters of the component model. |
fine_mod |
dict
|
achieved goal. |
Source code in passive_auto_design\space_mapping.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|