Skip to content

Commit ecc1da2

Browse files
committed
allow unicode
1 parent af81012 commit ecc1da2

2 files changed

Lines changed: 46 additions & 46 deletions

File tree

‎form_processing/formresponse_to_yaml.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def dump_library(path: Path, root: dict[str, Problem | Suite | Generator | Imple
552552
# model_dump(mode="json") converts enums and nested pydantic models to plain YAML-safe values.
553553
serializable = {key: value.model_dump(mode="json") for key, value in root.items()}
554554
with path.open("w", encoding="utf-8") as out_file:
555-
yaml.safe_dump(serializable, out_file, sort_keys=True, allow_unicode=False)
555+
yaml.safe_dump(serializable, out_file, sort_keys=True, allow_unicode=True)
556556

557557

558558
def convert(

‎problems.yaml‎

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn_ato:
3535
- authors:
3636
- Carolin Mensendiek
3737
- Henrik Zeipel
38-
- "Oliver Ludger Preu\xDF"
38+
- Oliver Ludger Preuß
3939
- Moritz Vinzent Seiler
4040
- Walter Sextro
4141
- Heike Trautmann
@@ -146,10 +146,6 @@ fn_emdo:
146146
can_evaluate_objectives_independently: null
147147
code_examples: null
148148
constraints:
149-
- equality: null
150-
hard: 'yes'
151-
number: 12
152-
type: unknown
153149
- equality: null
154150
hard: 'yes'
155151
number: null
@@ -158,6 +154,10 @@ fn_emdo:
158154
hard: some
159155
number: null
160156
type: unknown
157+
- equality: null
158+
hard: 'yes'
159+
number: 12
160+
type: unknown
161161
description: '# Goal
162162
163163
Find a design of a synchronous electric motor for power steering systems that
@@ -197,9 +197,9 @@ fn_emdo:
197197
- 1
198198
references:
199199
- authors:
200-
- "Tea Tu\u0161ar"
201-
- "Peter Koro\u0161ec"
202-
- "Bogdan Filipi\u010D"
200+
- Tea Tušar
201+
- Peter Korošec
202+
- Bogdan Filipič
203203
link:
204204
type: null
205205
url: https://dis.ijs.si/tea/Publications/Tusar23Multistep.pdf
@@ -210,10 +210,10 @@ fn_emdo:
210210
tags: null
211211
type: problem
212212
variables:
213-
- dim: 13
214-
type: integer
215213
- dim: 13
216214
type: continuous
215+
- dim: 13
216+
type: integer
217217
fn_fleetopt:
218218
allows_partial_evaluation: 'yes'
219219
can_evaluate_objectives_independently: null
@@ -293,10 +293,10 @@ fn_gasoline:
293293
tags: null
294294
type: problem
295295
variables:
296-
- dim: 7
297-
type: integer
298296
- dim: 7
299297
type: continuous
298+
- dim: 7
299+
type: integer
300300
fn_invdeceptive_deceptive_rotell:
301301
allows_partial_evaluation: null
302302
can_evaluate_objectives_independently: null
@@ -653,11 +653,11 @@ gen_ealain:
653653
- dim:
654654
max: null
655655
min: 1
656-
type: integer
656+
type: continuous
657657
- dim:
658658
max: null
659659
min: 1
660-
type: continuous
660+
type: integer
661661
- dim:
662662
max: null
663663
min: 1
@@ -1001,11 +1001,11 @@ gen_randoptgen:
10011001
- dim:
10021002
max: null
10031003
min: 1
1004-
type: integer
1004+
type: continuous
10051005
- dim:
10061006
max: null
10071007
min: 1
1008-
type: continuous
1008+
type: integer
10091009
- dim:
10101010
max: null
10111011
min: 1
@@ -1026,7 +1026,7 @@ gen_rho_mnk_landscapes:
10261026
long_name: null
10271027
modality:
10281028
- multimodal
1029-
name: "\u03C1MNK-Landscapes"
1029+
name: ρMNK-Landscapes
10301030
noise_type: null
10311031
objectives:
10321032
- 1
@@ -1071,7 +1071,7 @@ gen_rho_mtsp:
10711071
modality:
10721072
- quadratic
10731073
- multimodal
1074-
name: "\u03C1mTSP"
1074+
name: ρmTSP
10751075
noise_type: null
10761076
objectives:
10771077
- 1
@@ -1089,7 +1089,7 @@ gen_rho_mtsp:
10891089
link:
10901090
type: null
10911091
url: https://doi.org/10.1007/978-3-319-45823-6_40
1092-
title: "On the impact of multi-objective scalability for the \u03C1mTSP"
1092+
title: On the impact of multi-objective scalability for the ρmTSP
10931093
type: null
10941094
source: null
10951095
tags: null
@@ -1210,8 +1210,8 @@ impl_cec2022:
12101210
impl_cfd:
12111211
description: Expensive real-world CFD-based test problems
12121212
evaluation_time:
1213-
- 15m
12141213
- 30s
1214+
- 15m
12151215
language: null
12161216
links:
12171217
- type: repository
@@ -1305,8 +1305,8 @@ impl_gasoline:
13051305
impl_gbea:
13061306
description: Game-Benchmark for Evolutionary Algorithms (COCO fork)
13071307
evaluation_time:
1308-
- 5 seconds
13091308
- 34 seconds
1309+
- 5 seconds
13101310
language: null
13111311
links:
13121312
- type: repository
@@ -1388,8 +1388,8 @@ impl_ma_bbob:
13881388
impl_mechbench:
13891389
description: Structural mechanics design optimization benchmark
13901390
evaluation_time:
1391-
- 7 minutes
13921391
- 1 minute
1392+
- 7 minutes
13931393
language: Python
13941394
links:
13951395
- type: repository
@@ -1600,15 +1600,15 @@ suite_amvop:
16001600
- dim:
16011601
max: null
16021602
min: 1
1603-
type: categorical
1603+
type: continuous
16041604
- dim:
16051605
max: null
16061606
min: 1
1607-
type: continuous
1607+
type: integer
16081608
- dim:
16091609
max: null
16101610
min: 1
1611-
type: integer
1611+
type: categorical
16121612
suite_bbob:
16131613
allows_partial_evaluation: null
16141614
can_evaluate_objectives_independently: null
@@ -1710,11 +1710,11 @@ suite_bbob_biobj_mixint:
17101710
- dim:
17111711
max: 160
17121712
min: 5
1713-
type: integer
1713+
type: continuous
17141714
- dim:
17151715
max: 160
17161716
min: 5
1717-
type: continuous
1717+
type: integer
17181718
suite_bbob_constrained:
17191719
allows_partial_evaluation: null
17201720
can_evaluate_objectives_independently: null
@@ -1820,11 +1820,11 @@ suite_bbob_mixint:
18201820
- dim:
18211821
max: 160
18221822
min: 5
1823-
type: integer
1823+
type: continuous
18241824
- dim:
18251825
max: 160
18261826
min: 5
1827-
type: continuous
1827+
type: integer
18281828
suite_bbob_noisy:
18291829
allows_partial_evaluation: null
18301830
can_evaluate_objectives_independently: null
@@ -2253,11 +2253,11 @@ suite_cre:
22532253
- dim:
22542254
max: 7
22552255
min: 3
2256-
type: integer
2256+
type: continuous
22572257
- dim:
22582258
max: 7
22592259
min: 3
2260-
type: continuous
2260+
type: integer
22612261
suite_cuter:
22622262
allows_partial_evaluation: 'no'
22632263
can_evaluate_objectives_independently: null
@@ -2294,11 +2294,11 @@ suite_cuter:
22942294
- dim:
22952295
max: null
22962296
min: 1
2297-
type: integer
2297+
type: continuous
22982298
- dim:
22992299
max: null
23002300
min: 1
2301-
type: continuous
2301+
type: integer
23022302
- dim:
23032303
max: null
23042304
min: 1
@@ -2308,16 +2308,16 @@ suite_cutest:
23082308
can_evaluate_objectives_independently: null
23092309
code_examples: null
23102310
constraints:
2311+
- equality: null
2312+
hard: 'yes'
2313+
number: null
2314+
type: box
23112315
- equality: null
23122316
hard: some
23132317
number:
23142318
max: null
23152319
min: 1
23162320
type: unknown
2317-
- equality: null
2318-
hard: 'yes'
2319-
number: null
2320-
type: box
23212321
description: CUTEst for optimization software
23222322
dynamic_type: null
23232323
evaluation_time: null
@@ -2347,11 +2347,11 @@ suite_cutest:
23472347
- dim:
23482348
max: null
23492349
min: 1
2350-
type: integer
2350+
type: continuous
23512351
- dim:
23522352
max: null
23532353
min: 1
2354-
type: continuous
2354+
type: integer
23552355
- dim:
23562356
max: null
23572357
min: 1
@@ -3225,8 +3225,8 @@ suite_modact:
32253225
evaluation_time: null
32263226
fidelity_levels: null
32273227
implementations:
3228-
- impl_modact
32293228
- impl_pymoo
3229+
- impl_modact
32303230
long_name: multiobjective design of actuators
32313231
modality: null
32323232
name: MODAct
@@ -3393,11 +3393,11 @@ suite_re:
33933393
- dim:
33943394
max: 7
33953395
min: 2
3396-
type: continuous
3396+
type: integer
33973397
- dim:
33983398
max: 7
33993399
min: 2
3400-
type: integer
3400+
type: continuous
34013401
suite_rwmvop:
34023402
allows_partial_evaluation: null
34033403
can_evaluate_objectives_independently: null
@@ -3434,15 +3434,15 @@ suite_rwmvop:
34343434
- dim:
34353435
max: null
34363436
min: 1
3437-
type: categorical
3437+
type: continuous
34383438
- dim:
34393439
max: null
34403440
min: 1
3441-
type: continuous
3441+
type: integer
34423442
- dim:
34433443
max: null
34443444
min: 1
3445-
type: integer
3445+
type: categorical
34463446
suite_sbox_cost:
34473447
allows_partial_evaluation: null
34483448
can_evaluate_objectives_independently: null

0 commit comments

Comments
 (0)