Main Content
write
Save optimization object description
Description
Use write
to save the description of an optimization
object.
Tip
For the full workflow, see Problem-Based Optimization Workflow or Problem-Based Workflow for Solving Equations.
write(
saves a description of the
optimization object obj
)obj
in a file named
obj
.txt
. Here,
obj
is the workspace variable name of the optimization object.
If write
cannot construct the file name from the expression, it writes
the description to WriteOutput.txt
instead. write
overwrites any existing file. If the object description is small, consider using show
instead to
display the description at the command line.
Examples
Input Arguments
Version History
Introduced in R2019b