Initializing help system before first use

problem.read

problem.read


Purpose
Read an optimization problem into a Python problem object created prior to the call. All formats allowed by the Xpress Optimizer C API are allowed.
Synopsis
problem.read(filename, flags)
Arguments
filename 
A string of up to 200 characters with the name of the file to be read.
flags 
(optional) Flags to pass to read:
only the .lp version of the file is searched.
read the input file in compressed .gz format.
Example
Read problem problem1.lp and output an optimal solution:
p.read("problem1", "l")
p.solve("", "")
print("solution of problem1.lp:", p.getSolution())
Related topics