The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
286 APPENDIX A. API REFERENCE asgn : int Is non-zero if the name somename is assigned to a variable. index : int If the name somename is assigned to a variable, then index is the name of the variable. somename : str The name which should be checked. Description: Checks whether the name somename has been assigned to any variable. If it has been assigned to variable, then index of the variable is reported. A.2.151 Task.getvarnamelen() len = Task.getvarnamelen(i) Obtains the length of a name of a variable variable. Arguments i : int Index. len : int Returns the length of the indicated name. Description: Obtains the length of a name of a variable variable. See also • Task.getbarvarname Obtains a name of a semidefinite variable. A.2.152 Task.getvartype() vartype = Task.getvartype(j) Gets the variable type of one variable. Arguments j : int Index of the variable.
A.2. CLASS TASK 287 vartype : variabletype Variable type of variable j. Description: Gets the variable type of one variable. A.2.153 Task.getvartypelist() Task.getvartypelist( subj, vartype) Obtains the variable type for one or more variables. Arguments subj : int[] A list of variable indexes. vartype : mosek.variabletype[] The variables types corresponding to the variables specified by subj. Description: Obtains the variable type of one or more variables. Upon return vartype[k] is the variable type of variable subj[k]. A.2.154 Task.getxc() Task.getxc( whichsol, xc) Obtains the xc vector for a solution. Arguments whichsol : soltype Selects a solution. xc : double[] The x c vector. Description: Obtains the x c vector for a solution.
- Page 257 and 258: A.2. CLASS TASK 235 Description: Ob
- Page 259 and 260: A.2. CLASS TASK 237 sub : int[] Ind
- Page 261 and 262: A.2. CLASS TASK 239 A.2.64 Task.get
- Page 263 and 264: A.2. CLASS TASK 241 Computes the vi
- Page 265 and 266: A.2. CLASS TASK 243 A.2.71 Task.get
- Page 267 and 268: A.2. CLASS TASK 245 A.2.75 Task.get
- Page 269 and 270: A.2. CLASS TASK 247 A.2.80 Task.get
- Page 271 and 272: A.2. CLASS TASK 249 A.2.86 Task.get
- Page 273 and 274: A.2. CLASS TASK 251 A.2.92 Task.get
- Page 275 and 276: A.2. CLASS TASK 253 k : int Index o
- Page 277 and 278: A.2. CLASS TASK 255 A.2.103 Task.ge
- Page 279 and 280: A.2. CLASS TASK 257 normalize : int
- Page 281 and 282: A.2. CLASS TASK 259 Description: Le
- Page 283 and 284: A.2. CLASS TASK 261 max(l x j τ
- Page 285 and 286: A.2. CLASS TASK 263 A.2.117 Task.ge
- Page 287 and 288: A.2. CLASS TASK 265 last : int Last
- Page 289 and 290: A.2. CLASS TASK 267 A.2.124 Task.ge
- Page 291 and 292: A.2. CLASS TASK 269 Arguments snx :
- Page 293 and 294: A.2. CLASS TASK 271 slc : double[]
- Page 295 and 296: A.2. CLASS TASK 273 Arguments accmo
- Page 297 and 298: A.2. CLASS TASK 275 A.2.133 Task.ge
- Page 299 and 300: A.2. CLASS TASK 277 last : int Valu
- Page 301 and 302: A.2. CLASS TASK 279 subi : int[] Ro
- Page 303 and 304: A.2. CLASS TASK 281 Description: Ob
- Page 305 and 306: A.2. CLASS TASK 283 Arguments taskn
- Page 307: A.2. CLASS TASK 285 A.2.148 Task.ge
- Page 311 and 312: A.2. CLASS TASK 289 whichsol : solt
- Page 313 and 314: A.2. CLASS TASK 291 Description: Ob
- Page 315 and 316: A.2. CLASS TASK 293 A.2.162 Task.is
- Page 317 and 318: A.2. CLASS TASK 295 whichstream : s
- Page 319 and 320: A.2. CLASS TASK 297 A.2.170 Task.pr
- Page 321 and 322: A.2. CLASS TASK 299 markj : mark Th
- Page 323 and 324: A.2. CLASS TASK 301 Prints a part o
- Page 325 and 326: A.2. CLASS TASK 303 A.2.175 Task.pu
- Page 327 and 328: A.2. CLASS TASK 305 j : int Index o
- Page 329 and 330: A.2. CLASS TASK 307 A.2.180 Task.pu
- Page 331 and 332: A.2. CLASS TASK 309 Description: Th
- Page 333 and 334: A.2. CLASS TASK 311 A.2.186 Task.pu
- Page 335 and 336: A.2. CLASS TASK 313 Changes the bou
- Page 337 and 338: A.2. CLASS TASK 315 Modifies one li
- Page 339 and 340: A.2. CLASS TASK 317 bkc : boundkey
- Page 341 and 342: A.2. CLASS TASK 319 Arguments j : i
- Page 343 and 344: A.2. CLASS TASK 321 parvalue : int
- Page 345 and 346: A.2. CLASS TASK 323 A.2.207 Task.pu
- Page 347 and 348: A.2. CLASS TASK 325 Sets a string p
- Page 349 and 350: A.2. CLASS TASK 327 Description: Re
- Page 351 and 352: A.2. CLASS TASK 329 qosubj : int[]
- Page 353 and 354: A.2. CLASS TASK 331 Sets the status
- Page 355 and 356: A.2. CLASS TASK 333 A.2.224 Task.pu
- Page 357 and 358: A.2. CLASS TASK 335 Arguments sux :
286 APPENDIX A. <strong>API</strong> REFERENCE<br />
asgn : int<br />
Is non-zero if the name somename is assigned to a variable.<br />
index : int<br />
If the name somename is assigned to a variable, then index is the name of the variable.<br />
somename : str<br />
<strong>The</strong> name which should be checked.<br />
Description:<br />
Checks whether the name somename has been assigned to any variable. If it has been assigned<br />
to variable, then index of the variable is reported.<br />
A.2.151<br />
Task.getvarnamelen()<br />
len = Task.getvarnamelen(i)<br />
Obtains the length of a name of a variable variable.<br />
Arguments<br />
i : int<br />
Index.<br />
len : int<br />
Returns the length of the indicated name.<br />
Description:<br />
Obtains the length of a name of a variable variable.<br />
See also<br />
• Task.getbarvarname Obtains a name of a semidefinite variable.<br />
A.2.152<br />
Task.getvartype()<br />
vartype = Task.getvartype(j)<br />
Gets the variable type of one variable.<br />
Arguments<br />
j : int<br />
Index of the variable.