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

📄 xml1.html.svn-base

📁 OPT++
💻 SVN-BASE
字号:
/** \page xml1 XML File 1:  Rosenbrock's Function (subroutine)The XML file for OPT++ can be thought of as being broken down intoblocks of XML.  Each block must be "opened" and "closed".  The mainblock is the OPT block.  It has two sub-blocks, ProblemSetup and thealgorithm block.  Each of those has sub-blocks which contain thedetailed information for OPT++.The ProblemSetup block has four sub-blocks.  The first is the functiontype.  In this case, it is "Library" since we are using the subroutineinterface.  You can see the data values for the Rosenbrock's functionexample.<table><tr><td>\code<OPT>  <ProblemSetup>    <Library Second="false" FEval="rosen0" First="false" LibName="testexample.so" Init="init_rosen"/>\endcode</table>The second sub-block is the VariableClass block.  It contains an arrayof the optimization variables.  Recall that for Rosenbrock's function,there are no bounds on the variables, so the "lower" and "upper"values consist only of empty quotes.<table><tr><td>\code    <VariableClass numVariables="2">      <Array name="VariableList">        <Variables initVal="-1.2" lower="" upper="" theName="OPT_x1"/>        <Variables initVal="1.0" lower="" upper="" theName="OPT_x2"/>      </Array>    </VariableClass>\endcode</table>The third and fourth sub-blocks are LConstraintClass andNLConstraintClass, respectively.  Recall that there are noconstraints, these blocks take the following form.<table><tr><td>\code    <LConstraintClass numLConstraints="0">      <Array name="LinearConstraint"/>    </LConstraintClass>    <NLConstraintClass numNLConstraints="0">      <Array name="NonLinearConstraints"/>    </NLConstraintClass>  </ProblemSetup>\endcode</table>The algorithm block is named according to the algorithm that is beingused.  In this case, it is PDS.  (The other possibilities are CG,Newton, and NIPS.)  The algorithm block has three sub-blocks thatcontain the algorithmic parameters.  There are the BasicOptions, theAdvancedOptions, and the algorithm-specific parameters.  TheBasicOptions and AdvancedOptions are the same for all of thealgorithms.  The algorithm-specific parameters vary.  You can see whatthey are for the different algorithms by looking at the examples inthe OPT++/tests/xml directory.<table><tr><td>\code  <PDS>    <BasicOptions maxFeval="10000" outFile="tstPDSxml.out" maxIter="100" Debug="false"/>    <AdvancedOptions maxStep="1.e3" conTol="1.49e-08" stepTol="1.49e-08" fcnTol="1.49e-08" gradTol="6.05e-06" minStep="1.49e-08"/>    <PDSvar searchSize="64" simpType="1"/>  </PDS></OPT>\endcode</table><p> Next Example: \ref xml2 | Back to \ref GUI_XMLDoc </p>*/

⌨️ 快捷键说明

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