# 16 List of examples¶

List of examples shipped in the distribution of Fusion API for Python:

Table 16 List of distributed examples
File Description
TrafficNetworkModel.py Demonstrates a traffic network problem as a conic quadratic problem (CQO)
alan.py A portfolio choice model alan.gms from the GAMS model library
baker.py A small bakery revenue maximization linear problem
breaksolver.py Shows how to break a long-running task
callback.py An example of data/progress callback
cqo1.py A simple conic quadratic problem
diet.py Solving Stigler’s Nutrition model diet from the GAMS model library
duality.py Shows how to access the dual solution
facility_location.py Demonstrates a small one-facility location problem (CQO)
lo1.py A simple linear problem
lownerjohn_ellipsoid.py Computes the Lowner-John inner and outer ellipsoidal approximations of a polytope (SDO, CQO)
lpt.py Demonstrates how to solve the multi-processor scheduling problem and input an integer feasible point (MIP)
milo1.py A simple mixed-integer linear problem
mioinitsol.py A simple mixed-integer linear problem with an initial guess
nearestcorr.py Solves the nearest correlation matrix problem (SDO, CQO)
parameters.py Shows how to set optimizer parameters and read information items
portfolio.py Presents several portfolio optimization models
primal_svm.py Implements a simple soft-margin Support Vector Machine (CQO)
production.py Demonstrate how to modify and re-optimize a linear problem
qcqp_sdo_relaxation.py Demonstrate how to use SDP to solve convex relaxation of a mixed-integer QCQO problem
sdo1.py A simple semidefinite optimization problem
sospoly.py Models the cone of nonnegative polynomials and nonnegative trigonometric polynomials using Nesterov’s framework
sudoku.py A SUDOKU solver (MIP)
total_variation.py Demonstrates how to solve a total variation problem (CQO)
tsp.py Solves a simple Travelling Salesman Problem and shows how to add constraints to a model and re-optimize (MIP)

Additional examples can be found on the MOSEK website and in other MOSEK publications.