Save optimization problem description
writeproblem(prob)
writeproblem(prob,filename)
writeproblem(
saves a description
of the optimization problem prob
)prob
in a file named
prob
.txt
. Here,
prob
is the workspace variable name of the problem.
If writeproblem
cannot construct the file name from the problem
name, it writes to WriteProblemOutput.txt
. The
writeproblem
function overwrites any existing file.
writeproblem
is equivalent to calling all of the
following:
writeexpr
(prob.Objective
,filename
)
writeconstr
on each constraint in
prob.Constraints
writebounds
on all the variables in
prob
To obtain the writeproblem
information at the Command
Window, use showproblem
.
OptimizationProblem
| showproblem
| writebounds
| writeconstr
| writeexpr