📄 code.ans.desc
字号:
MDOLVersion: 6.0
CompilerOptions: warn
Task Airplane
TaskHeader Airplane
Version: 1.0
Evaluation: single
ControlMode: user
RunCounter: 1
BoundsPolicy: adjustvalue
CheckPoint: unknown
End TaskHeader Airplane
Inputs Airplane
Parameter: WingSpan Type: real InitialValue: 22.72
Parameter: WingArea Type: real InitialValue: 117.3
Parameter: FuseLength Type: real InitialValue: 32.6
Parameter: FuseDia Type: real InitialValue: 4.85
End Inputs Airplane
Outputs Airplane
Parameter: SurfAreaFuse Type: real
Parameter: WetArea Type: real
Parameter: LoD Type: real
End Outputs Airplane
SimCode AeroCode
InputFiles AeroCode
FileDescription AeroIntxt
FileType: standard
TemplateFile: "AeroInTemp.dat"
InputFile: "AeroIn.txt"
Parameters
WingSpan WingArea FuseLength FuseDia
Instructions
find "b = " ignore
write $WingSpan as "%7.3f"
find "Swing = " ignore
replace word with $WingArea
find "Lfuse = " ignore
replace word with $FuseLength
find "Dfuse = " ignore
replace word with $FuseDia as "%9.5f"
End Instructions
End FileDescription AeroIntxt
End InputFiles AeroCode
OutputFiles AeroCode
FileDescription AeroOuttxt
FileType: standard
OutputFile: "AeroOut.txt"
Parameters
SurfAreaFuse WetArea LoD
Instructions
find "Surface Area of the Fuselage = " ignore
read SurfAreaFuse as "%g"
provide $SurfAreaFuse
find "Wetted Area of the Aircraft = " ignore
read WetArea as "%g"
provide $WetArea
find "Lift/Drag of the Aircraft = " ignore
read LoD as "%g"
provide $LoD
End Instructions
End FileDescription AeroOuttxt
End OutputFiles AeroCode
SimCodeProcess AeroCode
Program: "../Programs/aero.exe"
ElapseTime: 5m
Prologue
WriteInputSpecs: AeroIntxt
Epilogue
ReadOutputSpecs: AeroOuttxt
Execution: "$Program"
End SimCodeProcess AeroCode
End SimCode AeroCode
TaskProcess Airplane
Control: [
AeroCode
]
End TaskProcess Airplane
Optimization Airplane
PotentialVariables:
WingSpan WingArea FuseLength FuseDia
Variables:
WingSpan WingArea FuseLength FuseDia
VariableScaling
Parameter: WingSpan ScaleFactor: 1.0
Parameter: WingArea ScaleFactor: 1.0
Parameter: FuseLength ScaleFactor: 1.0
Parameter: FuseDia ScaleFactor: 1.0
PotentialObjectives:
WingSpan WingArea FuseLength FuseDia SurfAreaFuse WetArea LoD
# PLAN TO BE CONFIGURED BY ADVISOR:
OptimizePlan PriorityRankedPlan
Control: [
]
End Optimization Airplane
TaskPlan Airplane
Control: [
PriorityRankedPlan
]
End TaskPlan Airplane
DataStorage Airplane
Restore: no
DataLog: "code.ans.db" Mode: overwrite
DataLookUp: "Airplane.db"
MatchMode: Exact
Levels: all
StoreGradRuns: yes
StoreApproxRuns: yes
End DataStorage Airplane
End Task Airplane
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -