⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 code_std.ans.desc

📁 多学科优化软件isight培训教程初级pdf有很详细的例子讲解
💻 DESC
字号:
MDOLVersion: 6.0
CompilerOptions: warn

Task Task1

    TaskHeader Task1
        Version: 1.0
        Evaluation: taskplan
        ControlMode: user
        RunCounter: 1
        BoundsPolicy: adjustvalue
        CheckPoint: unknown
    End TaskHeader Task1

    Inputs Task1
        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 Task1

    Outputs Task1
        Parameter: SurfAreaFuse Type: real
        Parameter: WetArea Type: real
        Parameter: LoD Type: real
    End Outputs Task1

    SimCode AeroCode
        InputFiles AeroCode
            FileDescription Input1
                FileType: standard
                InputFile: "Input1"
                Parameters
                    WingSpan WingArea FuseLength FuseDia
                Instructions
                    write $WingSpan as "%7.3f"
                    write $Newline 
                    write $WingArea as "%7.3f"
                    write $Newline 
                    write $FuseLength as "%7.3f"
                    write $Newline 
                    write $FuseDia as "%7.3f"
                    write $Newline
                End Instructions
            End FileDescription Input1
        End InputFiles AeroCode

        OutputFiles AeroCode
            FileDescription Output2
                FileType: standard
                OutputFile: "Output2"
                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 Output2
        End OutputFiles AeroCode

        SimCodeProcess AeroCode
            Program: "../../Programs/aerostd.exe"
            ElapseTime: 5m
            Prologue
                WriteInputSpecs: Input1
            Epilogue
                ReadOutputSpecs: Output2
            Stdin: Input1
            Stdout: Output2
            Execution: "$Program <Input1 >Output2"
        End SimCodeProcess AeroCode

    End SimCode AeroCode

    TaskProcess Task1
        Control: [
            AeroCode
        ]
    End TaskProcess Task1

    Optimization Task1
        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
        InputConstraints
            Parameter: WingSpan LowerBound: 15.0 UpperBound: 27.5
            Parameter: WingArea LowerBound: 85.0 UpperBound: 130.0
            Parameter: FuseLength LowerBound: 25.0 UpperBound: 35.0
            Parameter: FuseDia LowerBound: 3.0 UpperBound: 5.75
        PotentialObjectives:
            WingSpan WingArea FuseLength FuseDia SurfAreaFuse WetArea LoD
        Objectives
            Parameter: LoD Direction: maximize Weight: 1.0 ScaleFactor: 10.0
            Parameter: WetArea Direction: maximize Weight: 1.0 ScaleFactor: 500.0
            Parameter: SurfAreaFuse Direction: minimize Weight: 1.0 ScaleFactor: 200.0

        # PLAN TO BE CONFIGURED BY ADVISOR:
        OptimizePlan PriorityRankedPlan
            Control: [
            ]
    End Optimization Task1

    TaskPlan Task1
        Control: [
            PriorityRankedPlan
        ]
    End TaskPlan Task1

    DataStorage Task1
        Restore: no
        DataLog: "code_std.ans.db" Mode: overwrite
        DataLookUp: "code_std.ans.db"
        MatchMode: Exact
        Levels: all
        StoreGradRuns: yes
        StoreApproxRuns: yes
    End DataStorage Task1

End Task Task1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -