Python examples using the Xpress Optimizer
Covered Topics
- Using NumPy arrays to create variables
- Visualize the BB tree
- Irreducible Infeasible Sets
- Loading a problem
- Modeling with user functions
- Using Python model objects to build a problem
- Using Python model objects to build a problem
- Changing the optimization problem
- Extending a problem
- Using NumPy and Xpress
- Finding an LP subsystem with as many constraints as possible
- Solving a quadratically constrained problem
- Solving a nonconvex quadratic problem
- Solving a quadratically problem
- Repeatedly solving a problem
- Using indicators
- The travelling salesman problem
- Solving a TSP using NumPy
- Writing and reading problem files
- The feasiblity pump
- Knapsack problem
- The n-queens problem
- Min-cost-flow problem
- Solving Sudoku
- Comparing Matrices
- Multicommodity flow problem
- Find largest-area inscribed polygon
- Read problem data into matrix and vectors
- Solve a nonconvex MIQCQP problem
- Solve a simple MIP using Benders decomposition
- Create a problem with piecewise linear functions
- Use the API to create a model with piecewise linear functions
- Create a problem with general constraints that use operator abs
- Create a problem with general constraints with the operator abs by using the API
- Create a problem with general constraints that use operator max
- Create a problem with general constraints with operator max by using the API
- Create a problem with logical constraints
- Create a problem with general constraints with logic operators by using the API
- Create an iterative algorithm cutting stock problem
- Maximize the sum of logistic curves subject to linear and piecewise linear constraints
- Transportation problem with piecewise-linear costs
- Modeling Satisfiability (SAT) problems with MIP
- Modeling PseudoBoolean Optimization problems with MIP
- Re-solving problem using the Barrier method's warm start
Parent Topic
Examples of using the Python interface