write
Save optimization object description
Syntax
Description
Usewrite
to save the description of an optimization object.
Tip
For the full workflow, seeProblem-Based Optimization WorkfloworProblem-Based Workflow for Solving Equations.
write(
saves a description of the optimization objectobj
)obj
in a file namedobj
.txt
. Here,obj
is the workspace variable name of the optimization object. Ifwrite
cannot construct the file name from the expression, it writes the description toWriteOutput.txt
instead.write
overwrites any existing file. If the object description is small, consider usingshow
instead to display the description at the command line.