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
writeproblemis equivalent to calling all of the following:writeexpr(prob.Objective,filename)writeconstron each constraint inprob.Constraintswriteboundson all the variables inprob
To obtain the
writeprobleminformation at the Command Window, useshowproblem.