Xpress Optimization

Xpress Python examples

Examples of using Xpress from Python



Using NumPy arrays to create variables: Using NumPy arrays
 
Visualize the BB tree: Using the newnode callback
 
Irreducible Infeasible Sets: Using Irreducible Infeasible Sets
 
Loading a problem: Loading a problem directly
 
Using Python model objects to build a problem: Modelling using Python objects
 
Changing the optimization problem: Changes to a problem
 
Extending a problem: Extending a problem
 
Using NumPy and Xpress: Using NumPy and Xpress
 
Finding an LP subsystem with as many constraints as possible:
 
Basis and Stability: Basis handling and sensitivity methods
 
Solving a quadratically constrained problem: Building quadratic expressions
 
Solving a nonconvex quadratic problem: Building quadratic expressions
 
Solving a quadratically problem: Building quadratic expressions
 
Repeatedly solving a problem: Solving a problem multiple times
 
Using indicators: Model with indicators
 
Using special ordered sets: Model with special ordered sets
 
The travelling salesman problem: Using Xpress callbacks
 
Solving a TSP using NumPy: Using Xpress callbacks
 
Writing and reading problem files: Writing and reading a problem to disk
 
The feasiblity pump: Writing and reading a problem to disk
 
Knapsack problem: MIP problem with binary variables
 
The n-queens problem: Puzzle modeling
 
Min-cost-flow problem : Modelling a graph problem
 
Solving Sudoku: Puzzle modeling
 
Comparing Matrices: Compare two optimization problems
 
Multicommodity flow problem: Solve a multicommodity flow minimum cost optimization problem on a randomly created graph
 
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:
 
Using the tuner functions in the Python interface:
 
Multi-objective knapsack problem: Multi-objective MIP problem with binary variables
 
Goal programming: Lexicographic goal programming using the Xpress multi-objective API
 
Markowitz portfolio optimization: Multi-objective quadratic optimization
 
Basic LP tasks: problem statement and solving; solution analysis: LP solving, modeling variables and constraints, printing the solution
 
Network problem: transport from depots to customers: LP solving, modeling variables and constraints
 
Blend: A model for mineral blending: simple LP problem, formulation of blending constraints
 
Basic MIP tasks: binary variables; logic constraints: MIP solving, binary variables, index set types, logic constraints
 
Coco: The Coco productional planning problem: LP problem, formulation of resource constraints and material balance constraints, formatted solution printing
 
Catenary: Determine chain shape: QCQP problem
 
Pplan: A project planning problem: Formulation of resource use profiles
 
Firestns: A set-covering model for emergency service provision: Solve a MIP problem
 
Solving a quadratically constrained problem: Solve a nonlinear problem
 
Solve a polynomial optimization problem: Modeling a polynomial optimization problem
 
Modeling with user functions: Modeling with user functions
 
Solve a nonconvex nonlinear problem from MINLPlib with a local or global solver: Solving with local or global solvers
 
Implementing a branching rule using branch objects: Demonstrate the Xpress change branch object callback
 

 

  Comments or suggestions about the examples? Please e-mail support@fico.com