123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?xml version='1.0' encoding='UTF-8'?>
- <surromdaoProblem>
- <header>
- <name>${vo.header.name}</name>
- <creator>SurroMDAO</creator>
- <timestamp>${vo.header.timestamp}</timestamp>
- <fileversion>1.0</fileversion>
- <surromdaoVersion>V1.1</surromdaoVersion>
- </header>
- <problem>
- <designVariables>
- <#list vo.designVariables as b>
- <designVariable uID="${b.uID}">
- <name>${b.name}</name>
- <value>${b.value}</value>
- <lowerbound>${b.lowerbound}</lowerbound>
- <upperbound>${b.upperbound}</upperbound>
- </designVariable>
- </#list>
- </designVariables>
- <objectives>
- <#list vo.objectives as b>
- <objective uID="${b.uID}">
- <name>${b.name}</name>
- <value>${b.value}</value>
- <weight>${b.weight}</weight>
- <flag>${b.flag}</flag>
- </objective>
- </#list>
- </objectives>
- <constraints>
- <#list vo.constraints as b>
- <constraint uID="${b.uID}">
- <name>${b.name}</name>
- <value>${b.value}</value>
- <lower>${b.lower}</lower>
- <upper>${b.upper}</upper>
- </constraint>
- </#list>
- </constraints>
- </problem>
- <optimizers>
- <optimizer>
- <#if vo.evolution??>
- <name>${vo.evolution.algorithm?lower_case}</name>
- <configFile/>
- <configuration>
- <maxgen>${vo.evolution.epoch}</maxgen>
- <ipopsize>${vo.evolution.popsize}</ipopsize>
- <pc>${vo.evolution.probcrossover}</pc>
- <pm>${vo.evolution.probmut}</pm>
- </configuration>
- <#else>
- </#if>
- <#if vo.surro??>
- <name>${vo.surro.algorithm?lower_case}</name>
- <configuration>
- <optimization>
- <iout>${vo.surro.iout}</iout>
- <irestart>${vo.surro.irestart}</irestart>
- <ndoe>${vo.surro.ndoe}</ndoe>
- <ns>${vo.surro.ns}</ns>
- <nsmax>${vo.surro.nsmax}</nsmax>
- <ns_lf>${vo.surro.nsLf}</ns_lf>
- <nsmax_lf>${vo.surro.nsmaxLf}</nsmax_lf>
- <ns_mk>[${vo.surro.nsMk}]</ns_mk>
- <nsmax_mk>[${vo.surro.nsmaxMk}]</nsmax_mk>
- <x_tol>${vo.surro.xTol}</x_tol>
- <feasibility_tol_real>${vo.surro.feasibilityTolReal}</feasibility_tol_real>
- <feasibility_tol_surro>${vo.surro.feasibilityTolSurro}</feasibility_tol_surro>
- </optimization>
- <model>
- <nsurro>${vo.surro.nsurro}</nsurro>
- <n_kriging>${vo.surro.nKriging}</n_kriging>
- <corr>${vo.surro.corr}</corr>
- <const_theta>${vo.surro.constTheta}</const_theta>
- <porder>${vo.surro.porder}</porder>
- <dcmp>${vo.surro.dcmp}</dcmp>
- <paraopt>${vo.surro.paraopt}</paraopt>
- <regular>${vo.surro.regular}</regular>
- </model>
- <subopt>
- <infill>${vo.surro.infill}</infill>
- <nparallel>${vo.surro.nparallel}</nparallel>
- <iopt>${vo.surro.iopt}</iopt>
- <icstr>${vo.surro.icstr}</icstr>
- <ipopsize>${vo.surro.ipopsize}</ipopsize>
- <maxgen>${vo.surro.maxgen}</maxgen>
- <pc>${vo.surro.pc}</pc>
- <pm>${vo.surro.pm}</pm>
- </subopt>
- </configuration>
- <#else>
- </#if>
- <#if vo.grad??>
- <name>${vo.grad.algorithm?lower_case}</name>
- <configuration>
- <major_iterations_limit>${vo.grad.majorIterationsLimit}</major_iterations_limit> <!--最大外迭代步数 -->
- <major_print_level>${vo.grad.majorPrintLevel}</major_print_level> <!--输出精度等级-->
- <linear_feasibility_tolerance>${vo.grad.linearFeasibilityTolerance}</linear_feasibility_tolerance> <!--线性约束容差 -->
- <nonlinear_feasibility_tolerance>${vo.grad.nonlinearFeasibilityTolerance}</nonlinear_feasibility_tolerance> <!--非线性约束容差-->
- <optimality_tolerance>${vo.grad.optimalityTolerance}</optimality_tolerance> <!--最优性度量(KKT 条件)容差-->
- <verify_level>${vo.grad.verifyLevel}</verify_level> <!--梯度验证级别 -1:不验证 0:简单验证 1-3:详细验证(1目标-2约束-3目标+约束)-->
- </configuration>
- <#else>
- </#if>
- </optimizer>
- </optimizers>
- <solvers>
- <#list vo.solvers as b>
- <solver>
- <#if b.cpacsPath??>
- <cpacsPath>${b.cpacsPath}</cpacsPath>
- <#else>
- <cpacsPath/>
- </#if>
- <#if b.workflowPath??>
- <workflowPath>${b.workflowPath}</workflowPath>
- <#else>
- <workflowPath/>
- </#if>
- <#if b.pythonPath??>
- <pythonPath name="${b.stype}">${b.pythonPath}</pythonPath>
- <#else>
- </#if>
- </solver>
- </#list>
- </solvers>
- </surromdaoProblem>
|