The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
18 CHAPTER 3. GETTING SUPPORT AND HELP
Chapter 4 Testing installation and compiling examples This chapter describes how to verify that the MOSEK Python API has been installed and works, and how to run the Python examples distributed with MOSEK. To use the MOSEK Python API, a working MOSEK installation must be present — see the MOSEK Installation manual for instructions. Part of this installation are two versions of the Python interface; one for Python 2.5 and later, and one for the Python 3 series. Note that MOSEK can use onedimensional arrays from the NumPy package from scipy.org. In case NumPy is not installed, the MOSEK/Python interface includes a minimal array implementation, mosek.array, that supports the basic array functionality for a limited number of native types. A Python installer can be obtained from the official site: http://www.python.org/ The NumPy package providing arrays and mathematical functionality can be obtained from: http://numpy.scipy.org/ Note that the architecture of the Python binary and the MOSEK DLL must match: A 32 bit MOSEK can only be used from a 32 bit Python, and a 64 bit MOSEK can only be used from a 64 bit Python. The architecture of the Python binary can be checked using the following command: python -c "print( import (’platform’).architecture())" 4.1 Microsoft Windows platform MOSEK includes a binary Python that can be used interactively or for running scripts, but if you have a Python installed on your system you may prefer to use that instead. The MOSEK installer does not 19
- Page 1 and 2: The MOSEK Python optimizer API manu
- Page 3 and 4: Contents 1 Changes and new features
- Page 5 and 6: CONTENTS v 8 A case study 97 8.1 Po
- Page 7 and 8: CONTENTS vii 14.2.1 Caveats . . . .
- Page 9 and 10: CONTENTS ix A.2.70 Task.getdviolvar
- Page 11 and 12: CONTENTS xi A.2.162Task.isdouparnam
- Page 13 and 14: CONTENTS xiii A.2.254Task.readparam
- Page 15 and 16: CONTENTS xv B.1.45 dparam.mio near
- Page 17 and 18: CONTENTS xvii B.2.68 iparam.log sim
- Page 19 and 20: CONTENTS xix B.2.160iparam.sim refa
- Page 21 and 22: CONTENTS xxi D.18 Long integer info
- Page 23 and 24: Contact information Phone +45 3917
- Page 25 and 26: License agreement Before using the
- Page 27 and 28: Chapter 1 Changes and new features
- Page 29 and 30: 1.4. API CHANGES 7 1.3.3 Mixed-inte
- Page 31 and 32: 1.10. SUMMARY OF API CHANGES 9 •
- Page 33 and 34: 1.10. SUMMARY OF API CHANGES 11 •
- Page 35 and 36: 1.10. SUMMARY OF API CHANGES 13 •
- Page 37 and 38: Chapter 2 About this manual This ma
- Page 39: Chapter 3 Getting support and help
- Page 43 and 44: Chapter 5 Basic API tutorial In thi
- Page 45 and 46: 5.1. THE BASICS 23 5 # 6 # Purpose:
- Page 47 and 48: 5.2. LINEAR OPTIMIZATION 25 and the
- Page 49 and 50: 5.2. LINEAR OPTIMIZATION 27 Load a
- Page 51 and 52: 5.2. LINEAR OPTIMIZATION 29 Optimiz
- Page 53 and 54: 5.2. LINEAR OPTIMIZATION 31 88 task
- Page 55 and 56: 5.2. LINEAR OPTIMIZATION 33 51 mose
- Page 57 and 58: 5.3. CONIC QUADRATIC OPTIMIZATION 3
- Page 59 and 60: 5.3. CONIC QUADRATIC OPTIMIZATION 3
- Page 61 and 62: 5.4. SEMIDEFINITE OPTIMIZATION 39 m
- Page 63 and 64: 5.4. SEMIDEFINITE OPTIMIZATION 41 4
- Page 65 and 66: 5.4. SEMIDEFINITE OPTIMIZATION 43 1
- Page 67 and 68: 5.5. QUADRATIC OPTIMIZATION 45 with
- Page 69 and 70: 5.5. QUADRATIC OPTIMIZATION 47 68 #
- Page 71 and 72: 5.5. QUADRATIC OPTIMIZATION 49 5.5.
- Page 73 and 74: 5.5. QUADRATIC OPTIMIZATION 51 81 a
- Page 75 and 76: 5.6. THE SOLUTION SUMMARY 53 • Th
- Page 77 and 78: 5.7. INTEGER OPTIMIZATION 55 21 # f
- Page 79 and 80: 5.7. INTEGER OPTIMIZATION 57 137 sy
- Page 81 and 82: 5.8. THE SOLUTION SUMMARY FOR MIXED
- Page 83 and 84: 5.9. RESPONSE HANDLING 61 Note that
- Page 85 and 86: 5.10. PROBLEM MODIFICATION AND REOP
- Page 87 and 88: 5.10. PROBLEM MODIFICATION AND REOP
- Page 89 and 90: 5.11. SOLUTION ANALYSIS 67 151 # Pu
Chapter 4<br />
Testing installation and compiling<br />
examples<br />
This chapter describes how to verify that the <strong>MOSEK</strong> <strong>Python</strong> <strong>API</strong> has been installed and works, and<br />
how to run the <strong>Python</strong> examples distributed with <strong>MOSEK</strong>.<br />
To use the <strong>MOSEK</strong> <strong>Python</strong> <strong>API</strong>, a working <strong>MOSEK</strong> installation must be present — see the <strong>MOSEK</strong><br />
Installation <strong>manual</strong> for instructions. Part of this installation are two versions of the <strong>Python</strong> interface;<br />
one for <strong>Python</strong> 2.5 and later, and one for the <strong>Python</strong> 3 series. Note that <strong>MOSEK</strong> can use onedimensional<br />
arrays from the NumPy package from scipy.org. In case NumPy is not installed, the<br />
<strong>MOSEK</strong>/<strong>Python</strong> interface includes a minimal array implementation, mosek.array, that supports the<br />
basic array functionality for a limited number of native types.<br />
A <strong>Python</strong> installer can be obtained from the official site:<br />
http://www.python.org/<br />
<strong>The</strong> NumPy package providing arrays and mathematical functionality can be obtained from:<br />
http://numpy.scipy.org/<br />
Note that the architecture of the <strong>Python</strong> binary and the <strong>MOSEK</strong> DLL must match: A 32 bit <strong>MOSEK</strong><br />
can only be used from a 32 bit <strong>Python</strong>, and a 64 bit <strong>MOSEK</strong> can only be used from a 64 bit <strong>Python</strong>.<br />
<strong>The</strong> architecture of the <strong>Python</strong> binary can be checked using the following command:<br />
python -c "print( import (’platform’).architecture())"<br />
4.1 Microsoft Windows platform<br />
<strong>MOSEK</strong> includes a binary <strong>Python</strong> that can be used interactively or for running scripts, but if you have<br />
a <strong>Python</strong> installed on your system you may prefer to use that instead. <strong>The</strong> <strong>MOSEK</strong> installer does not<br />
19