我收到错误:
unrecognized identifier 'template_directory'
当我启动命令
时dakota -check dakota_of.in
我正在使用Dakota版本6.1;通过查看下面报告的dakota_of.in文件,你能告诉我我错过了什么吗?
dakota_of.in文件内容:
# Usage:
# dakota -i dakota_of.in -o run.out > stdout.out
environment #strategy
#graphics
tabular_graphics_data
tabular_graphics_file = 'table_out.dat'
#single_method
model
single
method
id_method = 'method1'
dace oa_lhs
#POSSIBLE OPTIONS FOR DACE EXPERIMENT
#box_behnken
#central_composite
#grid
#lhs
#oa_lhs
#oas
#random
samples = 20
seed = 52
model
single
variables,
continuous_design = 2
#cdv_initial_point 6.0 4.0
cdv_initial_point 4.0 6.0
cdv_lower_bounds 1.0 1.0
#cdv_upper_bounds 9.0 6.0
cdv_upper_bounds 8.0 6.0
cdv_descriptors 'x1' 'x2'
interface,
fork
asynchronous
evaluation_concurrency = 4
analysis_driver = 'simulator_script'
parameters_file = 'params.in'
results_file= 'results.out'
work_directory directory_tag
template_directory = 'templatedir'
# more info from https://dakota.sandia.gov/sites/default/files/docs/6.0/html-ref/interface-analysis_drivers-fork-work_directory.html
# uncomment to leave params.in and results.out files in work_dir subdirectories
named 'workdir' file_save directory_save
aprepro
## when using conmin_frcg (above) with analytic_gradients (below),
## need to turn off the active set vector as rosenbrock_bb does not parse it.
deactivate active_set_vector
responses,
num_objective_functions = 1
no_gradients
no_hessians
其他信息:上述代码取自为DAKOTA 5.4.0版开发的DAKOTA教程(由University of Genova Optimization Course with DAKOTA提供)。我刚刚复制了这些文件并尝试使用DAKOTA 6.1启动tutorial 4。也许一些语法输入参数必须改变?
答案 0 :(得分:0)
在较新版本的Dakota中,work_directory的语法已更改。您可以在此处查看Dakota 6.1的具体关键字:https://dakota.sandia.gov//sites/default/files/docs/6.1/html-ref/interface-analysis_drivers-fork-work_directory.html 此处还有一些培训材料:https://dakota.sandia.gov/sites/default/files/docs/training/201508/DakotaTraining_Interfacing.pdf,幻灯片28.
简短摘要是你可能想要的东西:
work_directory directory_tag
link_files = 'templatedir/*'
[brian礼貌在桑迪亚实验室]