What Is Optimization Toolbox?
What Is Optimization Toolbox? What Is Optimization Toolbox?
5 Optimization ToolThe default value, Reset options to defaults, discards any options youspecified previously in the optimtool. Under this choice, you can select theoption Prompt before resetting options to defaults.Alternatively, you can select Keep current options if possible to preservethe values you have modified. Changed options that are not valid with thenewly selected solver are kept but not used, while active options relevantto the new solver selected are used. This choice allows you to try differentsolvers with your problem without losing your options.Exporting to the MATLAB WorkspaceThe Export to Workspace dialog box enables you to send your probleminformation to the MATLAB workspace as a structure that you may thenmanipulate in the Command Window.To access the Export to Workspace dialog box shown below, selectFile > Export to Workspace.5-44
Importing and Exporting Your WorkYou can specify a structure that contains• The problem and options information• The options information only• The results of running your problem in optimtoolAfter you have exported information from the Optimization Tool to theMATLAB workspace, you can see your data in the MATLAB Workspacebrowser or by typing the name of the structure at the Command Window.Generating an M-FileYou may want to generate an M-file to continue with your optimizationproblem in the Command Window at another time. You can run the M-filewithout modification to recreate the results that you created with theOptimizationTool. YoucanalsoeditandmodifytheM-fileandrunitfromthe Command Window.To export data from the Optimization Tool to an M-file, select File > GenerateM-file.The M-file captures the following:• The problem definition, including the solver, information on the function tobe minimized, algorithm specification, constraints, and start point• The options (using optimset) with the currently selected option valueRunning the M-file at the Command Window reproduces your problem results.5-45
- Page 193 and 194: Large-Scale Linear ProgrammingLarge
- Page 195 and 196: Large-Scale Linear ProgrammingThe a
- Page 197 and 198: Large-Scale Linear ProgrammingWhile
- Page 199 and 200: Selected Bibliography[11] Zhang, Y.
- Page 201 and 202: 5Optimization ToolGetting Started w
- Page 203 and 204: Getting Started with the Optimizati
- Page 205 and 206: Selecting a SolverSelecting a Solve
- Page 207 and 208: Defining the ProblemDefining the Pr
- Page 209 and 210: Defining the ProblemFunction to Min
- Page 211 and 212: Defining the ProblemConstraintsLine
- Page 213 and 214: Defining the ProblemM-file, or as a
- Page 215 and 216: Defining the ProblemBounds are lowe
- Page 217 and 218: Defining the Problemfseminf Problem
- Page 219 and 220: Defining the ProblemLinear System o
- Page 221 and 222: Defining the ProblemFunction to Min
- Page 223 and 224: Defining the ProblemConstraintsBoun
- Page 225 and 226: Defining the ProblemFunction to Min
- Page 227 and 228: Defining the ProblemConstraintsWith
- Page 229 and 230: Running a Problem in the Optimizati
- Page 231 and 232: Specifying the Options• Xtoleranc
- Page 233 and 234: Specifying the Optionsoption to a d
- Page 235 and 236: Specifying the OptionsThe following
- Page 237 and 238: Specifying the OptionsMultiobjectiv
- Page 239 and 240: Specifying the OptionsPlot Function
- Page 241 and 242: Specifying the Options• final —
- Page 243: Importing and Exporting Your WorkIm
- Page 247 and 248: Optimization Tool ExamplesOptimizat
- Page 249 and 250: Optimization Tool Examples6 In the
- Page 251 and 252: Optimization Tool Examplesmax Line
- Page 253 and 254: Optimization Tool ExamplesThe Aeq a
- Page 255 and 256: 6Argument and OptionsReferenceThis
- Page 257 and 258: Function ArgumentsInput Arguments (
- Page 259 and 260: Function ArgumentsInput Arguments (
- Page 261 and 262: Function ArgumentsOutput Arguments
- Page 263 and 264: Optimization OptionsOptimization Op
- Page 265 and 266: Optimization OptionsOptimization Op
- Page 267 and 268: Optimization OptionsOptimization Op
- Page 269 and 270: Optimization OptionsOptimization Op
- Page 271 and 272: Optimization Optionsspecifies Outpu
- Page 273 and 274: Optimization OptionsoptimValues Fie
- Page 275 and 276: Optimization OptionsoptimValues Fie
- Page 277 and 278: Optimization OptionsoptimValues Fie
- Page 279 and 280: Optimization OptionsStopping an Opt
- Page 281 and 282: 7Functions — By CategoryMinimizat
- Page 283 and 284: Least Squares (Curve Fitting)Least
- Page 285 and 286: Functions — AlphabeticalList8
- Page 287 and 288: intprogx = bintprog(f,A,b,Aeq,Beq,x
- Page 289 and 290: intprogBranchStrategyStrategy the a
- Page 291 and 292: intprog• Verifies that no better
- Page 293 and 294: intprogExampleTo minimize the funct
Importing and Exporting Your WorkYou can specify a structure that contains• The problem and options information• The options information only• The results of running your problem in optimtoolAfter you have exported information from the <strong>Optimization</strong> Tool to theMATLAB workspace, you can see your data in the MATLAB Workspacebrowser or by typing the name of the structure at the Command Window.Generating an M-FileYou may want to generate an M-file to continue with your optimizationproblem in the Command Window at another time. You can run the M-filewithout modification to recreate the results that you created with the<strong>Optimization</strong>Tool. YoucanalsoeditandmodifytheM-fileandrunitfromthe Command Window.To export data from the <strong>Optimization</strong> Tool to an M-file, select File > GenerateM-file.The M-file captures the following:• The problem definition, including the solver, information on the function tobe minimized, algorithm specification, constraints, and start point• The options (using optimset) with the currently selected option valueRunning the M-file at the Command Window reproduces your problem results.5-45