writeproblem
(Not recommended) Save optimization problem description
Description
writeproblem
is not recommended. Use write
instead.
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.
Examples
Input Arguments
Tips
writeproblem
is equivalent to calling all of the following:writeexpr
(prob.Objective
,filename
)writeconstr
on each constraint inprob.Constraints
writebounds
on all the variables inprob
To obtain the
writeproblem
information at the Command Window, useshowproblem
.