Next:
Contact information
Contents
The MOSEK C API on-line reference manual.
Version 4.0 (Revision 16).
Contact information
Contents
1
. The Application Program Interface
1
.
1
Compatible programming languages
1
.
2
API functionality
1
.
3
The optimization problem
1
.
3
.
1
Linear optimization
1
.
3
.
2
Conic optimization
1
.
3
.
3
Nonlinear optimization
1
.
3
.
3
.
1
Assumptions about a nonlinear optimization problem
1
.
3
.
4
Integer optimization
1
.
4
Naming convention and data structures
1
.
5
The optimization task
1
.
6
Conventions used in the API
1
.
6
.
1
Prefix
1
.
6
.
2
Response value
1
.
7
Type definitions
1
.
8
Function definitions
1
.
8
.
1
An example description
2
. Functions
2
.
1
MSK_append
2
.
2
MSK_appendcone
2
.
3
MSK_appendcons
2
.
4
MSK_appendstat
2
.
5
MSK_appendvars
2
.
6
MSK_bktostr
2
.
7
MSK_callocdbgenv
2
.
8
MSK_callocdbgtask
2
.
9
MSK_callocenv
2
.
10
MSK_calloctask
2
.
11
MSK_checkconvexity
2
.
12
MSK_checkmemenv
2
.
13
MSK_checkmemtask
2
.
14
MSK_checkversion
2
.
15
MSK_chgbound
2
.
16
MSK_clonetask
2
.
17
MSK_conetypetostr
2
.
18
MSK_deleteenv
2
.
19
MSK_deletefile
2
.
20
MSK_deletesolution
2
.
21
MSK_deletetask
2
.
22
MSK_dualsensitivity
2
.
23
MSK_echocodeenv
2
.
24
MSK_echocodetask
2
.
25
MSK_echoenv
2
.
26
MSK_echointro
2
.
27
MSK_echotask
2
.
28
MSK_freedbgenv
2
.
29
MSK_freedbgtask
2
.
30
MSK_freeenv
2
.
31
MSK_freetask
2
.
32
MSK_getaij
2
.
33
MSK_getapiecenumnz
2
.
34
MSK_getaslice
2
.
35
MSK_getaslicenumnz
2
.
36
MSK_getaslicetrip
2
.
37
MSK_getavec
2
.
38
MSK_getavecnumnz
2
.
39
MSK_getbound
2
.
40
MSK_getboundslice
2
.
41
MSK_getbuildinfo
2
.
42
MSK_getc
2
.
43
MSK_getcallbackfunc
2
.
44
MSK_getcfix
2
.
45
MSK_getcodedisc
2
.
46
MSK_getcone
2
.
47
MSK_getconeinfo
2
.
48
MSK_getcslice
2
.
49
MSK_getdouinf
2
.
50
MSK_getdouparam
2
.
51
MSK_getdualobj
2
.
52
MSK_getenv
2
.
53
MSK_getglbdllname
2
.
54
MSK_getinfeasiblesubproblem
2
.
55
MSK_getinfindex
2
.
56
MSK_getinfmax
2
.
57
MSK_getinfname
2
.
58
MSK_getintinf
2
.
59
MSK_getintparam
2
.
60
MSK_getmaxnamelen
2
.
61
MSK_getmaxnumanz
2
.
62
MSK_getmaxnumcon
2
.
63
MSK_getmaxnumcone
2
.
64
MSK_getmaxnumqnz
2
.
65
MSK_getmaxnumvar
2
.
66
MSK_getmemusagetask
2
.
67
MSK_getnadouinf
2
.
68
MSK_getnadouparam
2
.
69
MSK_getnaintinf
2
.
70
MSK_getnaintparam
2
.
71
MSK_getname
2
.
72
MSK_getnameindex
2
.
73
MSK_getnastrparam
2
.
74
MSK_getnastrparamal
2
.
75
MSK_getnlfunc
2
.
76
MSK_getnumanz
2
.
77
MSK_getnumcon
2
.
78
MSK_getnumcone
2
.
79
MSK_getnumconemem
2
.
80
MSK_getnumintvar
2
.
81
MSK_getnumparam
2
.
82
MSK_getnumqconnz
2
.
83
MSK_getnumqobjnz
2
.
84
MSK_getnumvar
2
.
85
MSK_getobjname
2
.
86
MSK_getparammax
2
.
87
MSK_getparamname
2
.
88
MSK_getprimalobj
2
.
89
MSK_getprobtype
2
.
90
MSK_getqconk
2
.
91
MSK_getqobj
2
.
92
MSK_getqobjij
2
.
93
MSK_getresponseclass
2
.
94
MSK_getsolution
2
.
95
MSK_getsolutioni
2
.
96
MSK_getsolutionincallback
2
.
97
MSK_getsolutioninf
2
.
98
MSK_getsolutionslice
2
.
99
MSK_getsolutionstatus
2
.
100
MSK_getstrparam
2
.
101
MSK_getstrparamal
2
.
102
MSK_getsymbcon
2
.
103
MSK_getsymbcondim
2
.
104
MSK_gettaskname
2
.
105
MSK_getvartype
2
.
106
MSK_getvartypelist
2
.
107
MSK_getversion
2
.
108
MSK_initbasissolve
2
.
109
MSK_initenv
2
.
110
MSK_inputdata
2
.
111
MSK_iparvaltosymnam
2
.
112
MSK_isdouparname
2
.
113
MSK_isintparname
2
.
114
MSK_isstrparname
2
.
115
MSK_linkfiletoenvstream
2
.
116
MSK_linkfiletotaskstream
2
.
117
MSK_linkfunctoenvstream
2
.
118
MSK_linkfunctotaskstream
2
.
119
MSK_makeemptytask
2
.
120
MSK_makeenv
2
.
121
MSK_makefile
2
.
122
MSK_makefilechar
2
.
123
MSK_makesolutionstatusunknown
2
.
124
MSK_maketask
2
.
125
MSK_optimize
2
.
126
MSK_optimizeconcurrent
2
.
127
MSK_primalsensitivity
2
.
128
MSK_printdata
2
.
129
MSK_printparam
2
.
130
MSK_probtypetostr
2
.
131
MSK_prostatostr
2
.
132
MSK_putaij
2
.
133
MSK_putaijlist
2
.
134
MSK_putavec
2
.
135
MSK_putaveclist
2
.
136
MSK_putbound
2
.
137
MSK_putboundlist
2
.
138
MSK_putboundslice
2
.
139
MSK_putcallbackfunc
2
.
140
MSK_putcfix
2
.
141
MSK_putcj
2
.
142
MSK_putclist
2
.
143
MSK_putcone
2
.
144
MSK_putcpudefaults
2
.
145
MSK_putctrlcfunc
2
.
146
MSK_putdllpath
2
.
147
MSK_putdouparam
2
.
148
MSK_putexitfunc
2
.
149
MSK_putfilecompression
2
.
150
MSK_putfileiomode
2
.
151
MSK_putintparam
2
.
152
MSK_putkeepdlls
2
.
153
MSK_putlicensedefaults
2
.
154
MSK_putmaxnumanz
2
.
155
MSK_putmaxnumcon
2
.
156
MSK_putmaxnumcone
2
.
157
MSK_putmaxnumqnz
2
.
158
MSK_putmaxnumvar
2
.
159
MSK_putnadouparam
2
.
160
MSK_putnaintparam
2
.
161
MSK_putname
2
.
162
MSK_putnastrparam
2
.
163
MSK_putnlfunc
2
.
164
MSK_putobjname
2
.
165
MSK_putparam
2
.
166
MSK_putqcon
2
.
167
MSK_putqconk
2
.
168
MSK_putqobj
2
.
169
MSK_putqobjij
2
.
170
MSK_putsolution
2
.
171
MSK_putsolutioni
2
.
172
MSK_putsolutionyi
2
.
173
MSK_putstrparam
2
.
174
MSK_puttaskname
2
.
175
MSK_putvartype
2
.
176
MSK_putvartypelist
2
.
177
MSK_readdata
2
.
178
MSK_readdatafile
2
.
179
MSK_readparamfile
2
.
180
MSK_readsolution
2
.
181
MSK_readsummary
2
.
182
MSK_relaxprimal
2
.
183
MSK_remove
2
.
184
MSK_removecone
2
.
185
MSK_replacefileext
2
.
186
MSK_resizetask
2
.
187
MSK_sensitivityreport
2
.
188
MSK_setdefaults
2
.
189
MSK_sktostr
2
.
190
MSK_solstatostr
2
.
191
MSK_solutiondef
2
.
192
MSK_solutionsummary
2
.
193
MSK_solvewithbasis
2
.
194
MSK_startstat
2
.
195
MSK_stopstat
2
.
196
MSK_strdupdbgenv
2
.
197
MSK_strdupdbgtask
2
.
198
MSK_strdupenv
2
.
199
MSK_strduptask
2
.
200
MSK_strtoconetype
2
.
201
MSK_strtosk
2
.
202
MSK_symnamtovalue
2
.
203
MSK_undefsolution
2
.
204
MSK_unlinkfuncfromenvstream
2
.
205
MSK_unlinkfuncfromtaskstream
2
.
206
MSK_whichparam
2
.
207
MSK_writedata
2
.
208
MSK_writedatafile
2
.
209
MSK_writeparamfile
2
.
210
MSK_writesolution
A. Parameters reference
A.
1
A brief summary of all parameters
A.
2
A detailed explanation of all parameters
B. Symbolic constants reference
B.
1
Constraint or variable access modes
B.
2
Basis identification
B.
3
Bound keys
B.
4
Progress call-back codes
B.
5
CPU type
B.
6
Compression types
B.
7
Cone types
B.
8
CPU type
B.
9
Data format types
B.
10
Double information items
B.
11
Double parameters
B.
12
Double values
B.
13
Feasibility repair types
B.
14
Integer information items
B.
15
Information item types
B.
16
Input/output modes
B.
17
Integer parameters
B.
18
Mixed integer optimization branching type
B.
19
Contious mixed integer solution type
B.
20
Integer restrictions
B.
21
Mixed integer node selection types
B.
22
MPS file format type
B.
23
Message keys
B.
24
Objective sense types
B.
25
On/off
B.
26
Optimizer types
B.
27
Ordering strategy
B.
28
Parameter type
B.
29
Problem data items
B.
30
Problem types
B.
31
Problem status keys
B.
32
Interpretation of quadratic terms in MPS files
B.
33
Response codes
B.
34
Response code type
B.
35
Scaling type
B.
36
Sensitivity types
B.
37
Simplex selection strategy
B.
38
Solution items
B.
39
Solution status keys
B.
40
Solution types
B.
41
Solve primal or dual
B.
42
String parameter types
B.
43
Status keys
B.
44
Starting point types
B.
45
Stream types
B.
46
Integer values
B.
47
Variable types
C. Error strings