Initializing help system before first use

Xpress problem methods

Declares a callback which will be called after each objective in a multi-objective problem is solved. This callback function will be called in addition to any callbacks already added by addcbafterobjective.
Declares a barrier iteration callback function, called after each iteration during the interior point algorithm, with the ability to access the current barrier solution/slack/duals or reduced cost values, and to ask barrier to stop. This callback function will be called in addition to any callbacks already added by addcbbariteration.
Declares a barrier log callback function, called at each iteration during the interior point algorithm. This callback function will be called in addition to any barrier log callbacks already added by addcbbarlog.
Declares a callback which will be called before each objective in a multi-objective problem is solved. This callback function will be called in addition to any callbacks already added by addcbbeforeobjective.
Declares a callback function which is called every time the Optimizer checks if the time limit has been reached. This callback function will be called in addition to any callbacks already added by addcbchecktime.
Declares a callback function that will be called every time the Optimizer has selected a MIP entity for branching. Allows the user to inspect and override the Optimizer's branching choice. This callback function will be called in addition to any callbacks already added by problem.addcbchgbranchobject.
Declares a cut log callback function, called each time the cut log is printed. This callback function will be called in addition to any callbacks already added by problem.addcbcutlog.
Declares a callback function that is called every time a MIP thread is destroyed by the parallel MIP code. This callback function will be called in addition to any callbacks already added by addcbdestroymt.
Declares a gap notification callback, to be called when a MIP solve reaches a predefined target, set using the miprelgapnotify, mipabsgapnotify, mipabsgapnotifyobj, and/or mipabsgapnotifybound controls.
Declares a user infeasible node callback function, called after the current node has been found to be infeasible during the Branch and Bound search. This callback function will be called in addition to any callbacks already added by addcbinfnode.
Declares a user integer solution callback function, called every time an integer solution is found by heuristics or during the Branch and Bound search. This callback function will be called in addition to any callbacks already added by addcbintsol.
Declares a simplex log callback function which is called after every LPLOG iterations of the simplex algorithm. This callback function will be called in addition to any callbacks already added by addcblplog.
Declares an output callback function, called every time a text line relating to the given prob is output by the Optimizer. This callback function will be called in addition to any callbacks already added by addcbmessage.
Declares a MIP log callback function, called each time the MIP log is printed. This callback function will be called in addition to any callbacks already added by addcbmiplog.
Declares a MIP thread callback function, called every time a MIP worker problem is created by the parallel MIP code. This callback function will be called in addition to any callbacks already added by addcbmipthread.
Declares a callback function that will be called every time a new node is created during the branch and bound search. This callback function will be called in addition to any callbacks already added by addcbnewnode.
Declares a user node cutoff callback function, called every time a node is cut off as a result of an improved integer solution being found during the branch and bound search. This callback function will be called in addition to any callbacks already added by addcbnodecutoff.
Declares a node LP solved callback function, called during the branch and bound search, after the LP relaxation has been solved for the current node, but before any internal cuts and heuristics have been applied. This callback function will be called in addition to any callbacks already added by XPRSaddcbnodelpsolved.
Declares an optimal node callback function, called during the branch and bound search, after the LP relaxation has been solved for the current node, and after any internal cuts and heuristics have been applied, but before the Optimizer checks if the current node should be branched. This callback function will be called in addition to any callbacks already added by addcboptnode.
Declares a user integer solution callback function, called when an integer solution is found by heuristics or during the branch and bound search, but before it is accepted by the Optimizer. This callback function will be called in addition to any integer solution callbacks already added by addcbpreintsol.
Declares a preprocess node callback function, called before the LP relaxation of a node has been optimized, so the solution at the node will not be available. This callback function will be called in addition to any callbacks already added by addcbprenode.
Declares a callback function to be called each time a solution added by problem.addmipsol has been processed. This callback function will be called in addition to any callbacks already added by addcbusersolnotify.
Add non-linear coefficients to the SLP problem
Add columns to the problem after passing it to the Optimizer using the input routines.
Adds one or more constraints to the problem.
Adds cuts directly to the matrix at the current node. Any cuts added to the matrix at the current node and not deleted at the current node will be automatically added to the cut pool. The cuts added to the cut pool will be automatically restored at descendant nodes.
Add a set of distribution factors
Adds one or more general constraints to the problem. Each general constraint y = f(x1, ..., xn, c1, ..., cn) consists of one or more (input) columns xi, zero or more constant values ci and a resultant (output column) y. General constraints can be defined using operators such as maximum and minimum (at least one input column of any contype and arbitrary number of input values), and and or (at least one binary input column, no constant values, binary resultant) and absolute value (exactly one input column of arbitrary contype, no constant values).
Adds one or more indicator constraints to the problem.
Adds a new feasible, infeasible or partial MIP solution for the problem to the Optimizer.
Associates names with rows, columns, sets, piecewise linear constraints, general constraints or objectives.
Appends an objective function with the given coefficients to a multi-objective problem. The weight and priority of the objective are set to the given values.
Adds one or more objective functions to the problem.
Adds one or more piecewise linear constraints to the problem. Each piecewise linear constraint y = f(x) consists of an (input) column x, a resultant (output column) y and a piecewise linear function f. The piecewise linear function f is described by a number of breakpoints, which are given as combinations of x- and y-values. Discontinuous piecewise linear functions are supported, in this case both the left and right limit at a given point need to be entered as breakpoints. To differentiate between left and right limit, the breakpoints need to be given as a list with non-decreasing x-values.
Adds a new quadratic matrix into a row defined by triplets.
Adds rows and their coefficient to the problem.
When a model with MIP entities is loaded, any special ordered sets may not have names associated with them. If you wish names to appear in the ASCII solutions files, the names for a range of sets can be added with this function.
Creates a special ordered set (SOS) constraint within the problem.
Add sets of standard tolerance values to an SLP problem
Creates a variable within the problem.
Creates a dictionary or NumPy array of variables and adds them to the problem. Similar to the creation of a single variable with problem.addVariable, addVariables allows for using one or more index sets, specified as sets, lists, range objects, or any iterable object. Specifying a number k as an argument is equivalent to range(k) but can be used to create NumPy multiarrays of variables, and allows for more efficient creation. The result is otherwise a Python dictionary of variables, whose keys are tuple of indices. A collection of variables x that is created with addVariables can be indexed, for instance, as x[i,j] where i and j are indices in the lists provided.
Add SLP variables defined as matrix columns to an SLP problem
Returns various measures for the stability of the current basis, including the basis condition number.
Returns upper and lower sensitivity ranges for specified variables' lower and upper bounds. If the bounds are varied within these ranges the current basis remains optimal and feasible.
Post-multiplies a (row) vector provided by the user by the inverse of the current basis.
Returns the objective value of a given solution.
Returns the value of a given objective. A solution can optionally be provided, otherwise the current solution will be used.
Returns the reduced cost values for a given (row) dual solution.
Calculates the row slack values for a given solution.
Returns the required property of a solution, like maximum infeasibility of a given primal and duals solution.
Re-calculate consistent values for SLP variables. based on the current values of the remaining variables
Establish a re-calculation sequence for SLP variables with determining rows.
Changes the bounds on columns in the problem.
Set a variable specific cascade iteration limit
Add or change a single matrix coefficient using a string for the formula
Changes a single coefficient in the problem. If the coefficient does not already exist, a new coefficient will be added to the problem. If many coefficients are being added to a row of the problem, it may be more efficient to delete the old row and add a new row.
Changes the type of a column in the problem.
Changes the type of the delta assigned to a nonlinear variable
Set or change a distribution factor
Changes semi-continuous or semi-integer lower bounds, or upper limits on partial integers.
Change multiple coefficients in the problem. The coefficients that do not exist yet will be added to the problem. If many coefficients are being added to a row of the matrix, it may be more efficient to delete the old row of the matrix and add a new one.
Change multiple quadratic coefficients in the objective function. If any of the coefficients does not exist already, new coefficients will be added to the objective function.
Add or change a single matrix coefficient using a parsed or unparsed formula
Change the objective function coefficients.
Modifies one or more coefficients of an objective function in a multi-objective problem. If the objective already exists, any coefficients not present in the colind and objcoef arrays will unchanged. If the objective does not exist, it will be added to the problem.
Changes the problem's objective function objsense to minimize or maximize.
Change a single quadratic coefficient in the objective function corresponding to the variable pair (objqcol1,objqcol2) of the Hessian matrix.
Changes a single quadratic coefficient in a row.
Changes righthand side values of the problem.
Change the range for one or more rows of the problem.
Change the status setting of a constraint
Changes the type of a row in the problem.
Set or change the initial penalty error weight for a row
Add or change a set of convergence tolerances used for SLP variables
Define a column as an SLP variable or change the characteristics and values of an existing SLP variable
Create the full augmented SLP matrix and data structures, ready for optimization
Obtains a copy of a problem.
Copies callback functions defined for one problem to another.
Copies controls defined for one problem to another.
Provides a basic optimal solution for a given solution of an LP problem. This function behaves like the crossover after the barrier algorithm.
Delete coefficients from the current problem
Delete one or more constraints from the problem.
During the branch and bound search, cuts are stored in the cut pool to be applied at descendant nodes. These cuts may be removed from a given node using problem.delcuts, but if this is to be applied in a large number of cases, it may be preferable to remove the cut completely from the cut pool. This is achieved using delcpcuts.
Deletes cuts from the matrix at the current node. Cuts from the parent node which have been automatically restored may be deleted as well as cuts added to the current node using problem.addcuts or problem.loadcuts. The cuts to be deleted can be specified in a number of ways. If a cut is ruled out by any one of the criteria it will not be deleted.
Delete general constraints from a problem.
Delete indicator constraints. This turns the specified rows into normal rows (not controlled by indicator variables).
Removes an objective function from a multi-objective problem. Any objectives with index > objidx will be shifted down. Deleting the last objective function in the problem causes all the objective coefficients to be zeroed, but OBJECTIVES remains set to 1.
Delete piecewise linear constraints from a problem.
Deletes the quadratic part of a row or of the objective function.
Delete one or more SOSs from the problem.
Delete tolerance sets from the current problem
Delete one or more variables from the problem.
Convert SLP variables to normal columns. Variables must not appear in SLP structures
Displays the list of controls and their current value for those controls that have been set to a non default value.
Performs a dual side range sensitivity analysis, i.e. calculates estimates for the possible ranges for dual values.
Evaluate a coefficient using the current values of the variables
Evaluate a formula using the current values of the variables
Fixes all the MIP entities to the values of the last found MIP solution. This is useful for finding the reduced costs for the continuous variables after the MIP entities have been fixed to their optimal values.
Fixe the values of the error vectors
Pre-multiplies a (column) vector provided by the user by the inverse of the current matrix.
Retrieves one or more attributes of a problem.
Accesses the id number and the type information of an attribute given its name. An attribute name may be for example 'rows'. The function will return an id number of 0 and a type value of notdefined if the name is not recognized as an attribute name. Note that this will occur if the name is a control name and not an attribute name.
Returns the current basis into the user's data arrays.
Returns the current basis status for a specific col or row.
Used to obtain the dual values from the solution associated with the current callback.
Returns the dual values from the solution to the presolved problem associated with the current callback.
Returns the reduced costs from the solution to the presolved problem associated with the current callback.
Returns the slack values from the solution to the presolved problem associated with the current callback.
Returns the solution to the presolved problem associated with the current callback.
Used to obtain the reduced costs from the solution associated with the current callback.
Used to obtain the slack values from the solution associated with the current callback.
Used to obtain the solution associated with the current callback.
Retrieve a single nonlinear matrix coefficient as a formula in a string.
Returns a single coefficient in the constraint matrix.
Retrieve a single nonlinear matrix coefficient as a formula split into tokens
Retrieve the list of positions of the nonlinear coefficients in the problem
Get current column information.
Returns the nonzeros in the constraint matrix for the columns in a given range.
Returns the column types for the columns in a given range.
Returns one or more constraint of a problem corresponding to one or more indices passed as arguments. These constraints are returned as Python objects and can be used to access and manipulate the problem.
Retrieves one or more controls of a problem. Can also be used to retrieve objective controls.
Accesses the id number and the type information of a control given its name. A control name may be for example 'presolve'. The function will return an id number of 0 and a type value of notdefined if the name is not recognized as a control name. Note that this will occur if the name is an attribute name rather than a control name.
Returns a list of cut indices from the cut pool.
Returns cuts from the cut pool. A list of cuts in the array mindex must be passed to the routine. The columns and elements of the cut will be returned in the regions pointed to by the colind and cutcoef parameters. The columns and elements will be stored contiguously and the starting point of each cut will be returned in the region pointed to by the start parameter.
Retrieves a list of cuts for the cuts active at the current node.
Returns in which rows a list of cutind are currently loaded into the Optimizer. This is useful for example to retrieve the duals associated with active cutind.
Used to calculate the slack value of a cutind with respect to the current LP relaxation solution. The slack is calculated from the cutind itself, and might be requested for any cutind (even if it is not currently loaded into the problem).
Get a distribution factor
Returns the directives that have been loaded into a problem. Priorities, forced branching directions and pseudo costs can be returned. If called after presolve, getdirs will get the directives for the presolved problem.
Retrieves a dual ray (dual unbounded direction) for the current problem, if the problem is found to be infeasible.
Used to obtain the dual values associated with the incumbent solution during or after optimization with problem.optimize, problem.mipoptimize, problem.lpoptimize or problem.nlpoptimize.
Returns the general constraints y = f(x1, ..., xn, c1, ..., cm) in a given range.
Returns information for an Irreducible Infeasible Set: size, variables (row and column vectors) and conflicting sides of the variables, duals and reduced costs.
Returns the numerical index for a specified row, column, or set of the optimizer.
Returns the index for a specified row or column name.
Returns the indicator constraint condition (indicator variable and complement flag) associated to the rows in a given range.
Returns a list of infeasible primal and dual variables.
Obtains the last barrier solution values following optimization that used the barrier solver.
Returns the error message corresponding to the last error triggered by a library function.
Returns the lower bounds on the columns in a given range.
Used to obtain the LP solution values following optimization.
Used to obtain a single LP solution value following optimization.
Returns the current suppression status of a message: nonzero if the message is not suppressed; 0 otherwise.
Retrieves MIP entity information about a problem. It must be called before problem.mipoptimize if the presolve option is used.
Used to obtain the solution values of the last MIP solution that was found.
Used to obtain a single solution value of the last MIP solution that was found.
Returns the nonzeros in the quadratic objective coefficients' matrix for the columns in a given range. To achieve maximum efficiency, getmqobj returns the lower triangular part of this matrix only.
Returns the names for the rows, columns, sets, piecewise linear constraints, general constraints or objectives in a given range. The names will be returned in a list of Python strings.
Returns the objective function coefficients for the columns in a given range.
Returns the coefficients of a given objective function for the columns in a given range.
Returns the objective value of the solution found by the Optimizer.
Returns True if Optimizer messages will be written to the Python output stream, False otherwise.
Returns the pivot order of the basic variables.
Returns a list of potential leaving variables if a specified variable enters the basis. The return value is a tuple containing the objective function value that would result if enter entered the basis; and an integer where the actual number of potential leaving variables will be returned.
Returns the current basis from memory into the user's data areas. If the problem is presolved, the presolved basis will be returned. Otherwise the original basis will be returned.
Returns the mapping of the row and column numbers from the presolve problem back to the original problem.
Returns the solution for the presolved problem from memory.
Retrieves a primal ray (primal unbounded direction) for the current problem, if the problem is found to be unbounded.
Returns the problem status before or after a call to problem.optimize.
Returns the string corresponding to the problem status before or after a call to problem.optimize.
Returns the piecewise linear constraints y = f(x) in a given range.
Returns a single quadratic objective function coefficient corresponding to the variable pair (objqcol1, objqcol2) of the Hessian matrix.
Returns a single quadratic constraint coefficient corresponding to the variable pair (rowqcol1, rowqcol2) of the Hessian of a given constraint.
Returns the nonzeros in a quadratic constraint coefficients matrix for the columns in a given range. To achieve maximum efficiency, getqrowqmatrix returns the lower triangular part of this matrix only.
Returns the nonzeros in a quadratic constraint coefficients matrix as triplets (index pairs with coefficients). To achieve maximum efficiency, getqrowqmatrixtriplets returns the lower triangular part of this matrix only.
Returns a list of row objects that have quadratic coefficients.
Used to obtain the reduced costs associated with the incumbent solution during or after optimization with problem.optimize, problem.mipoptimize, problem.lpoptimize or problem.nlpoptimize.
Returns the right hand side elements for the rows in a given range.
Returns the right hand side range values for the rows in a given range.
Get current row information.
Returns the nonzeros in the constraint matrix for the rows in a given range.
Retrieve the status setting of a constraint
Returns the row types for the rows in a given range.
Get the initial penalty error weight for a row
Returns a list of scaled infeasible primal and dual variables for the original problem. If the problem is currently presolved, it is postsolved before the function returns.
Used to obtain the slack values associated with the incumbent solution during or after optimization with problem.optimize, problem.mipoptimize, problem.lpoptimize or problem.nlpoptimize.
Obtain the solution values for the most recent SLP iteration
Used to obtain the incumbent solution during or after optimization with problem.optimize, problem.mipoptimize, problem.lpoptimize or problem.nlpoptimize.
Returns one or more SOSs of a problem corresponding to one or more indices passed as arguments. These SOSs are returned as Python objects and can be used to access and manipulate the problem.
Retrieve the values of a set of convergence tolerances for an SLP problem
Returns the upper bounds on the columns in a given range.
Returns the index vector which causes the primal simplex or dual simplex algorithm to determine that a problem is primal or dual unbounded respectively.
Retrieve information about an SLP variable
Returns one or more variables of a problem corresponding to one or more indices passed as arguments. These variables are returned as Python objects and can be used to access and manipulate the problem.
Returns true if a dual ray (dual unbounded direction) exists for the current problem, if the problem is found to be infeasible.
Returns true if a primal ray (primal unbounded direction) exists for the current problem, if the problem is found to be unbounded.
Performs an automated search for independent Irreducible Infeasible Sets (IIS) in an infeasible problem.
Resets the search for Irreducible Infeasible Sets (IIS).
Initiates a search for an Irreducible Infeasible Set (IIS) in an infeasible problem. The returned value can be 0 for success, 1 if the problem is feasible, or 2 in case of error.
Performs the isolation identification procedure for an Irreducible Infeasible Set (IIS).
Continues the search for further Irreducible Infeasible Sets (IIS), or calls problem.iisfirst if no IIS has been identified yet. The returned value is 0 in case of success; 1 if no more IIS could be found, or problem is feasible if no problem.iisfirst call preceded; or 2 in case of an error.
Returns statistics on the Irreducible Infeasible Sets (IIS) found so far by problem.iisfirst, problem.iisnext, or problem.iisall. The returned value is the number of IISs found so far.
Writes an LP/MPS/CSV file containing a given Irreducible Infeasible Set (IIS). If 0 is passed as the IIS number parameter, the initial infeasible subproblem is written.
Interrupts the Optimizer algorithms.
Loads a basis as specified by the user.
Loads directives into the current problem to specify which MIP entities the Optimizer should continue to branch on when a node solution is integer feasible.
Load non-linear coefficients into the SLP problem
Loads cuts from the cut pool into the matrix. Without calling loadcuts the cuts will remain in the cut pool but will not be active at the node. Cuts loaded at a node remain active at all descendant nodes unless they are deleted using problem.delcuts.
Specifies that a set of rows in the problem will be treated as delayed rows during a tree search. These are rows that must be satisfied for any integer solution, but will not be loaded into the active set of constraints until required.
Load a set of distribution factors
Loads directives into the problem.
Loads an LP solution for the problem into the Optimizer. The returned status is either 0 if the solution is loaded or 1 if the solution is not loaded because the problem is in presolved status.
Loads a MIP solution for the problem into the Optimizer. The returned status is one of the following values: -1: Solution rejected because an error occurred; 0: Solution accepted. When loading a solution before a MIP solve, the solution is always accepted. See Further Information below. 1: Solution rejected because it is infeasible; 2: Solution rejected because it is cut off; 3: Solution rejected because the LP reoptimization was interrupted.
Specifies that a set of rows in the problem will be treated as model cuts.
Loads a presolved basis from the user's areas.
Loads directives into the presolved matrix.
Load an optimization problem, possibly with quadratic objective and/or constraints, and integer variables.
Allows the user to mark rows and columns in order to prevent the presolve removing these rows and columns from the problem.
Load sets of standard tolerance values into an SLP problem
Load SLP variables defined as matrix columns into an SLP problem
This function begins a search for the optimal continuous (LP) solution. The direction of optimization is given by OBJSENSE. The status of the problem when the function completes can be checked using LPSTATUS. Any MIP entities in the problem will be ignored.
This function begins a tree search for the optimal MIP solution. The direction of optimization is given by OBJSENSE. The status of the problem when the function completes can be checked using MIPSTATUS.
A combined version of msaddjob and msaddpreset. The preset described is loaded, topped up with the specific settings supplied
Adds a multistart job to the multistart pool
Loads a preset of jobs into the multistart job pool.
Removes all scheduled jobs from the multistart job pool
Returns the name of the problem as a Python string.
Add or replace a single matrix formula using a parsed or unparsed formula
Add or replace a single matrix formula using a character string for the formula.
Retrieve a single matrix formula split into tokens
Retrieve a single matrix formula in a character string
Solves an SLP problem
Set the initial value of a nonlinear variable
Returns upper and lower sensitivity ranges for specified objective function coefficients. If the objective coefficients are varied within these ranges the current basis remains optimal and the reduced costs remain valid.
This function begins a search for the optimal solution of the problem. The direction of optimization is given by OBJSENSE.
Postsolve the current problem when it is in a presolved state.
Perform a nonlinear presolve on the problem
Presolves a row formulated in terms of the original variables such that it can be added to a presolved problem. Returns a tuple of two elements containing, respectively, the presolved right-hand side and the status of the presolved row: -3: Failed to presolve the row due to presolve dual reductions; -2: Failed to presolve the row due to presolve duplicate column reductions; -1: Failed to presolve the row due to an error. Check the Optimizer error code for the cause; 0: The row was successfully presolved; 1: The row was presolved, but may be relaxed.
Print a summary of any evaluation errors that may have occurred during solving a problem
Print the dimensions and memory allocations for a problem
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.
Instructs the Optimizer to read in a previously saved basis from a file.
Reads a solution from a binary solution file.
Reads a directives file to help direct the tree search.
Reads an ASCII solution file .slx created by the problem.writeslxsol function.
Runs the MIP solution refiner.
Reset the SLP problem to match a just augmented system
Removes a user after objective callback function previously added by addcbafterobjective. The specified callback function will no longer be called after it has been removed.
Removes a barrier iteration callback function previously added by addcbbariteration. The specified callback function will no longer be called after it has been removed.
Removes a newton barrier log callback function previously added by addcbbarlog. The specified callback function will no longer be called after it has been removed.
Removes a user before objective callback function previously added by addcbbeforeobjective. The specified callback function will no longer be called after it has been removed.
Removes a callback function previously added by problem.addcbchecktime. The specified callback function will no longer be called after it has been removed.
Removes a callback function previously added by addcbchgbranchobject. The specified callback function will no longer be called after it has been removed.
Removes a cut log callback function previously added by addcbcutlog. The specified callback function will no longer be called after it has been removed.
Removes a slave thread destruction callback function previously added by addcbdestroymt. The specified callback function will no longer be called after it has been removed.
Removes a callback function previously added by problem.addcbgapnotify. The specified callback function will no longer be removed after it has been returned.
Removes a user infeasible node callback function previously added by addcbinfnode. The specified callback function will no longer be called after it has been removed.
Removes an integer solution callback function previously added by addcbintsol. The specified callback function will no longer be called after it has been removed.
Removes a simplex log callback function previously added by addcblplog. The specified callback function will no longer be called after it has been removed.
Removes a message callback function previously added by addcbmessage. The specified callback function will no longer be called after it has been removed.
Removes a MIP log callback function previously added by addcbmiplog. The specified callback function will no longer be called after it has been removed.
Removes a callback function previously added by addcbmipthread. The specified callback function will no longer be called after it has been removed.
Removes a new-node callback function previously added by addcbnewnode. The specified callback function will no longer be called after it has been removed.
Removes a node-cutoff callback function previously added by addcbnodecutoff. The specified callback function will no longer be called after it has been removed.
Removes a node lp solved callback function previously added by addcbnodelpsolved. The specified callback function will no longer be called after it has been removed.
Removes a node-optimal callback function previously added by addcboptnode. The specified callback function will no longer be called after it has been removed.
Removes a pre-integer solution callback function previously added by addcbpreintsol. The specified callback function will no longer be called after it has been removed.
Removes a preprocess node callback function previously added by addcbprenode. The specified callback function will no longer be called after it has been removed.
Removes a user solution notification callback previously added by problem.addcbusersolnotify. The specified callback function will no longer be called after it has been removed.
Provides a simplified interface for problem.repairweightedinfeas. The returned value is as follows: 0: relaxed optimum found; 1: relaxed problem is infeasible; 2: relaxed problem is unbounded; 3: solution of the relaxed problem regarding the original objective is nonoptimal; 4: error (when return code is nonzero); 5: numerical instability; 6: analysis of an infeasible relaxation was performed, but the relaxation is feasible.
By relaxing a set of selected constraints and bounds of an infeasible problem, it attempts to identify a 'solution' that violates the selected set of constraints and bounds minimally, while satisfying all other constraints and bounds. Among such solution candidates, it selects one that is optimal regarding to the original objective function. Similar to repairinfeas, the returned value is as follows: 1: relaxed problem is infeasible; 2: relaxed problem is unbounded; 3: solution of the relaxed problem regarding the original objective is nonoptimal; 4: error (when return code is nonzero); 5: numerical instability; 6: analysis of an infeasible relaxation was performed, but the relaxation is feasible.
An extended version of problem.repairweightedinfeas that allows for bounding the level of relaxation allowed. The returned value is the same as repairweightedinfeas.
Clears all information regarding an optimization problem and returns it to the same status as it would be after creation (i.e. after the instruction p = xpress.problem()).
Restores the Optimizer's data structures from a file created by problem.save. Optimization may then recommence from the point at which the file was created.
Returns upper and lower sensitivity ranges for specified right hand side (RHS) function coefficients. If the RHS coefficients are varied within these ranges the current basis remains optimal and the reduced costs remain valid.
Saves the current data structures, i.e. matrices, control settings and problem attribute settings to file and terminates the run so that optimization can be resumed later.
Re-scales the current problem.
Analyze the current matrix for largest/smallest coefficients and ratios
Set a user callback to be called at the end of the cascading process, after the last variable has been cascaded
Set a user callback to be called at the start of the cascading process, before any variables have been cascaded
Set a user callback to be called after each column has been cascaded
Set a user callback to be called after cascading a column was not successful
Set a user callback to be called when an evaluation of a coefficient fails during the solve
Set a user callback to be called during the Xpress SLP augmentation process
Set a user callback to be called when an SLP problem is about to be destroyed
Set a user callback used to override the update of variables with small determining column
Set a user callback to be called during MISLP when an integer solution is obtained
Set a user callback to be called at the end of each SLP iteration
Set a user callback to be called at the start of each SLP iteration
Set a user callback to be called after each column has been tested for convergence
Set a user callback to be called whenever Xpress Nonlinear outputs a line of text
Set a user callback to be called every time a new multistart job finishes. Can be used to overwrite the default solution ranking function
Set a user callback to be called every time a new multistart job is created, and the pre-loaded settings are applied
Set a user callback to be called every time a new multistart job is created, and the pre-loaded settings are applied
Set a user callback to be called during MISLP when an optimal SLP solution is obtained at a node
Set a user callback to be called during MISLP after the set-up of the SLP problem to be solved at a node, but before SLP optimization
Set a user callback to be called before the linearization is updated
Set a user callback to be called at the end of the SLP optimization
Set a user callback to be called during MISLP after the SLP optimization at each node.
Set a user callback to be called at the start of the SLP optimization
Sets one or more controls of a problem. Can also be used to set objective controls.
Transfer the current solution to initial values
Sets one control to its default values. Must be called before the problem is read or loaded by problem.read and problem.loadproblem.
Sets all controls to their default values. It must be called before the problem is read with problem.read or loaded with problem.loadproblem.
Specifies that a set of rows in the problem will be treated as indicator constraints during a tree search. An indicator constraint is made of a condition and a linear inequality. The condition is of the type "bin = value", where bin is a binary variable and value is either 0 or 1. The linear inequality is any linear row in the problem with type <= (L) or >= (G). During tree search, a row configured as an indicator constraint is enforced only when condition holds, that is only if the indicator variable bin has the specified value.
This directs all Optimizer output to a log file.
Manages suppression of messages.
Sets the objective function of the problem.
Enables or disables writing Optimizer messages to the Python output stream.
Sets the current default problem name.
Add or change a single matrix coefficient using a parsed or unparsed formula
Add or change a single matrix coefficient using a string for the formula
Retrieve a single matrix formula split into tokens
Retrieve a single matrix coefficient as a formula in a character string
Stores cuts into the cut pool, but does not apply them to the current node. These cuts must be explicitly loaded into the matrix using problem.loadcuts before they become active.
Performs strong branching iterations on all specified bound changes. For each candidate bound change, strongbranch performs dual simplex iterations starting from the current optimal solution of the base LP, and returns both the status and objective value reached after these iterations.
Performs strong branching iterations on all specified bound changes. For each candidate bound change, strongbranchcb performs dual simplex iterations starting from the current optimal solution of the base LP, and returns both the status and objective value reached after these iterations.
Begin a tuner session for the current problem. The tuner will solve the problem multiple times while evaluating a list of control settings and promising combinations of them. When finished, the tuner will select and set the best control setting on the problem. Note that the direction of optimization is given by xpress.attributes.objsense.
This function begins a tuner session for a set of problems. The tuner will solve the problems multiple times while evaluating a list of control settings and promising combinations of them. When finished, the tuner will select and set the best control setting on the problems.
Load a user defined tuner method from the given file.
Writes the current tuner method to a given file or prints it to the console.
Reset the SLP problem and removes the augmentation structures
Updates the current linearization
Validate the feasibility of constraints in a converged solution
Validates the first order optimality conditions also known as the Karush-Kuhn-Tucker (KKT) conditions versus the currect solution
Prints an extensive analysis on a given constraint of the SLP problem
Validate the feasibility of constraints for a given solution
Writes the current problem to an MPS or LP file.
Writes the current basis to a file for later input into the Optimizer.
Writes the current MIP or LP solution to a binary solution file for later input into the Optimizer.
Writes the tree search directives from the current problem to a directives file.
Writes the current solution to a fixed format ASCII file, problem_name.prt.
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.
Writes the current solution to a CSV format ASCII file, problem_name.asc(and .hdr).

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.