The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek

25.11.2015 Views

344 APPENDIX A. API REFERENCE A.2.241 Task.putvarbranchorder() Task.putvarbranchorder( j, priority, direction) Assigns a branching priority and direction to a variable. Arguments direction : branchdir Specifies the preferred branching direction for variable j. j : int Index of the variable. priority : int The branching priority that should be assigned to variable j. Description: The purpose of the function is to assign a branching priority and direction. The higher priority that is assigned to an integer variable the earlier the mixed integer optimizer will branch on the variable. The branching direction controls if the optimizer branches up or down on the variable. A.2.242 Task.putvarname() Task.putvarname( j, name) Puts the name of a variable. Arguments j : int Index of the variable. name : str The variable name. Description: Puts the name of a variable.

A.2. CLASS TASK 345 A.2.243 Task.putvartype() Task.putvartype( j, vartype) Sets the variable type of one variable. Arguments j : int Index of the variable. vartype : variabletype The new variable type. Description: Sets the variable type of one variable. See also • Task.putvartypelist Sets the variable type for one or more variables. A.2.244 Task.putvartypelist() Task.putvartypelist( subj, vartype) Sets the variable type for one or more variables. Arguments subj : int[] A list of variable indexes for which the variable type should be changed. vartype : variabletype A list of variable types that should be assigned to the variables specified by subj. section variabletype for the possible values of vartype. See Description: See also Sets the variable type for one or more variables, i.e. variable number subj[k] is assigned the variable type vartype[k]. If the same index is specified multiple times in subj only the last entry takes effect. • Task.putvartype Sets the variable type of one variable.

A.2. CLASS TASK 345<br />

A.2.243<br />

Task.putvartype()<br />

Task.putvartype(<br />

j,<br />

vartype)<br />

Sets the variable type of one variable.<br />

Arguments<br />

j : int<br />

Index of the variable.<br />

vartype : variabletype<br />

<strong>The</strong> new variable type.<br />

Description:<br />

Sets the variable type of one variable.<br />

See also<br />

• Task.putvartypelist Sets the variable type for one or more variables.<br />

A.2.244<br />

Task.putvartypelist()<br />

Task.putvartypelist(<br />

subj,<br />

vartype)<br />

Sets the variable type for one or more variables.<br />

Arguments<br />

subj : int[]<br />

A list of variable indexes for which the variable type should be changed.<br />

vartype : variabletype<br />

A list of variable types that should be assigned to the variables specified by subj.<br />

section variabletype for the possible values of vartype.<br />

See<br />

Description:<br />

See also<br />

Sets the variable type for one or more variables, i.e. variable number subj[k] is assigned the<br />

variable type vartype[k].<br />

If the same index is specified multiple times in subj only the last entry takes effect.<br />

• Task.putvartype Sets the variable type of one variable.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!