您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 工程监理 > 思易特公司_Isight_03_集成入门-Fence
北京思易特科技有限公司北京思易特科技有限公司北京思易特科技有限公司北京思易特科技有限公司集成入门:集成入门:集成入门:集成入门:集成入门:集成入门:集成入门:集成入门:FenceFenceFenceFenceFenceFenceFenceFence2问题:初步了解问题:初步了解问题:初步了解问题:初步了解问题:初步了解问题:初步了解问题:初步了解问题:初步了解iSIGHTiSIGHTiSIGHTiSIGHTiSIGHTiSIGHTiSIGHTiSIGHT�FenceFenceFenceFence问题�周长一定的情况下,如何设定长和宽使得篱笆包围的牧场面积最大�用FenceFenceFenceFence问题作为例子,使得用户初步了解在IsightIsightIsightIsight中实现优化的过程。�了解通用集成接口SimcodeSimcodeSimcodeSimcode组件�集成分析代码�解析输入输出文件参数�设置输入参数的初始值以及约束�定义优化策略�执行,过程监控3优化问题描述优化问题描述优化问题描述优化问题描述优化问题描述优化问题描述优化问题描述优化问题描述设计变量:•0宽度200•0长度200设计目标:•最大化篱笆所围面积设计约束::::•周长一定,等于400ThreePartsThreePartsThreePartsThreeParts•熟悉IsightIsightIsightIsight•了解SimCodeSimCodeSimCodeSimCode集成方式•初步认识探索机制4:6FenceOutputFileTheareais:48.0Theperimeteris:28.0FenceIn.txtfence.exeFenceOut.txtSimulationCodeA=L*WP=2*L+2*W5代码代码代码代码代码代码代码代码�CCCC源代码�isightTrn/Fence1/fence.cisightTrn/Fence1/fence.cisightTrn/Fence1/fence.cisightTrn/Fence1/fence.c�P=2P=2P=2P=2****L+2L+2L+2L+2****�A=LA=LA=LA=L****�可执行程序�isightTrn/Fence1/fence.exeisightTrn/Fence1/fence.exeisightTrn/Fence1/fence.exeisightTrn/Fence1/fence.exe6输入输入输入输入输入输入输入输入////////输出输出输出输出输出输出输出输出�Input:Input:Input:Input:FenceIn.txtFenceIn.txtFenceIn.txtFenceIn.txt:FenceInputFileFenceInputFileFenceInputFileFenceInputFileThelengthis:8.0Thelengthis:8.0Thelengthis:8.0Thelengthis:8.0Thewidthis:6.0Thewidthis:6.0Thewidthis:6.0Thewidthis:6.0�Output:Output:Output:Output:FenceOut.txtFenceOut.txtFenceOut.txtFenceOut.txtFenceOutputFileFenceOutputFileFenceOutputFileFenceOutputFileTheareais:48.000000Theareais:48.000000Theareais:48.000000Theareais:48.000000Theperimeteris:28.000000Theperimeteris:28.000000Theperimeteris:28.000000Theperimeteris:28.0000008进行集成之前,请执行以下操作:�进入isightTrn/Fence1isightTrn/Fence1isightTrn/Fence1isightTrn/Fence1目录�执行fence.exefence.exefence.exefence.exe程序生成输出文件FenceOut.txtFenceOut.txtFenceOut.txtFenceOut.txt�察看FenceIn.txtFenceIn.txtFenceIn.txtFenceIn.txt和FenceOut.txtFenceOut.txtFenceOut.txtFenceOut.txt文件,了解其记录参数的结构9首先将集成所需要的文件拷贝到一个文件夹中,包括FenceIn.txtFenceIn.txtFenceIn.txtFenceIn.txt,,,,FenceOut.txtFenceOut.txtFenceOut.txtFenceOut.txt和fence.exefence.exefence.exefence.exe2.2.2.2.启动Isight3.0Isight3.0Isight3.0Isight3.0,首先会弹出登录窗口,以StandaloneStandaloneStandaloneStandalone模式登录,点击OKOKOKOK....11界面,点击左边的FittowindowFittowindowFittowindowFittowindow按钮可以将工作流放大到与窗口适应;12组件,选择RenameRenameRenameRename,然后在弹出的RenameRenameRenameRenameComponentComponentComponentComponent对话框中输入FenceFenceFenceFence,点击确定,将该SimcodeSimcodeSimcodeSimcode组件名称修改为FenceFenceFenceFence14选择菜单““““FileSaveFileSaveFileSaveFileSave””””,将该模型保存,如Fence.zmfFence.zmfFence.zmfFence.zmf7.7.7.7.双击FenceFenceFenceFence组件,弹出ComponentEditorComponentEditorComponentEditorComponentEditor窗口,在中间的CommandCommandCommandCommand面板中点击FindProgramFindProgramFindProgramFindProgram按钮,找到fence.exefence.exefence.exefence.exe文件然后打开15文件后如下图所示,然后点击ApplyApplyApplyApply保存所作的修改16面板,然后点击窗口中间的灰色框17面板,点击NextNextNextNext18按钮,找到FenceIn.txtFenceIn.txtFenceIn.txtFenceIn.txt文件,然后点击打开19文件后,如下图所示:20两次,到最后点击FinishFinishFinishFinish21如下图所示,此时FenceInFenceInFenceInFenceIn文件的内容就会被读入到IsightIsightIsightIsight的InputInputInputInput面版中,然后就可以对参数进行解析了FenceInFenceInFenceInFenceIn文件的内容22按住鼠标左键,点击第二行等号右边的数字8888,我们就会发现8888就会被高亮显示。在ParameterParameterParameterParameter后的文本框中输入LengthLengthLengthLength,最后点击WriteWriteWriteWrite按钮,将该数值8888解
本文标题:思易特公司_Isight_03_集成入门-Fence
链接地址:https://www.777doc.com/doc-6182056 .html