The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
ii • Published by MOSEK ApS, Denmark. • Copyright c○ MOSEK ApS, Denmark. All rights reserved.
Contents 1 Changes and new features in MOSEK 5 1.1 Platform support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 General changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Optimizers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3.1 Interior point optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3.2 The simplex optimizers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3.3 Mixed-integer optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.5 Optimization toolbox for MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.6 License system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.7 Other changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.8 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.9 Platform changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.10 Summary of API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.10.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.10.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2 About this manual 15 3 Getting support and help 17 3.1 MOSEK documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.2 Additional reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4 Testing installation and compiling examples 19 4.1 Microsoft Windows platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.1 Running a Python example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 Implementation details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5 Basic API tutorial 21 5.1 The basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1.1 The environment and the task . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1.2 Example: Simple working example . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.2 Linear optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2.1 Example: Linear optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.2.2 Row-wise input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5.3 Conic quadratic optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 iii
- Page 1: The MOSEK Python optimizer API manu
- 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 and 40: Chapter 3 Getting support and help
- Page 41 and 42: Chapter 4 Testing installation and
- 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
Contents<br />
1 Changes and new features in <strong>MOSEK</strong> 5<br />
1.1 Platform support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />
1.2 General changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />
1.3 Optimizers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6<br />
1.3.1 Interior point <strong>optimizer</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6<br />
1.3.2 <strong>The</strong> simplex <strong>optimizer</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6<br />
1.3.3 Mixed-integer <strong>optimizer</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.4 <strong>API</strong> changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.5 Optimization toolbox for MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.6 License system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.7 Other changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.8 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
1.9 Platform changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8<br />
1.10 Summary of <strong>API</strong> changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8<br />
1.10.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8<br />
1.10.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10<br />
2 About this <strong>manual</strong> 15<br />
3 Getting support and help 17<br />
3.1 <strong>MOSEK</strong> documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br />
3.2 Additional reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br />
4 Testing installation and compiling examples 19<br />
4.1 Microsoft Windows platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />
4.1.1 Running a <strong>Python</strong> example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20<br />
4.2 Implementation details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20<br />
5 Basic <strong>API</strong> tutorial 21<br />
5.1 <strong>The</strong> basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />
5.1.1 <strong>The</strong> environment and the task . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />
5.1.2 Example: Simple working example . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />
5.2 Linear optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24<br />
5.2.1 Example: Linear optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />
5.2.2 Row-wise input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />
5.3 Conic quadratic optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />
iii