Methods of the class problem
The tables below show all methods of the class problem of the Xpress Python interface, with the exception of callbacks, which are listed separately. Their invocation is therefore to be preceded by a problem object (the class prefix problem. is omitted in the table for compactness), as follows:
import xpress as xp x = xp.var () p = xp.problem () p.setObjective (x + 3 * x**2 + 2)
The following table contains the problem functions to be called for nonlinear problems.