query stringlengths 9 9.05k | document stringlengths 10 222k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Obtains a slice of the xc vector for a solution. getxcslice(self,whichsol_,first_,last_,xc_) | def getxcslice(self,whichsol_,first_,last_,xc_):
_xc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and xc_ is not None and len(xc_) != ((last_) - (first_)):
raise ValueError("Array argument xc is not long enough: Is %d, expected %d" % (len(xc_),((last_) - (first_))))
if isinstance(xc_,n... | [
"def getxcslice(self,whichsol_,first_,last_,xc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_xc = False\n if xc is None:\n xc_ = None\n else:\n try:\n xc_ = memoryview(xc)\n except TypeError:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the xx vector for a solution. getxxslice(self,whichsol_,first_,last_,xx_) | def getxxslice(self,whichsol_,first_,last_,xx_):
_xx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and xx_ is not None and len(xx_) != ((last_) - (first_)):
raise ValueError("Array argument xx is not long enough: Is %d, expected %d" % (len(xx_),((last_) - (first_))))
if isinstance(xx_,n... | [
"def getxxslice(self,whichsol_,first_,last_,xx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_xx = False\n if xx is None:\n xx_ = None\n else:\n try:\n xx_ = memoryview(xx)\n except TypeError:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the y vector for a solution. getyslice(self,whichsol_,first_,last_,y_) | def getyslice(self,whichsol_,first_,last_,y_):
_y_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and y_ is not None and len(y_) != ((last_) - (first_)):
raise ValueError("Array argument y is not long enough: Is %d, expected %d" % (len(y_),((last_) - (first_))))
if isinstance(y_,numpy.nda... | [
"def getyslice(self,whichsol_,first_,last_,y): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_y = False\n if y is None:\n y_ = None\n else:\n try:\n y_ = memoryview(y)\n except TypeError:\n try:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the slc vector for a solution. getslcslice(self,whichsol_,first_,last_,slc_) | def getslcslice(self,whichsol_,first_,last_,slc_):
_slc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and slc_ is not None and len(slc_) != ((last_) - (first_)):
raise ValueError("Array argument slc is not long enough: Is %d, expected %d" % (len(slc_),((last_) - (first_))))
if isinstanc... | [
"def getslcslice(self,whichsol_,first_,last_,slc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_slc = False\n if slc is None:\n slc_ = None\n else:\n try:\n slc_ = memoryview(slc)\n except TypeError:\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the suc vector for a solution. getsucslice(self,whichsol_,first_,last_,suc_) | def getsucslice(self,whichsol_,first_,last_,suc_):
_suc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and suc_ is not None and len(suc_) != ((last_) - (first_)):
raise ValueError("Array argument suc is not long enough: Is %d, expected %d" % (len(suc_),((last_) - (first_))))
if isinstanc... | [
"def getsucslice(self,whichsol_,first_,last_,suc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_suc = False\n if suc is None:\n suc_ = None\n else:\n try:\n suc_ = memoryview(suc)\n except TypeError:\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the slx vector for a solution. getslxslice(self,whichsol_,first_,last_,slx_) | def getslxslice(self,whichsol_,first_,last_,slx_):
_slx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and slx_ is not None and len(slx_) != ((last_) - (first_)):
raise ValueError("Array argument slx is not long enough: Is %d, expected %d" % (len(slx_),((last_) - (first_))))
if isinstanc... | [
"def getslxslice(self,whichsol_,first_,last_,slx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_slx = False\n if slx is None:\n slx_ = None\n else:\n try:\n slx_ = memoryview(slx)\n except TypeError:\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the sux vector for a solution. getsuxslice(self,whichsol_,first_,last_,sux_) | def getsuxslice(self,whichsol_,first_,last_,sux_):
_sux_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and sux_ is not None and len(sux_) != ((last_) - (first_)):
raise ValueError("Array argument sux is not long enough: Is %d, expected %d" % (len(sux_),((last_) - (first_))))
if isinstanc... | [
"def getsuxslice(self,whichsol_,first_,last_,sux): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_sux = False\n if sux is None:\n sux_ = None\n else:\n try:\n sux_ = memoryview(sux)\n except TypeError:\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the snx vector for a solution. getsnxslice(self,whichsol_,first_,last_,snx_) | def getsnxslice(self,whichsol_,first_,last_,snx_):
_snx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and snx_ is not None and len(snx_) != ((last_) - (first_)):
raise ValueError("Array argument snx is not long enough: Is %d, expected %d" % (len(snx_),((last_) - (first_))))
if isinstanc... | [
"def getsnxslice(self,whichsol_,first_,last_,snx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_snx = False\n if snx is None:\n snx_ = None\n else:\n try:\n snx_ = memoryview(snx)\n except TypeError:\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the primal solution for a semidefinite variable. getbarxj(self,whichsol_,j_,barxj_) | def getbarxj(self,whichsol_,j_,barxj_):
_barxj_minlength = self.getlenbarvarj((j_))
if self.getlenbarvarj((j_)) > 0 and barxj_ is not None and len(barxj_) != self.getlenbarvarj((j_)):
raise ValueError("Array argument barxj is not long enough: Is %d, expected %d" % (len(barxj_),self.getlenbarvarj((j_))))
... | [
"def getbarxj(self,whichsol_,j_,barxj): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if barxj is None: raise TypeError(\"Invalid type for argument barxj\")\n _copyback_barxj = False\n if barxj is None:\n barxj_ = None\n else:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the primal solution for a sequence of semidefinite variables. getbarxslice(self,whichsol_,first_,last_,slicesize_,barxslice_) | def getbarxslice(self,whichsol_,first_,last_,slicesize_,barxslice_):
_barxslice_minlength = (slicesize_)
if (slicesize_) > 0 and barxslice_ is not None and len(barxslice_) != (slicesize_):
raise ValueError("Array argument barxslice is not long enough: Is %d, expected %d" % (len(barxslice_),(slicesize_)))
... | [
"def getbarsslice(self,whichsol_,first_,last_,slicesize_,barsslice_):\n _barsslice_minlength = (slicesize_)\n if (slicesize_) > 0 and barsslice_ is not None and len(barsslice_) != (slicesize_):\n raise ValueError(\"Array argument barsslice is not long enough: Is %d, expected %d\" % (len(barsslice_),(slic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the dual solution for a semidefinite variable. getbarsj(self,whichsol_,j_,barsj_) | def getbarsj(self,whichsol_,j_,barsj_):
_barsj_minlength = self.getlenbarvarj((j_))
if self.getlenbarvarj((j_)) > 0 and barsj_ is not None and len(barsj_) != self.getlenbarvarj((j_)):
raise ValueError("Array argument barsj is not long enough: Is %d, expected %d" % (len(barsj_),self.getlenbarvarj((j_))))
... | [
"def getbarsj(self,whichsol_,j_,barsj): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if barsj is None: raise TypeError(\"Invalid type for argument barsj\")\n _copyback_barsj = False\n if barsj is None:\n barsj_ = None\n else:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the dual solution for a sequence of semidefinite variables. getbarsslice(self,whichsol_,first_,last_,slicesize_,barsslice_) | def getbarsslice(self,whichsol_,first_,last_,slicesize_,barsslice_):
_barsslice_minlength = (slicesize_)
if (slicesize_) > 0 and barsslice_ is not None and len(barsslice_) != (slicesize_):
raise ValueError("Array argument barsslice is not long enough: Is %d, expected %d" % (len(barsslice_),(slicesize_)))
... | [
"def getbarxslice(self,whichsol_,first_,last_,slicesize_,barxslice_):\n _barxslice_minlength = (slicesize_)\n if (slicesize_) > 0 and barxslice_ is not None and len(barxslice_) != (slicesize_):\n raise ValueError(\"Array argument barxslice is not long enough: Is %d, expected %d\" % (len(barxslice_),(slic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the status keys for the constraints. putskc(self,whichsol_,skc_) | def putskc(self,whichsol_,skc_):
_skc_minlength = self.getnumcon()
if self.getnumcon() > 0 and skc_ is not None and len(skc_) != self.getnumcon():
raise ValueError("Array argument skc is not long enough: Is %d, expected %d" % (len(skc_),self.getnumcon()))
if skc_ is None:
raise ValueError("Argum... | [
"def putskc(self,whichsol_,skc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if skc is None: raise TypeError(\"Invalid type for argument skc\")\n if skc is None:\n skc_ = None\n else:\n try:\n skc_ = memoryview(skc)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the status keys for the scalar variables. putskx(self,whichsol_,skx_) | def putskx(self,whichsol_,skx_):
_skx_minlength = self.getnumvar()
if self.getnumvar() > 0 and skx_ is not None and len(skx_) != self.getnumvar():
raise ValueError("Array argument skx is not long enough: Is %d, expected %d" % (len(skx_),self.getnumvar()))
if skx_ is None:
raise ValueError("Argum... | [
"def putskx(self,whichsol_,skx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if skx is None: raise TypeError(\"Invalid type for argument skx\")\n if skx is None:\n skx_ = None\n else:\n try:\n skx_ = memoryview(skx)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the xc vector for a solution. putxc(self,whichsol_,xc_) | def putxc(self,whichsol_,xc_):
_xc_minlength = self.getnumcon()
if self.getnumcon() > 0 and xc_ is not None and len(xc_) != self.getnumcon():
raise ValueError("Array argument xc is not long enough: Is %d, expected %d" % (len(xc_),self.getnumcon()))
if isinstance(xc_,numpy.ndarray) and not xc_.flags.wr... | [
"def putxc(self,whichsol_,xc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if xc is None: raise TypeError(\"Invalid type for argument xc\")\n _copyback_xc = False\n if xc is None:\n xc_ = None\n else:\n try:\n xc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the xx vector for a solution. putxx(self,whichsol_,xx_) | def putxx(self,whichsol_,xx_):
_xx_minlength = self.getnumvar()
if self.getnumvar() > 0 and xx_ is not None and len(xx_) != self.getnumvar():
raise ValueError("Array argument xx is not long enough: Is %d, expected %d" % (len(xx_),self.getnumvar()))
if xx_ is None:
raise ValueError("Argument xx c... | [
"def putxx(self,whichsol_,xx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if xx is None: raise TypeError(\"Invalid type for argument xx\")\n if xx is None:\n xx_ = None\n else:\n try:\n xx_ = memoryview(xx)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the y vector for a solution. puty(self,whichsol_,y_) | def puty(self,whichsol_,y_):
_y_minlength = self.getnumcon()
if self.getnumcon() > 0 and y_ is not None and len(y_) != self.getnumcon():
raise ValueError("Array argument y is not long enough: Is %d, expected %d" % (len(y_),self.getnumcon()))
if y_ is None:
raise ValueError("Argument y cannot be ... | [
"def puty(self,whichsol_,y): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if y is None: raise TypeError(\"Invalid type for argument y\")\n if y is None:\n y_ = None\n else:\n try:\n y_ = memoryview(y)\n except T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the slc vector for a solution. putslc(self,whichsol_,slc_) | def putslc(self,whichsol_,slc_):
_slc_minlength = self.getnumcon()
if self.getnumcon() > 0 and slc_ is not None and len(slc_) != self.getnumcon():
raise ValueError("Array argument slc is not long enough: Is %d, expected %d" % (len(slc_),self.getnumcon()))
if slc_ is None:
raise ValueError("Argum... | [
"def putslc(self,whichsol_,slc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slc is None: raise TypeError(\"Invalid type for argument slc\")\n if slc is None:\n slc_ = None\n else:\n try:\n slc_ = memoryview(slc)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the suc vector for a solution. putsuc(self,whichsol_,suc_) | def putsuc(self,whichsol_,suc_):
_suc_minlength = self.getnumcon()
if self.getnumcon() > 0 and suc_ is not None and len(suc_) != self.getnumcon():
raise ValueError("Array argument suc is not long enough: Is %d, expected %d" % (len(suc_),self.getnumcon()))
if suc_ is None:
raise ValueError("Argum... | [
"def putsuc(self,whichsol_,suc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if suc is None: raise TypeError(\"Invalid type for argument suc\")\n if suc is None:\n suc_ = None\n else:\n try:\n suc_ = memoryview(suc)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the slx vector for a solution. putslx(self,whichsol_,slx_) | def putslx(self,whichsol_,slx_):
_slx_minlength = self.getnumvar()
if self.getnumvar() > 0 and slx_ is not None and len(slx_) != self.getnumvar():
raise ValueError("Array argument slx is not long enough: Is %d, expected %d" % (len(slx_),self.getnumvar()))
if slx_ is None:
raise ValueError("Argum... | [
"def putslx(self,whichsol_,slx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slx is None: raise TypeError(\"Invalid type for argument slx\")\n if slx is None:\n slx_ = None\n else:\n try:\n slx_ = memoryview(slx)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the sux vector for a solution. putsux(self,whichsol_,sux_) | def putsux(self,whichsol_,sux_):
_sux_minlength = self.getnumvar()
if self.getnumvar() > 0 and sux_ is not None and len(sux_) != self.getnumvar():
raise ValueError("Array argument sux is not long enough: Is %d, expected %d" % (len(sux_),self.getnumvar()))
if sux_ is None:
raise ValueError("Argum... | [
"def putsux(self,whichsol_,sux): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if sux is None: raise TypeError(\"Invalid type for argument sux\")\n if sux is None:\n sux_ = None\n else:\n try:\n sux_ = memoryview(sux)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the snx vector for a solution. putsnx(self,whichsol_,sux_) | def putsnx(self,whichsol_,sux_):
_sux_minlength = self.getnumvar()
if self.getnumvar() > 0 and sux_ is not None and len(sux_) != self.getnumvar():
raise ValueError("Array argument sux is not long enough: Is %d, expected %d" % (len(sux_),self.getnumvar()))
if sux_ is None:
raise ValueError("Argum... | [
"def putsnx(self,whichsol_,sux): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if sux is None: raise TypeError(\"Invalid type for argument sux\")\n if sux is None:\n sux_ = None\n else:\n try:\n sux_ = memoryview(sux)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the status keys for a slice of the constraints. putskcslice(self,whichsol_,first_,last_,skc_) | def putskcslice(self,whichsol_,first_,last_,skc_):
_skc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and skc_ is not None and len(skc_) != ((last_) - (first_)):
raise ValueError("Array argument skc is not long enough: Is %d, expected %d" % (len(skc_),((last_) - (first_))))
if skc_ is n... | [
"def putskcslice(self,whichsol_,first_,last_,skc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if skc is None:\n skc_ = None\n else:\n try:\n skc_ = memoryview(skc)\n except TypeError:\n try:\n _... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the status keys for a slice of the variables. putskxslice(self,whichsol_,first_,last_,skx_) | def putskxslice(self,whichsol_,first_,last_,skx_):
_skx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and skx_ is not None and len(skx_) != ((last_) - (first_)):
raise ValueError("Array argument skx is not long enough: Is %d, expected %d" % (len(skx_),((last_) - (first_))))
if skx_ is N... | [
"def putskxslice(self,whichsol_,first_,last_,skx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if skx is None: raise TypeError(\"Invalid type for argument skx\")\n if skx is None:\n skx_ = None\n else:\n try:\n skx_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the xc vector for a solution. putxcslice(self,whichsol_,first_,last_,xc_) | def putxcslice(self,whichsol_,first_,last_,xc_):
_xc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and xc_ is not None and len(xc_) != ((last_) - (first_)):
raise ValueError("Array argument xc is not long enough: Is %d, expected %d" % (len(xc_),((last_) - (first_))))
if xc_ is None:
... | [
"def putxcslice(self,whichsol_,first_,last_,xc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if xc is None: raise TypeError(\"Invalid type for argument xc\")\n if xc is None:\n xc_ = None\n else:\n try:\n xc_ = memory... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the xx vector for a solution. putxxslice(self,whichsol_,first_,last_,xx_) | def putxxslice(self,whichsol_,first_,last_,xx_):
_xx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and xx_ is not None and len(xx_) != ((last_) - (first_)):
raise ValueError("Array argument xx is not long enough: Is %d, expected %d" % (len(xx_),((last_) - (first_))))
if xx_ is None:
... | [
"def getxxslice(self,whichsol_,first_,last_,xx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_xx = False\n if xx is None:\n xx_ = None\n else:\n try:\n xx_ = memoryview(xx)\n except TypeError:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the y vector for a solution. putyslice(self,whichsol_,first_,last_,y_) | def putyslice(self,whichsol_,first_,last_,y_):
_y_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and y_ is not None and len(y_) != ((last_) - (first_)):
raise ValueError("Array argument y is not long enough: Is %d, expected %d" % (len(y_),((last_) - (first_))))
if y_ is None:
raise... | [
"def putyslice(self,whichsol_,first_,last_,y): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if y is None: raise TypeError(\"Invalid type for argument y\")\n if y is None:\n y_ = None\n else:\n try:\n y_ = memoryview(y)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the slc vector for a solution. putslcslice(self,whichsol_,first_,last_,slc_) | def putslcslice(self,whichsol_,first_,last_,slc_):
_slc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and slc_ is not None and len(slc_) != ((last_) - (first_)):
raise ValueError("Array argument slc is not long enough: Is %d, expected %d" % (len(slc_),((last_) - (first_))))
if slc_ is N... | [
"def putslcslice(self,whichsol_,first_,last_,slc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slc is None: raise TypeError(\"Invalid type for argument slc\")\n if slc is None:\n slc_ = None\n else:\n try:\n slc_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the suc vector for a solution. putsucslice(self,whichsol_,first_,last_,suc_) | def putsucslice(self,whichsol_,first_,last_,suc_):
_suc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and suc_ is not None and len(suc_) != ((last_) - (first_)):
raise ValueError("Array argument suc is not long enough: Is %d, expected %d" % (len(suc_),((last_) - (first_))))
if suc_ is N... | [
"def putsucslice(self,whichsol_,first_,last_,suc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if suc is None: raise TypeError(\"Invalid type for argument suc\")\n if suc is None:\n suc_ = None\n else:\n try:\n suc_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the slx vector for a solution. putslxslice(self,whichsol_,first_,last_,slx_) | def putslxslice(self,whichsol_,first_,last_,slx_):
_slx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and slx_ is not None and len(slx_) != ((last_) - (first_)):
raise ValueError("Array argument slx is not long enough: Is %d, expected %d" % (len(slx_),((last_) - (first_))))
if slx_ is N... | [
"def putslxslice(self,whichsol_,first_,last_,slx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slx is None: raise TypeError(\"Invalid type for argument slx\")\n if slx is None:\n slx_ = None\n else:\n try:\n slx_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the sux vector for a solution. putsuxslice(self,whichsol_,first_,last_,sux_) | def putsuxslice(self,whichsol_,first_,last_,sux_):
_sux_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and sux_ is not None and len(sux_) != ((last_) - (first_)):
raise ValueError("Array argument sux is not long enough: Is %d, expected %d" % (len(sux_),((last_) - (first_))))
if sux_ is N... | [
"def putsuxslice(self,whichsol_,first_,last_,sux): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if sux is None: raise TypeError(\"Invalid type for argument sux\")\n if sux is None:\n sux_ = None\n else:\n try:\n sux_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a slice of the snx vector for a solution. putsnxslice(self,whichsol_,first_,last_,snx_) | def putsnxslice(self,whichsol_,first_,last_,snx_):
_snx_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and snx_ is not None and len(snx_) != ((last_) - (first_)):
raise ValueError("Array argument snx is not long enough: Is %d, expected %d" % (len(snx_),((last_) - (first_))))
if snx_ is N... | [
"def putsnxslice(self,whichsol_,first_,last_,snx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if snx is None: raise TypeError(\"Invalid type for argument snx\")\n if snx is None:\n snx_ = None\n else:\n try:\n snx_ =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the primal solution for a semidefinite variable. putbarxj(self,whichsol_,j_,barxj_) | def putbarxj(self,whichsol_,j_,barxj_):
_barxj_minlength = self.getlenbarvarj((j_))
if self.getlenbarvarj((j_)) > 0 and barxj_ is not None and len(barxj_) != self.getlenbarvarj((j_)):
raise ValueError("Array argument barxj is not long enough: Is %d, expected %d" % (len(barxj_),self.getlenbarvarj((j_))))
... | [
"def putbarxj(self,whichsol_,j_,barxj): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if barxj is None: raise TypeError(\"Invalid type for argument barxj\")\n if barxj is None:\n barxj_ = None\n else:\n try:\n barxj_ = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the dual solution for a semidefinite variable. putbarsj(self,whichsol_,j_,barsj_) | def putbarsj(self,whichsol_,j_,barsj_):
_barsj_minlength = self.getlenbarvarj((j_))
if self.getlenbarvarj((j_)) > 0 and barsj_ is not None and len(barsj_) != self.getlenbarvarj((j_)):
raise ValueError("Array argument barsj is not long enough: Is %d, expected %d" % (len(barsj_),self.getlenbarvarj((j_))))
... | [
"def putbarsj(self,whichsol_,j_,barsj): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if barsj is None: raise TypeError(\"Invalid type for argument barsj\")\n if barsj is None:\n barsj_ = None\n else:\n try:\n barsj_ = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of a primal solution associated to a constraint. getpviolcon(self,whichsol_,sub_,viol_) | def getpviolcon(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argument ... | [
"def getpviolcon(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of a primal solution for a list of scalar variables. getpviolvar(self,whichsol_,sub_,viol_) | def getpviolvar(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argument ... | [
"def getpviolvar(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of a primal solution for a list of semidefinite variables. getpviolbarvar(self,whichsol_,sub_,viol_) | def getpviolbarvar(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argume... | [
"def getpviolbarvar(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of a solution for set of conic constraints. getpviolcones(self,whichsol_,sub_,viol_) | def getpviolcones(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argumen... | [
"def getpviolcones(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of a dual solution associated with a set of scalar variables. getdviolvar(self,whichsol_,sub_,viol_) | def getdviolvar(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argument ... | [
"def getdviolvar(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the violation of dual solution for a set of semidefinite variables. getdviolbarvar(self,whichsol_,sub_,viol_) | def getdviolbarvar(self,whichsol_,sub_,viol_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("Argume... | [
"def getdviolbarvar(self,whichsol_,sub,viol): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains information about of a solution. getsolutioninfo(self,whichsol_) | def getsolutioninfo(self,whichsol_):
pobj_ = ctypes.c_double()
pviolcon_ = ctypes.c_double()
pviolvar_ = ctypes.c_double()
pviolbarvar_ = ctypes.c_double()
pviolcone_ = ctypes.c_double()
pviolitg_ = ctypes.c_double()
dobj_ = ctypes.c_double()
dviolcon_ = ctypes.c_double()
dviolvar_ =... | [
"def getsolutioninfo(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getsolutioninfo(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _po... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute norms of the dual solution. getdualsolutionnorms(self,whichsol_) | def getdualsolutionnorms(self,whichsol_):
nrmy_ = ctypes.c_double()
nrmslc_ = ctypes.c_double()
nrmsuc_ = ctypes.c_double()
nrmslx_ = ctypes.c_double()
nrmsux_ = ctypes.c_double()
nrmsnx_ = ctypes.c_double()
nrmbars_ = ctypes.c_double()
res = __library__.MSK_XX_getdualsolutionnorms(self.... | [
"def getdualsolutionnorms(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getdualsolutionnorms(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute norms of the primal solution. getprimalsolutionnorms(self,whichsol_) | def getprimalsolutionnorms(self,whichsol_):
nrmxc_ = ctypes.c_double()
nrmxx_ = ctypes.c_double()
nrmbarx_ = ctypes.c_double()
res = __library__.MSK_XX_getprimalsolutionnorms(self.__nativep,whichsol_,ctypes.byref(nrmxc_),ctypes.byref(nrmxx_),ctypes.byref(nrmbarx_))
if res != 0:
_,msg = self.__... | [
"def getprimalsolutionnorms(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getprimalsolutionnorms(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains a slice of the solution. getsolutionslice(self,whichsol_,solitem_,first_,last_,values_) | def getsolutionslice(self,whichsol_,solitem_,first_,last_,values_):
_values_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and values_ is not None and len(values_) != ((last_) - (first_)):
raise ValueError("Array argument values is not long enough: Is %d, expected %d" % (len(values_),((last_... | [
"def getsolutionslice(self,whichsol_,solitem_,first_,last_,values): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if not isinstance(solitem_,solitem): raise TypeError(\"Argument solitem has wrong type\")\n _copyback_values = False\n if values... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the reduced costs for a sequence of variables. getreducedcosts(self,whichsol_,first_,last_,redcosts_) | def getreducedcosts(self,whichsol_,first_,last_,redcosts_):
_redcosts_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and redcosts_ is not None and len(redcosts_) != ((last_) - (first_)):
raise ValueError("Array argument redcosts is not long enough: Is %d, expected %d" % (len(redcosts_),((las... | [
"def getreducedcosts(self,whichsol_,first_,last_,redcosts): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_redcosts = False\n if redcosts is None:\n redcosts_ = None\n else:\n try:\n redcosts_ = memoryview(redc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the value of a string parameter. getstrparam(self,param_) | def getstrparam(self,param_):
maxlen_ = (1 + self.getstrparamlen((param_)))
len_ = ctypes.c_int32()
parvalue_ = (ctypes.c_char * (maxlen_))()
res = __library__.MSK_XX_getstrparam(self.__nativep,param_,maxlen_,ctypes.byref(len_),parvalue_)
if res != 0:
_,msg = self.__getlasterror(res)
rai... | [
"def get_param(self, param):\n return self.params.get(param, None)",
"def getParam(self,param):\n if param in self.params.keys():\n return self.params[param]\n else:\n return None",
"def gui_get_param(self,param_name):\n return self._tkvars[param_name].get()",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the length of a string parameter. getstrparamlen(self,param_) | def getstrparamlen(self,param_):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getstrparamlen(self.__nativep,param_,ctypes.byref(len_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
len_ = len_.value
_len_return_value = len_
return (_len_return_value) | [
"def getstrparamlen(self,param_): # 3\n if not isinstance(param_,sparam): raise TypeError(\"Argument param has wrong type\")\n res,resargs = self.__obj.getstrparamlen(param_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _len_return_value ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the length the task name. gettasknamelen(self) | def gettasknamelen(self):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_gettasknamelen(self.__nativep,ctypes.byref(len_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
len_ = len_.value
_len_return_value = len_
return (_len_return_value) | [
"def gettasknamelen(self): # 3\n res,resargs = self.__obj.gettasknamelen()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _len_return_value = resargs\n return _len_return_value",
"def getobjnamelen(self):\n len_ = ctypes.c_int32()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the variable type of one variable. getvartype(self,j_) | def getvartype(self,j_):
vartype_ = ctypes.c_int32()
res = __library__.MSK_XX_getvartype(self.__nativep,j_,ctypes.byref(vartype_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_vartype_return_value = variabletype(vartype_.value)
return (_vartype_return_valu... | [
"def getvartype(self,j_): # 3\n res,resargs = self.__obj.getvartype(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _vartype_return_value = resargs\n _vartype_return_value = variabletype(_vartype_return_value)\n return _vartype_retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the variable type for one or more variables. getvartypelist(self,subj_,vartype_) | def getvartypelist(self,subj_,vartype_):
num_ = None
if num_ is None:
num_ = len(subj_)
elif num_ != len(subj_):
raise IndexError("Inconsistent length of array subj")
if subj_ is None:
raise ValueError("Argument subj cannot be None")
if subj_ is None:
raise ValueError("Argume... | [
"def getvartypelist(self,subj,vartype): # 3\n num_ = None\n if num_ is None:\n num_ = len(subj)\n elif num_ != len(subj):\n raise IndexError(\"Inconsistent length of array subj\")\n if num_ is None: num_ = 0\n if subj is None: raise TypeError(\"Invalid type for argument subj\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Input the linear part of an optimization task in one function call. inputdata(self,maxnumcon_,maxnumvar_,c_,cfix_,aptrb_,aptre_,asub_,aval_,bkc_,blc_,buc_,bkx_,blx_,bux_) | def inputdata(self,maxnumcon_,maxnumvar_,c_,cfix_,aptrb_,aptre_,asub_,aval_,bkc_,blc_,buc_,bkx_,blx_,bux_):
numcon_ = None
if numcon_ is None:
numcon_ = len(buc_)
elif numcon_ != len(buc_):
raise IndexError("Inconsistent length of array buc")
if numcon_ is None:
numcon_ = len(blc_)
... | [
"def inputdata(self,maxnumcon_,maxnumvar_,c,cfix_,aptrb,aptre,asub,aval,bkc,blc,buc,bkx,blx,bux): # 3\n numcon_ = None\n if numcon_ is None:\n numcon_ = len(buc)\n elif numcon_ != len(buc):\n raise IndexError(\"Inconsistent length of array buc\")\n if numcon_ is None:\n numc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks a double parameter name. isdouparname(self,parname_) | def isdouparname(self,parname_):
if isinstance(parname_,unicode):
parname_ = parname_.encode("utf-8",errors="replace")
param_ = ctypes.c_int32()
res = __library__.MSK_XX_isdouparname(self.__nativep,parname_,ctypes.byref(param_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error... | [
"def isdouparname(self,parname_): # 3\n res,resargs = self.__obj.isdouparname(parname_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _param_return_value = resargs\n _param_return_value = dparam(_param_return_value)\n return _param_re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks an integer parameter name. isintparname(self,parname_) | def isintparname(self,parname_):
if isinstance(parname_,unicode):
parname_ = parname_.encode("utf-8",errors="replace")
param_ = ctypes.c_int32()
res = __library__.MSK_XX_isintparname(self.__nativep,parname_,ctypes.byref(param_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error... | [
"def isintparname(self,parname_): # 3\n res,resargs = self.__obj.isintparname(parname_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _param_return_value = resargs\n _param_return_value = iparam(_param_return_value)\n return _param_re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks a string parameter name. isstrparname(self,parname_) | def isstrparname(self,parname_):
if isinstance(parname_,unicode):
parname_ = parname_.encode("utf-8",errors="replace")
param_ = ctypes.c_int32()
res = __library__.MSK_XX_isstrparname(self.__nativep,parname_,ctypes.byref(param_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error... | [
"def isstrparname(self,parname_): # 3\n res,resargs = self.__obj.isstrparname(parname_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _param_return_value = resargs\n _param_return_value = sparam(_param_return_value)\n return _param_re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Directs all output from a task stream to a file. linkfiletostream(self,whichstream_,filename_,append_) | def linkfiletostream(self,whichstream_,filename_,append_):
if isinstance(filename_,unicode):
filename_ = filename_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_linkfiletotaskstream(self.__nativep,whichstream_,filename_,append_)
if res != 0:
_,msg = self.__getlasterror(res)
rai... | [
"def linkfiletostream(self,whichstream_,filename_,append_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n res = self.__obj.linkfiletotaskstream(whichstream_,filename_,append_)\n if res != 0:\n result,msg = self.__getlasterror(res)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Repairs a primal infeasible optimization problem by adjusting the bounds on the constraints and variables. primalrepair(self,wlc_,wuc_,wlx_,wux_) | def primalrepair(self,wlc_,wuc_,wlx_,wux_):
_wlc_minlength = self.getnumcon()
if self.getnumcon() > 0 and wlc_ is not None and len(wlc_) != self.getnumcon():
raise ValueError("Array argument wlc is not long enough: Is %d, expected %d" % (len(wlc_),self.getnumcon()))
if isinstance(wlc_, numpy.ndarray) ... | [
"def primalrepair(self,wlc,wuc,wlx,wux): # 3\n if wlc is None:\n wlc_ = None\n else:\n try:\n wlc_ = memoryview(wlc)\n except TypeError:\n try:\n _tmparr_wlc = array.array(\"d\",wlc)\n except TypeError:\n raise TypeError(\"Argument wlc ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Commits all cached problem changes. commitchanges(self) | def commitchanges(self):
res = __library__.MSK_XX_commitchanges(self.__nativep)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def commitchanges(self): # 3\n res = self.__obj.commitchanges()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def commit(self) -> None:\n if self._dirty:\n self._resort()\n self._dirty = False",
"def _Commit(self):... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current A matrix truncation threshold. getatruncatetol(self,tolzero_) | def getatruncatetol(self,tolzero_):
_tolzero_minlength = 1
if 1 > 0 and tolzero_ is not None and len(tolzero_) != 1:
raise ValueError("Array argument tolzero is not long enough: Is %d, expected %d" % (len(tolzero_),1))
if isinstance(tolzero_,numpy.ndarray) and not tolzero_.flags.writeable:
raise... | [
"def putatruncatetol(self,tolzero_):\n res = __library__.MSK_XX_putatruncatetol(self.__nativep,tolzero_)\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def get_abs_tolerance(self):\n\n if Test.global_abs_tolerance is None:\n return self._abs_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Truncates all elements in A below a certain tolerance to zero. putatruncatetol(self,tolzero_) | def putatruncatetol(self,tolzero_):
res = __library__.MSK_XX_putatruncatetol(self.__nativep,tolzero_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def getatruncatetol(self,tolzero_):\n _tolzero_minlength = 1\n if 1 > 0 and tolzero_ is not None and len(tolzero_) != 1:\n raise ValueError(\"Array argument tolzero is not long enough: Is %d, expected %d\" % (len(tolzero_),1))\n if isinstance(tolzero_,numpy.ndarray) and not tolzero_.flags.writeable:\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes a single value in the linear coefficient matrix. putaij(self,i_,j_,aij_) | def putaij(self,i_,j_,aij_):
res = __library__.MSK_XX_putaij(self.__nativep,i_,j_,aij_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putaij(self,i_,j_,aij_): # 3\n res = self.__obj.putaij(i_,j_,aij_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def getaij(self,i_,j_):\n aij_ = ctypes.c_double()\n res = __library__.MSK_XX_getaij(self.__nativep,i_,j_,ctypes.byref(aij... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes one or more coefficients in the linear constraint matrix. putaijlist(self,subi_,subj_,valij_) | def putaijlist(self,subi_,subj_,valij_):
num_ = None
if num_ is None:
num_ = len(subi_)
elif num_ != len(subi_):
raise IndexError("Inconsistent length of array subi")
if num_ is None:
num_ = len(subj_)
elif num_ != len(subj_):
raise IndexError("Inconsistent length of array su... | [
"def putaijlist(self,subi,subj,valij): # 3\n num_ = None\n if num_ is None:\n num_ = len(subi)\n elif num_ != len(subi):\n raise IndexError(\"Inconsistent length of array subi\")\n if num_ is None:\n num_ = len(subj)\n elif num_ != len(subj):\n raise IndexError(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in one column of the linear constraint matrix. putacol(self,j_,subj_,valj_) | def putacol(self,j_,subj_,valj_):
nzj_ = None
if nzj_ is None:
nzj_ = len(subj_)
elif nzj_ != len(subj_):
raise IndexError("Inconsistent length of array subj")
if nzj_ is None:
nzj_ = len(valj_)
elif nzj_ != len(valj_):
raise IndexError("Inconsistent length of array valj")
... | [
"def putacol(self,j_,subj,valj): # 3\n nzj_ = None\n if nzj_ is None:\n nzj_ = len(subj)\n elif nzj_ != len(subj):\n raise IndexError(\"Inconsistent length of array subj\")\n if nzj_ is None:\n nzj_ = len(valj)\n elif nzj_ != len(valj):\n raise IndexError(\"Incon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in one row of the linear constraint matrix. putarow(self,i_,subi_,vali_) | def putarow(self,i_,subi_,vali_):
nzi_ = None
if nzi_ is None:
nzi_ = len(subi_)
elif nzi_ != len(subi_):
raise IndexError("Inconsistent length of array subi")
if nzi_ is None:
nzi_ = len(vali_)
elif nzi_ != len(vali_):
raise IndexError("Inconsistent length of array vali")
... | [
"def putarow(self,i_,subi,vali): # 3\n nzi_ = None\n if nzi_ is None:\n nzi_ = len(subi)\n elif nzi_ != len(subi):\n raise IndexError(\"Inconsistent length of array subi\")\n if nzi_ is None:\n nzi_ = len(vali)\n elif nzi_ != len(vali):\n raise IndexError(\"Incon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in several rows the linear constraint matrix. putarowslice(self,first_,last_,ptrb_,ptre_,asub_,aval_) | def putarowslice(self,first_,last_,ptrb_,ptre_,asub_,aval_):
_ptrb_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and ptrb_ is not None and len(ptrb_) != ((last_) - (first_)):
raise ValueError("Array argument ptrb is not long enough: Is %d, expected %d" % (len(ptrb_),((last_) - (first_))))
... | [
"def putacolslice(self,first_,last_,ptrb_,ptre_,asub_,aval_):\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb cannot be None\")\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb may not be None\")\n if isinstance(ptrb_, numpy.ndarray) and ptrb_.dtype is numpy.dtype(numpy.int64) and pt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in several rows of the linear constraint matrix. putarowlist(self,sub_,ptrb_,ptre_,asub_,aval_) | def putarowlist(self,sub_,ptrb_,ptre_,asub_,aval_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(ptrb_)
elif num_ != len(ptrb_):
raise IndexError("Inconsistent length of ... | [
"def putacollist(self,sub_,ptrb_,ptre_,asub_,aval_):\n num_ = None\n if num_ is None:\n num_ = len(sub_)\n elif num_ != len(sub_):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(ptrb_)\n elif num_ != len(ptrb_):\n raise IndexError(\"Incons... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in a sequence of columns the linear constraint matrix. putacolslice(self,first_,last_,ptrb_,ptre_,asub_,aval_) | def putacolslice(self,first_,last_,ptrb_,ptre_,asub_,aval_):
if ptrb_ is None:
raise ValueError("Argument ptrb cannot be None")
if ptrb_ is None:
raise ValueError("Argument ptrb may not be None")
if isinstance(ptrb_, numpy.ndarray) and ptrb_.dtype is numpy.dtype(numpy.int64) and ptrb_.flags.cont... | [
"def putacolslice(self,first_,last_,ptrb,ptre,asub,aval): # 3\n if ptrb is None: raise TypeError(\"Invalid type for argument ptrb\")\n if ptrb is None:\n ptrb_ = None\n else:\n try:\n ptrb_ = memoryview(ptrb)\n except TypeError:\n try:\n _tmparr_ptrb ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces all elements in several columns the linear constraint matrix. putacollist(self,sub_,ptrb_,ptre_,asub_,aval_) | def putacollist(self,sub_,ptrb_,ptre_,asub_,aval_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(ptrb_)
elif num_ != len(ptrb_):
raise IndexError("Inconsistent length of ... | [
"def putacollist(self,sub,ptrb,ptre,asub,aval): # 3\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(ptrb)\n elif num_ != len(ptrb):\n raise IndexE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inputs an element of barA. putbaraij(self,i_,j_,sub_,weights_) | def putbaraij(self,i_,j_,sub_,weights_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(weights_)
elif num_ != len(weights_):
raise IndexError("Inconsistent length of array... | [
"def putbaraij(self,i_,j_,sub,weights): # 3\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(weights)\n elif num_ != len(weights):\n raise IndexErr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inputs list of elements of barA. putbaraijlist(self,subi_,subj_,alphaptrb_,alphaptre_,matidx_,weights_) | def putbaraijlist(self,subi_,subj_,alphaptrb_,alphaptre_,matidx_,weights_):
num_ = None
if num_ is None:
num_ = len(subi_)
elif num_ != len(subi_):
raise IndexError("Inconsistent length of array subi")
if num_ is None:
num_ = len(subj_)
elif num_ != len(subj_):
raise IndexErr... | [
"def putbaraij(self,i_,j_,sub,weights): # 3\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(weights)\n elif num_ != len(weights):\n raise IndexErr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replace a set of rows of barA putbararowlist(self,subi_,ptrb_,ptre_,subj_,nummat_,matidx_,weights_) | def putbararowlist(self,subi_,ptrb_,ptre_,subj_,nummat_,matidx_,weights_):
num_ = None
if num_ is None:
num_ = len(subi_)
elif num_ != len(subi_):
raise IndexError("Inconsistent length of array subi")
if num_ is None:
num_ = len(ptrb_)
elif num_ != len(ptrb_):
raise IndexErro... | [
"def putbaraijlist(self,subi_,subj_,alphaptrb_,alphaptre_,matidx_,weights_):\n num_ = None\n if num_ is None:\n num_ = len(subi_)\n elif num_ != len(subi_):\n raise IndexError(\"Inconsistent length of array subi\")\n if num_ is None:\n num_ = len(subj_)\n elif num_ != len(subj_):\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the number of nonzero elements in barc. getnumbarcnz(self) | def getnumbarcnz(self):
nz_ = ctypes.c_int64()
res = __library__.MSK_XX_getnumbarcnz(self.__nativep,ctypes.byref(nz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
nz_ = nz_.value
_nz_return_value = nz_
return (_nz_return_value) | [
"def getnumbarcnz(self): # 3\n res,resargs = self.__obj.getnumbarcnz()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nz_return_value = resargs\n return _nz_return_value",
"def getnumbaranz(self):\n nz_ = ctypes.c_int64()\n res = _... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the number of nonzero elements in barA. getnumbaranz(self) | def getnumbaranz(self):
nz_ = ctypes.c_int64()
res = __library__.MSK_XX_getnumbaranz(self.__nativep,ctypes.byref(nz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
nz_ = nz_.value
_nz_return_value = nz_
return (_nz_return_value) | [
"def getnumbaranz(self): # 3\n res,resargs = self.__obj.getnumbaranz()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nz_return_value = resargs\n return _nz_return_value",
"def getnumbarcnz(self): # 3\n res,resargs = self.__obj.getn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the positions of the nonzero elements in barc. getbarcsparsity(self,idxj_) | def getbarcsparsity(self,idxj_):
maxnumnz_ = self.getnumbarcnz()
numnz_ = ctypes.c_int64()
_idxj_minlength = (maxnumnz_)
if (maxnumnz_) > 0 and idxj_ is not None and len(idxj_) != (maxnumnz_):
raise ValueError("Array argument idxj is not long enough: Is %d, expected %d" % (len(idxj_),(maxnumnz_)))... | [
"def getbarcsparsity(self,idxj): # 3\n maxnumnz_ = self.getnumbarcnz()\n if idxj is None: raise TypeError(\"Invalid type for argument idxj\")\n _copyback_idxj = False\n if idxj is None:\n idxj_ = None\n else:\n try:\n idxj_ = memoryview(idxj)\n except TypeError... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the sparsity pattern of the barA matrix. getbarasparsity(self,idxij_) | def getbarasparsity(self,idxij_):
maxnumnz_ = self.getnumbaranz()
numnz_ = ctypes.c_int64()
_idxij_minlength = (maxnumnz_)
if (maxnumnz_) > 0 and idxij_ is not None and len(idxij_) != (maxnumnz_):
raise ValueError("Array argument idxij is not long enough: Is %d, expected %d" % (len(idxij_),(maxnum... | [
"def getbarasparsity(self,idxij): # 3\n maxnumnz_ = self.getnumbaranz()\n if idxij is None: raise TypeError(\"Invalid type for argument idxij\")\n _copyback_idxij = False\n if idxij is None:\n idxij_ = None\n else:\n try:\n idxij_ = memoryview(idxij)\n except T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains information about an element in barc. getbarcidxinfo(self,idx_) | def getbarcidxinfo(self,idx_):
num_ = ctypes.c_int64()
res = __library__.MSK_XX_getbarcidxinfo(self.__nativep,idx_,ctypes.byref(num_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
num_ = num_.value
_num_return_value = num_
return (_num_return_value) | [
"def getbarcidxinfo(self,idx_): # 3\n res,resargs = self.__obj.getbarcidxinfo(idx_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _num_return_value = resargs\n return _num_return_value",
"def getbaraidxinfo(self,idx_):\n num_ = ctypes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the row index of an element in barc. getbarcidxj(self,idx_) | def getbarcidxj(self,idx_):
j_ = ctypes.c_int32()
res = __library__.MSK_XX_getbarcidxj(self.__nativep,idx_,ctypes.byref(j_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
j_ = j_.value
_j_return_value = j_
return (_j_return_value) | [
"def getbarcidxj(self,idx_): # 3\n res,resargs = self.__obj.getbarcidxj(idx_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _j_return_value = resargs\n return _j_return_value",
"def getbaraidxij(self,idx_): # 3\n res,resargs = self.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains information about an element in barc. getbarcidx(self,idx_,sub_,weights_) | def getbarcidx(self,idx_,sub_,weights_):
maxnum_ = self.getbarcidxinfo((idx_))
j_ = ctypes.c_int32()
num_ = ctypes.c_int64()
_sub_minlength = (maxnum_)
if (maxnum_) > 0 and sub_ is not None and len(sub_) != (maxnum_):
raise ValueError("Array argument sub is not long enough: Is %d, expected %d"... | [
"def getbarcidx(self,idx_,sub,weights): # 3\n maxnum_ = self.getbarcidxinfo((idx_))\n if sub is None: raise TypeError(\"Invalid type for argument sub\")\n _copyback_sub = False\n if sub is None:\n sub_ = None\n else:\n try:\n sub_ = memoryview(sub)\n except Typ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains the number of terms in the weighted sum that form a particular element in barA. getbaraidxinfo(self,idx_) | def getbaraidxinfo(self,idx_):
num_ = ctypes.c_int64()
res = __library__.MSK_XX_getbaraidxinfo(self.__nativep,idx_,ctypes.byref(num_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
num_ = num_.value
_num_return_value = num_
return (_num_return_value) | [
"def getbaraidxinfo(self,idx_): # 3\n res,resargs = self.__obj.getbaraidxinfo(idx_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _num_return_value = resargs\n return _num_return_value",
"def getbarcidxinfo(self,idx_): # 3\n res,res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains information about an element in barA. getbaraidxij(self,idx_) | def getbaraidxij(self,idx_):
i_ = ctypes.c_int32()
j_ = ctypes.c_int32()
res = __library__.MSK_XX_getbaraidxij(self.__nativep,idx_,ctypes.byref(i_),ctypes.byref(j_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
i_ = i_.value
_i_return_value = i_
j_ ... | [
"def getbaraidxij(self,idx_): # 3\n res,resargs = self.__obj.getbaraidxij(idx_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _i_return_value,_j_return_value = resargs\n return _i_return_value,_j_return_value",
"def getbaraidxinfo(self,i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains information about an element in barA. getbaraidx(self,idx_,sub_,weights_) | def getbaraidx(self,idx_,sub_,weights_):
maxnum_ = self.getbaraidxinfo((idx_))
i_ = ctypes.c_int32()
j_ = ctypes.c_int32()
num_ = ctypes.c_int64()
_sub_minlength = (maxnum_)
if (maxnum_) > 0 and sub_ is not None and len(sub_) != (maxnum_):
raise ValueError("Array argument sub is not long e... | [
"def getbaraidx(self,idx_,sub,weights): # 3\n maxnum_ = self.getbaraidxinfo((idx_))\n if sub is None: raise TypeError(\"Invalid type for argument sub\")\n _copyback_sub = False\n if sub is None:\n sub_ = None\n else:\n try:\n sub_ = memoryview(sub)\n except Typ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains an upper bound on the number of elements in the block triplet form of barc. getnumbarcblocktriplets(self) | def getnumbarcblocktriplets(self):
num_ = ctypes.c_int64()
res = __library__.MSK_XX_getnumbarcblocktriplets(self.__nativep,ctypes.byref(num_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
num_ = num_.value
_num_return_value = num_
return (_num_return_va... | [
"def getnumbarcblocktriplets(self): # 3\n res,resargs = self.__obj.getnumbarcblocktriplets()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _num_return_value = resargs\n return _num_return_value",
"def getnumbarablocktriplets(self): # 3\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inputs barC in block triplet form. putbarcblocktriplet(self,num_,subj_,subk_,subl_,valjkl_) | def putbarcblocktriplet(self,num_,subj_,subk_,subl_,valjkl_):
_subj_minlength = (num_)
if (num_) > 0 and subj_ is not None and len(subj_) != (num_):
raise ValueError("Array argument subj is not long enough: Is %d, expected %d" % (len(subj_),(num_)))
if subj_ is None:
raise ValueError("Argument s... | [
"def putbarcblocktriplet(self,num_,subj,subk,subl,valjkl): # 3\n if subj is None: raise TypeError(\"Invalid type for argument subj\")\n if subj is None:\n subj_ = None\n else:\n try:\n subj_ = memoryview(subj)\n except TypeError:\n try:\n _tmparr_subj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains barC in block triplet form. getbarcblocktriplet(self,subj_,subk_,subl_,valjkl_) | def getbarcblocktriplet(self,subj_,subk_,subl_,valjkl_):
maxnum_ = self.getnumbarcblocktriplets()
num_ = ctypes.c_int64()
_subj_minlength = (maxnum_)
if (maxnum_) > 0 and subj_ is not None and len(subj_) != (maxnum_):
raise ValueError("Array argument subj is not long enough: Is %d, expected %d" % ... | [
"def getbarcblocktriplet(self,subj,subk,subl,valjkl): # 3\n maxnum_ = self.getnumbarcblocktriplets()\n if subj is None: raise TypeError(\"Invalid type for argument subj\")\n _copyback_subj = False\n if subj is None:\n subj_ = None\n else:\n try:\n subj_ = memoryview(s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtains barA in block triplet form. getbarablocktriplet(self,subi_,subj_,subk_,subl_,valijkl_) | def getbarablocktriplet(self,subi_,subj_,subk_,subl_,valijkl_):
maxnum_ = self.getnumbarablocktriplets()
num_ = ctypes.c_int64()
_subi_minlength = (maxnum_)
if (maxnum_) > 0 and subi_ is not None and len(subi_) != (maxnum_):
raise ValueError("Array argument subi is not long enough: Is %d, expected... | [
"def getbarablocktriplet(self,subi,subj,subk,subl,valijkl): # 3\n maxnum_ = self.getnumbarablocktriplets()\n if subi is None: raise TypeError(\"Invalid type for argument subi\")\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memory... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bound for one constraint. putconbound(self,i_,bkc_,blc_,buc_) | def putconbound(self,i_,bkc_,blc_,buc_):
res = __library__.MSK_XX_putconbound(self.__nativep,i_,bkc_,blc_,buc_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putconbound(self,i_,bk_,bl_,bu_): # 3\n if not isinstance(bk_,boundkey): raise TypeError(\"Argument bk has wrong type\")\n res = self.__obj.putconbound(i_,bk_,bl_,bu_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putbound(self,accm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds of a list of constraints. putconboundlist(self,sub_,bkc_,blc_,buc_) | def putconboundlist(self,sub_,bkc_,blc_,buc_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(bkc_)
elif num_ != len(bkc_):
raise IndexError("Inconsistent length of array b... | [
"def putconboundlistconst(self,sub_,bkc_,blc_,buc_):\n num_ = None\n if num_ is None:\n num_ = len(sub_)\n elif num_ != len(sub_):\n raise IndexError(\"Inconsistent length of array sub\")\n if sub_ is None:\n raise ValueError(\"Argument sub cannot be None\")\n if sub_ is None:\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds of a list of constraints. putconboundlistconst(self,sub_,bkc_,blc_,buc_) | def putconboundlistconst(self,sub_,bkc_,blc_,buc_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("A... | [
"def putconboundlist(self,sub_,bkc_,blc_,buc_):\n num_ = None\n if num_ is None:\n num_ = len(sub_)\n elif num_ != len(sub_):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(bkc_)\n elif num_ != len(bkc_):\n raise IndexError(\"Inconsistent ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds for a slice of the constraints. putconboundslice(self,first_,last_,bkc_,blc_,buc_) | def putconboundslice(self,first_,last_,bkc_,blc_,buc_):
_bkc_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and bkc_ is not None and len(bkc_) != ((last_) - (first_)):
raise ValueError("Array argument bkc is not long enough: Is %d, expected %d" % (len(bkc_),((last_) - (first_))))
if bkc_... | [
"def putconboundsliceconst(self,first_,last_,bkc_,blc_,buc_):\n res = __library__.MSK_XX_putconboundsliceconst(self.__nativep,first_,last_,bkc_,blc_,buc_)\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putconboundslice(self,first_,last_,bk,bl,bu): # 3\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds for a slice of the constraints. putconboundsliceconst(self,first_,last_,bkc_,blc_,buc_) | def putconboundsliceconst(self,first_,last_,bkc_,blc_,buc_):
res = __library__.MSK_XX_putconboundsliceconst(self.__nativep,first_,last_,bkc_,blc_,buc_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putvarboundsliceconst(self,first_,last_,bkx_,blx_,bux_):\n res = __library__.MSK_XX_putvarboundsliceconst(self.__nativep,first_,last_,bkx_,blx_,bux_)\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putconboundslice(self,first_,last_,bkc_,blc_,buc_):\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds for one variable. putvarbound(self,j_,bkx_,blx_,bux_) | def putvarbound(self,j_,bkx_,blx_,bux_):
res = __library__.MSK_XX_putvarbound(self.__nativep,j_,bkx_,blx_,bux_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putvarbound(self,j_,bk_,bl_,bu_): # 3\n if not isinstance(bk_,boundkey): raise TypeError(\"Argument bk has wrong type\")\n res = self.__obj.putvarbound(j_,bk_,bl_,bu_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def chgvarbound(self,j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds of a list of variables. putvarboundlist(self,sub_,bkx_,blx_,bux_) | def putvarboundlist(self,sub_,bkx_,blx_,bux_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(bkx_)
elif num_ != len(bkx_):
raise IndexError("Inconsistent length of array b... | [
"def putvarboundlistconst(self,sub_,bkx_,blx_,bux_):\n num_ = None\n if num_ is None:\n num_ = len(sub_)\n elif num_ != len(sub_):\n raise IndexError(\"Inconsistent length of array sub\")\n if sub_ is None:\n raise ValueError(\"Argument sub cannot be None\")\n if sub_ is None:\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds of a list of variables. putvarboundlistconst(self,sub_,bkx_,blx_,bux_) | def putvarboundlistconst(self,sub_,bkx_,blx_,bux_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if sub_ is None:
raise ValueError("Argument sub cannot be None")
if sub_ is None:
raise ValueError("A... | [
"def putvarboundlist(self,sub_,bkx_,blx_,bux_):\n num_ = None\n if num_ is None:\n num_ = len(sub_)\n elif num_ != len(sub_):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(bkx_)\n elif num_ != len(bkx_):\n raise IndexError(\"Inconsistent ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the bounds for a slice of the variables. putvarboundsliceconst(self,first_,last_,bkx_,blx_,bux_) | def putvarboundsliceconst(self,first_,last_,bkx_,blx_,bux_):
res = __library__.MSK_XX_putvarboundsliceconst(self.__nativep,first_,last_,bkx_,blx_,bux_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putvarboundslice(self,first_,last_,bk,bl,bu): # 3\n if bk is None: raise TypeError(\"Invalid type for argument bk\")\n if bk is None:\n bk_ = None\n else:\n try:\n bk_ = memoryview(bk)\n except TypeError:\n try:\n _tmparr_bk = array.array(\"i\",b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces the fixed term in the objective. putcfix(self,cfix_) | def putcfix(self,cfix_):
res = __library__.MSK_XX_putcfix(self.__nativep,cfix_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putcfix(self,cfix_): # 3\n res = self.__obj.putcfix(cfix_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def fixed(self, fixed):\n\n self._fixed = fixed",
"def cpf(self, cpf):\n self._cpf = cpf",
"def fixB(self,i,j,value):\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifies one linear coefficient in the objective. putcj(self,j_,cj_) | def putcj(self,j_,cj_):
res = __library__.MSK_XX_putcj(self.__nativep,j_,cj_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putcj(self,j_,cj_): # 3\n res = self.__obj.putcj(j_,cj_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def getcj(self,j_): # 3\n res,resargs = self.__obj.getcj(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the objective sense. putobjsense(self,sense_) | def putobjsense(self,sense_):
res = __library__.MSK_XX_putobjsense(self.__nativep,sense_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | [
"def putobjsense(self,sense_): # 3\n if not isinstance(sense_,objsense): raise TypeError(\"Argument sense has wrong type\")\n res = self.__obj.putobjsense(sense_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def set_sense(self, sense):\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the objective sense. getobjsense(self) | def getobjsense(self):
sense_ = ctypes.c_int32()
res = __library__.MSK_XX_getobjsense(self.__nativep,ctypes.byref(sense_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_sense_return_value = objsense(sense_.value)
return (_sense_return_value) | [
"def getobjsense(self): # 3\n res,resargs = self.__obj.getobjsense()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _sense_return_value = resargs\n _sense_return_value = objsense(_sense_return_value)\n return _sense_return_value",
"d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifies a part of the linear objective coefficients. putclist(self,subj_,val_) | def putclist(self,subj_,val_):
num_ = None
if num_ is None:
num_ = len(subj_)
elif num_ != len(subj_):
raise IndexError("Inconsistent length of array subj")
if num_ is None:
num_ = len(val_)
elif num_ != len(val_):
raise IndexError("Inconsistent length of array val")
if s... | [
"def putclist(self,subj,val): # 3\n num_ = None\n if num_ is None:\n num_ = len(subj)\n elif num_ != len(subj):\n raise IndexError(\"Inconsistent length of array subj\")\n if num_ is None:\n num_ = len(val)\n elif num_ != len(val):\n raise IndexError(\"Inconsiste... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifies a slice of the linear objective coefficients. putcslice(self,first_,last_,slice_) | def putcslice(self,first_,last_,slice_):
_slice_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and slice_ is not None and len(slice_) != ((last_) - (first_)):
raise ValueError("Array argument slice is not long enough: Is %d, expected %d" % (len(slice_),((last_) - (first_))))
if slice_ is... | [
"def putcslice(self,first_,last_,slice): # 3\n if slice is None: raise TypeError(\"Invalid type for argument slice\")\n if slice is None:\n slice_ = None\n else:\n try:\n slice_ = memoryview(slice)\n except TypeError:\n try:\n _tmparr_slice = array.ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes one element in barc. putbarcj(self,j_,sub_,weights_) | def putbarcj(self,j_,sub_,weights_):
num_ = None
if num_ is None:
num_ = len(sub_)
elif num_ != len(sub_):
raise IndexError("Inconsistent length of array sub")
if num_ is None:
num_ = len(weights_)
elif num_ != len(weights_):
raise IndexError("Inconsistent length of array wei... | [
"def putbarcj(self,j_,sub,weights): # 3\n num_ = None\n if num_ is None:\n num_ = len(sub)\n elif num_ != len(sub):\n raise IndexError(\"Inconsistent length of array sub\")\n if num_ is None:\n num_ = len(weights)\n elif num_ != len(weights):\n raise IndexError(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |