problem.writeslxsol
problem.writeslxsol |
Purpose
Creates an ASCII solution file (
.slx) using a similar format to MPS files. These files can be read back into the Optimizer using the
problem.readslxsol function.
Synopsis
problem.writeslxsol(filename, flags)
Arguments
filename
|
A string of up to 200 characters containing the file name to which the solution is to be written. If omitted, the default
problem_name is used with a
.slx extension.
|
||||||||||||||
flags
|
(optional) Flags to pass to
writeslxsol:
|
Example
p.writeslxsol("lpsolution", "")
This saves the MIP solution if the problem contains global entities, or otherwise saves the LP(barrier in case of quadratic problems) solution of the problem.
Related topics