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

📄 fence1.ans.desc

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

Task Task1

    TaskHeader Task1
        Version: 1.0
        Evaluation: taskplan
        ControlMode: user
        RunCounter: 1
        Audit: on Milestone Error
        Audit: off Info Status Normal Debug
        BoundsPolicy: adjustvalue
        CheckPoint: unknown
    End TaskHeader Task1

    Inputs Task1
        Parameter: Length Type: real InitialValue: 200.0
        Parameter: Width Type: real InitialValue: 100.0
    End Inputs Task1

    Outputs Task1
        Parameter: Area Type: real
        Parameter: Perimeter Type: real
    End Outputs Task1

    SimCode Simcode0
        InputFiles Simcode0
            FileDescription fencein
                FileType: standard
                TemplateFile: "FenceInTemp.dat"
                InputFile: "FenceIn.txt"
                Parameters
                    Length Width
                Instructions
                    find "The length is: " ignore 
                        replace word with $Length 
                        find "The width is: " ignore 
                        replace word with $Width
                End Instructions
            End FileDescription fencein
        End InputFiles Simcode0

        OutputFiles Simcode0
            FileDescription fenceout
                FileType: standard
                OutputFile: "FenceOut.txt"
                Parameters
                    Area Perimeter
                Instructions
                    find "The area is: " ignore 
                        read Area
                        provide $Area 
                        find "The perimeter is: " ignore 
                        read Perimeter
                        provide $Perimeter
                End Instructions
            End FileDescription fenceout
        End OutputFiles Simcode0

        SimCodeProcess Simcode0
            Program: "../Programs/fence.exe"
            ElapseTime: 5m
            Prologue
                WriteInputSpecs: fencein
            Epilogue
                ReadOutputSpecs: fenceout
            Execution: "$Program"
        End SimCodeProcess Simcode0

    End SimCode Simcode0

    TaskProcess Task1
        Control: [
            Simcode0
        ]
    End TaskProcess Task1

    Optimization Task1
        PotentialVariables:
            Length Width
        Variables:
            Length Width
        VariableScaling
            Parameter: Length ScaleFactor: 1.0
            Parameter: Width ScaleFactor: 1.0
        PotentialObjectives:
            Length Width Area Perimeter
        Objectives
            Parameter: Area Direction: maximize Weight: 1.0 ScaleFactor: 1.0
        OutputConstraints
            Parameter: Perimeter Equality: 400.0 Weight: 1.0 ScaleFactor: 1.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: "fence1.ans.db" Mode: overwrite
        DataLookUp: "fence1.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 + -