query stringlengths 9 9.05k | document stringlengths 10 222k | metadata dict | negatives listlengths 30 30 | negative_scores listlengths 30 30 | document_score stringlengths 4 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Return a filepath that contains data about the next change to test. | def get_next_change_file():
path = '/tmp/perf/'
changes_to_test = _sorted_ls(path)
if changes_to_test:
return os.path.join(path, changes_to_test[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__), 'testdata', filename)",
"def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__), 'testdata', filename)",
"def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__... | [
"0.6054829",
"0.6054829",
"0.6054829",
"0.58682424",
"0.58409095",
"0.57942855",
"0.57845366",
"0.56979823",
"0.5621857",
"0.56051517",
"0.5566274",
"0.5565939",
"0.5536013",
"0.5490917",
"0.54188967",
"0.5408854",
"0.53556013",
"0.5328166",
"0.53233224",
"0.5313902",
"0.5301... | 0.77210146 | 0 |
convert area in rad^2 to km^2 | def area_rad_to_km(area_rad):
r_earth = 6.37122e3 # SHR_CONST_REARTH, in km
circ = 2*np.pi*r_earth
foo = xr.ufuncs.sqrt(area_rad.copy())
foo *= r_earth
area_km = foo**2
return area_km | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def convert_ha_to_km2(nb):\n return nb / 100",
"def rad(area) :\n return sqrt(area/pi)",
"def km2m(km):\n return km * 1000",
"def km2_area(polygons):\n\n reprojected_polygons = [reproject(p) for p in polygons]\n return ops.cascaded_union(reprojected_polygons).area * 1e-6",
"def mi_to_m... | [
"0.71732515",
"0.6853367",
"0.6772503",
"0.6647387",
"0.65435016",
"0.65118784",
"0.6350859",
"0.6348541",
"0.63110465",
"0.622082",
"0.61698097",
"0.61480993",
"0.61387134",
"0.6091799",
"0.60879374",
"0.60483783",
"0.60402596",
"0.60270166",
"0.60109943",
"0.6004886",
"0.59... | 0.80855316 | 0 |
Blindly sets state based on the items like statedict | def __setstate__(self, statedict):
for k, v in list(statedict.items()):
setattr(self, k, v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_state( self ):",
"def set_state(canvas, state):\n for key, value in state.items():\n set_attribute(canvas, key, value)",
"def __setstate__(self, state):\n exclude_keys = ['_is_zero', '_is_positive', '_is_nonneg']\n for key,value in state.items():\n if key in exclude_k... | [
"0.6640367",
"0.6613323",
"0.6503467",
"0.64254403",
"0.6403489",
"0.6403489",
"0.61876637",
"0.61295795",
"0.6122762",
"0.61179495",
"0.60977346",
"0.6040049",
"0.60339725",
"0.6022381",
"0.5904621",
"0.5903245",
"0.58718616",
"0.5868567",
"0.5868567",
"0.5859888",
"0.584155... | 0.6726932 | 1 |
Create a new enum class with the given names and values. | def Enum(name,names,values=None):
e = new.classobj(name,(EnumBase,),{})
e._initialize(names,values)
return e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_enum(name, fields, values=None):\n Enum = namedtuple(name, fields)\n if values is None:\n return Enum(*fields)\n return Enum(*values)",
"def Enum(name,names,values=None):\n e = type(name,(EnumBase,),{})\n e._initialize(names,values)\n return e",
"def enum(cls, options, value... | [
"0.8069038",
"0.77621424",
"0.7693179",
"0.67224294",
"0.64560413",
"0.64129335",
"0.6399653",
"0.6381578",
"0.6362524",
"0.6356486",
"0.6356486",
"0.6356486",
"0.6356486",
"0.6295191",
"0.6264949",
"0.622943",
"0.61205715",
"0.6103254",
"0.6100767",
"0.6011548",
"0.597129",
... | 0.79247373 | 1 |
Check out a license feature from the license server ahead of time. checkoutlicense(self,feature_) | def checkoutlicense(self,feature_):
res = __library__.MSK_XX_checkoutlicense(self.__nativep,feature_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def checkoutlicense(self,feature_): # 3\n if not isinstance(feature_,feature): raise TypeError(\"Argument feature has wrong type\")\n res = self.__obj.checkoutlicense(feature_)\n if res != 0:\n raise Error(rescode(res),\"\")",
"def checkinlicense(self,feature_): # 3\n if not isinstance... | [
"0.8759661",
"0.76959074",
"0.7425138",
"0.5600213",
"0.5537508",
"0.5521356",
"0.548995",
"0.54747057",
"0.5455874",
"0.5384995",
"0.53284734",
"0.5324986",
"0.5264816",
"0.511373",
"0.5108549",
"0.5074378",
"0.50742406",
"0.506557",
"0.49946",
"0.4989902",
"0.49843487",
"... | 0.8638246 | 1 |
Check in a license feature back to the license server ahead of time. checkinlicense(self,feature_) | def checkinlicense(self,feature_):
res = __library__.MSK_XX_checkinlicense(self.__nativep,feature_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def checkinlicense(self,feature_): # 3\n if not isinstance(feature_,feature): raise TypeError(\"Argument feature has wrong type\")\n res = self.__obj.checkinlicense(feature_)\n if res != 0:\n raise Error(rescode(res),\"\")",
"def checkoutlicense(self,feature_):\n res = __library__.MSK_XX... | [
"0.8578027",
"0.7463757",
"0.7390654",
"0.5651141",
"0.5581003",
"0.5463787",
"0.5270471",
"0.52479464",
"0.5114471",
"0.5090737",
"0.5089456",
"0.503208",
"0.49925858",
"0.4985686",
"0.4984008",
"0.49691615",
"0.49654573",
"0.49629948",
"0.49579397",
"0.4957077",
"0.49551493... | 0.8341613 | 1 |
Preallocates a thread pool. setupthreads(self,numthreads_) | def setupthreads(self,numthreads_):
res = __library__.MSK_XX_setupthreads(self.__nativep,numthreads_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _setup_workers(self, num_workers):\n self.pool = []\n\n for _ in range(num_workers):\n self.pool.append(Thread(target=self.threadloop))\n\n for a_thread in self.pool:\n a_thread.setDaemon(True)\n a_thread.start()",
"def setNumThreads(self, num):\r\n ... | [
"0.67134285",
"0.664693",
"0.66045773",
"0.65749764",
"0.65331626",
"0.6397342",
"0.63319147",
"0.6289505",
"0.6270324",
"0.6233809",
"0.6203612",
"0.6121451",
"0.6111992",
"0.61068666",
"0.6090031",
"0.60645485",
"0.603164",
"0.60059214",
"0.5992909",
"0.59382534",
"0.59107"... | 0.71301144 | 0 |
Obtains a short description of a response code. getcodedesc(code_) | def getcodedesc(code_):
symname_ = (ctypes.c_char * value.max_str_len)()
str_ = (ctypes.c_char * value.max_str_len)()
res = __library__.MSK_XX_getcodedesc(code_,symname_,str_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
_symname_retval = symname_.value.decode("utf-8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_description(self, code):\n try:\n return self.message[str(code)]\n except KeyError:\n return \"Unknown (\" + str(code) + \")\"",
"def get_error_description(self, code):\n self.c.execute(\"SELECT * FROM errorcode WHERE code=%d\" % code)\n return self.c.fet... | [
"0.7868941",
"0.7265099",
"0.71852154",
"0.7024114",
"0.68930936",
"0.65707564",
"0.6471099",
"0.61716706",
"0.6068444",
"0.60453534",
"0.5955093",
"0.59224325",
"0.59201384",
"0.5877441",
"0.5869272",
"0.5843591",
"0.584061",
"0.58223593",
"0.58223593",
"0.58223593",
"0.5772... | 0.7308555 | 1 |
Enables debug information for the license system. putlicensedebug(self,licdebug_) | def putlicensedebug(self,licdebug_):
res = __library__.MSK_XX_putlicensedebug(self.__nativep,licdebug_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putlicensedebug(self,licdebug_): # 3\n res = self.__obj.putlicensedebug(licdebug_)\n if res != 0:\n raise Error(rescode(res),\"\")",
"def set_debug(self, debug):\n self.debug = debug",
"def debug(self, debug):\n\n self._debug = debug",
"def setDebug():\n\tglobal debug\n\tde... | [
"0.89798224",
"0.6667688",
"0.6555875",
"0.6333619",
"0.6249309",
"0.62011623",
"0.610661",
"0.60838914",
"0.6049035",
"0.59686905",
"0.59017515",
"0.58994114",
"0.58361554",
"0.57802033",
"0.5760369",
"0.5759169",
"0.5745018",
"0.5731944",
"0.5715388",
"0.57055396",
"0.56213... | 0.871731 | 1 |
Input a runtime license code. putlicensecode(self,code_) | def putlicensecode(self,code_):
_code_minlength = value.license_buffer_length
if value.license_buffer_length > 0 and code_ is not None and len(code_) != value.license_buffer_length:
raise ValueError("Array argument code is not long enough: Is %d, expected %d" % (len(code_),value.license_buffer_length))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putlicensecode(self,code): # 3\n if code is None:\n code_ = None\n else:\n try:\n code_ = memoryview(code)\n except TypeError:\n try:\n _tmparr_code = array.array(\"i\",code)\n except TypeError:\n raise TypeError(\"Argument code ha... | [
"0.8494057",
"0.69254506",
"0.6896676",
"0.6758022",
"0.66151047",
"0.6599839",
"0.6433473",
"0.6400917",
"0.6400902",
"0.6374781",
"0.6374781",
"0.6374159",
"0.6374159",
"0.6353943",
"0.634261",
"0.6289735",
"0.6273301",
"0.62477654",
"0.6194605",
"0.6178612",
"0.61690074",
... | 0.8169754 | 1 |
Control whether mosek should wait for an available license if no license is available. putlicensewait(self,licwait_) | def putlicensewait(self,licwait_):
res = __library__.MSK_XX_putlicensewait(self.__nativep,licwait_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putlicensewait(self,licwait_): # 3\n res = self.__obj.putlicensewait(licwait_)\n if res != 0:\n raise Error(rescode(res),\"\")",
"def license(self, license):\n\n self._license = license",
"def accept_license():\r\n msg, status = \"\", True\r\n\r\n try:\r\n sleep(5)\r\n ... | [
"0.8608505",
"0.61256635",
"0.6123673",
"0.5970834",
"0.5939061",
"0.58548045",
"0.5833694",
"0.5822022",
"0.57427907",
"0.5724147",
"0.56733525",
"0.5650425",
"0.5636824",
"0.5599726",
"0.5547277",
"0.5536273",
"0.5516888",
"0.5485797",
"0.5453408",
"0.5441463",
"0.5418717",... | 0.84320354 | 1 |
Set the path to the license file. putlicensepath(self,licensepath_) | def putlicensepath(self,licensepath_):
if isinstance(licensepath_,unicode):
licensepath_ = licensepath_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_putlicensepath(self.__nativep,licensepath_)
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putlicensepath(self,licensepath_): # 3\n res = self.__obj.putlicensepath(licensepath_)\n if res != 0:\n raise Error(rescode(res),\"\")",
"def license(self, license):\n\n self._license = license",
"def upload_license(self):\n param = self.module.params[\"param\"]\n lice... | [
"0.88523585",
"0.71379733",
"0.6935849",
"0.67722934",
"0.67470366",
"0.6633295",
"0.63802004",
"0.6364983",
"0.6364983",
"0.6364983",
"0.6364983",
"0.6364983",
"0.6356385",
"0.6281657",
"0.62535214",
"0.62287545",
"0.6200384",
"0.61479205",
"0.6000918",
"0.59174573",
"0.5909... | 0.8595367 | 1 |
Computes vector addition and multiplication by a scalar. axpy(self,n_,alpha_,x_,y_) | def axpy(self,n_,alpha_,x_,y_):
_x_minlength = (n_)
if (n_) > 0 and x_ is not None and len(x_) != (n_):
raise ValueError("Array argument x is not long enough: Is %d, expected %d" % (len(x_),(n_)))
if x_ is None:
raise ValueError("Argument x cannot be None")
if x_ is None:
raise ValueEr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axpy(self,n_,alpha_,x,y): # 3\n if x is None: raise TypeError(\"Invalid type for argument x\")\n if x is None:\n x_ = None\n else:\n try:\n x_ = memoryview(x)\n except TypeError:\n try:\n _tmparr_x = array.array(\"d\",x)\n except TypeErr... | [
"0.74733484",
"0.60606563",
"0.60547745",
"0.5907904",
"0.5887075",
"0.58122003",
"0.57062954",
"0.55805856",
"0.5475544",
"0.5468158",
"0.54651934",
"0.54209197",
"0.541921",
"0.5392053",
"0.5377396",
"0.5374282",
"0.5341102",
"0.5317172",
"0.5305736",
"0.52814037",
"0.52740... | 0.7002267 | 1 |
Computes dense matrix times a dense vector product. gemv(self,transa_,m_,n_,alpha_,a_,x_,beta_,y_) | def gemv(self,transa_,m_,n_,alpha_,a_,x_,beta_,y_):
_a_minlength = ((n_) * (m_))
if ((n_) * (m_)) > 0 and a_ is not None and len(a_) != ((n_) * (m_)):
raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (m_))))
if a_ is None:
raise ValueError("Argument a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gemv(self,transa_,m_,n_,alpha_,a,x,beta_,y): # 3\n if not isinstance(transa_,transpose): raise TypeError(\"Argument transa has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n if a is None:\n a_ = None\n else:\n try:\n a_ = memoryview(a... | [
"0.79829377",
"0.7744591",
"0.6858341",
"0.6395874",
"0.6372895",
"0.6168905",
"0.5858304",
"0.5748902",
"0.5633987",
"0.5538611",
"0.5522281",
"0.5460428",
"0.54414135",
"0.53847235",
"0.5364882",
"0.5344385",
"0.53304935",
"0.5325173",
"0.5298962",
"0.52883595",
"0.5280534"... | 0.792816 | 1 |
Performs a dense matrix multiplication. gemm(self,transa_,transb_,m_,n_,k_,alpha_,a_,b_,beta_,c_) | def gemm(self,transa_,transb_,m_,n_,k_,alpha_,a_,b_,beta_,c_):
_a_minlength = ((m_) * (k_))
if ((m_) * (k_)) > 0 and a_ is not None and len(a_) != ((m_) * (k_)):
raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((m_) * (k_))))
if a_ is None:
raise ValueError(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gemm(self,transa_,transb_,m_,n_,k_,alpha_,a,b,beta_,c): # 3\n if not isinstance(transa_,transpose): raise TypeError(\"Argument transa has wrong type\")\n if not isinstance(transb_,transpose): raise TypeError(\"Argument transb has wrong type\")\n if a is None: raise TypeError(\"Invalid type for a... | [
"0.797159",
"0.6984396",
"0.68837875",
"0.6616794",
"0.6429315",
"0.6350331",
"0.6247334",
"0.60708445",
"0.57550097",
"0.5749969",
"0.5730603",
"0.5723331",
"0.56517935",
"0.56435114",
"0.5592844",
"0.5431652",
"0.5431652",
"0.5407086",
"0.53182805",
"0.5267758",
"0.51957977... | 0.7851844 | 1 |
Performs a rankk update of a symmetric matrix. syrk(self,uplo_,trans_,n_,k_,alpha_,a_,beta_,c_) | def syrk(self,uplo_,trans_,n_,k_,alpha_,a_,beta_,c_):
_a_minlength = ((n_) * (k_))
if ((n_) * (k_)) > 0 and a_ is not None and len(a_) != ((n_) * (k_)):
raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (k_))))
if a_ is None:
raise ValueError("Argument... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syrk(self,uplo_,trans_,n_,k_,alpha_,a,beta_,c): # 3\n if not isinstance(uplo_,uplo): raise TypeError(\"Argument uplo has wrong type\")\n if not isinstance(trans_,transpose): raise TypeError(\"Argument trans has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n ... | [
"0.7740319",
"0.5345925",
"0.5307275",
"0.5296073",
"0.51972955",
"0.51492083",
"0.51247174",
"0.5056189",
"0.50554264",
"0.5031491",
"0.5031491",
"0.50260574",
"0.50148124",
"0.49368647",
"0.4909689",
"0.48912278",
"0.4885631",
"0.48802838",
"0.47982484",
"0.4793419",
"0.478... | 0.6716742 | 1 |
Computes a Cholesky factorization of sparse matrix. computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc_,aptrc_,asubc_,avalc_) | def computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc_,aptrc_,asubc_,avalc_):
n_ = None
if n_ is None:
n_ = len(anzc_)
elif n_ != len(anzc_):
raise IndexError("Inconsistent length of array anzc")
if n_ is None:
n_ = len(aptrc_)
elif n_ != len(aptrc_):
rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc,aptrc,asubc,avalc): # 3\n n_ = None\n if n_ is None:\n n_ = len(anzc)\n elif n_ != len(anzc):\n raise IndexError(\"Inconsistent length of array anzc\")\n if n_ is None:\n n_ = len(aptrc)\n elif ... | [
"0.7571543",
"0.5584805",
"0.5499678",
"0.5440372",
"0.53172606",
"0.52564216",
"0.52468324",
"0.52155113",
"0.51478595",
"0.514581",
"0.5113303",
"0.51123667",
"0.50142163",
"0.5004762",
"0.49805087",
"0.4961134",
"0.49372533",
"0.49125624",
"0.49123773",
"0.48156536",
"0.47... | 0.7723914 | 0 |
Solves a sparse triangular system of linear equations. sparsetriangularsolvedense(self,transposed_,lnzc_,lptrc_,lsubc_,lvalc_,b_) | def sparsetriangularsolvedense(self,transposed_,lnzc_,lptrc_,lsubc_,lvalc_,b_):
n_ = None
if n_ is None:
n_ = len(b_)
elif n_ != len(b_):
raise IndexError("Inconsistent length of array b")
if n_ is None:
n_ = len(lnzc_)
elif n_ != len(lnzc_):
raise IndexError("Inconsistent le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sparsetriangularsolvedense(self,transposed_,lnzc,lptrc,lsubc,lvalc,b): # 3\n if not isinstance(transposed_,transpose): raise TypeError(\"Argument transposed has wrong type\")\n n_ = None\n if n_ is None:\n n_ = len(b)\n elif n_ != len(b):\n raise IndexError(\"Inconsistent leng... | [
"0.8438944",
"0.54154617",
"0.5376753",
"0.53284895",
"0.5311217",
"0.52064824",
"0.51942706",
"0.51143026",
"0.49586394",
"0.4949625",
"0.49304515",
"0.49237528",
"0.48860884",
"0.4882467",
"0.48812094",
"0.48605898",
"0.48446497",
"0.4842036",
"0.48256987",
"0.48181957",
"0... | 0.8483068 | 0 |
Computes all eigenvalues of a symmetric dense matrix. syeig(self,uplo_,n_,a_,w_) | def syeig(self,uplo_,n_,a_,w_):
_a_minlength = ((n_) * (n_))
if ((n_) * (n_)) > 0 and a_ is not None and len(a_) != ((n_) * (n_)):
raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (n_))))
if a_ is None:
raise ValueError("Argument a cannot be None")
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syeig(self,uplo_,n_,a,w): # 3\n if not isinstance(uplo_,uplo): raise TypeError(\"Argument uplo has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n if a is None:\n a_ = None\n else:\n try:\n a_ = memoryview(a)\n except TypeError:... | [
"0.81746787",
"0.65293",
"0.6337791",
"0.6227501",
"0.61773306",
"0.61583877",
"0.6139027",
"0.6113723",
"0.6071404",
"0.5926805",
"0.5913415",
"0.5867152",
"0.5759248",
"0.574515",
"0.5692723",
"0.5674269",
"0.5673998",
"0.56041884",
"0.5596572",
"0.55924916",
"0.5584967",
... | 0.7566581 | 1 |
Stops all threads and delete all handles used by the license system. licensecleanup() | def licensecleanup():
res = __library__.MSK_XX_licensecleanup()
if res != 0:
raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def licensecleanup(): # 3\n res = _msk.Env.licensecleanup()\n if res != 0:\n raise Error(rescode(res),\"\")",
"def cleanup(self):\n logger.debug('Beginning cleanup ...')\n self.stop()\n\n #Clear subscriptions\n for sub, dev in self.subs.items():\n dev.clear... | [
"0.69909203",
"0.6920652",
"0.68741477",
"0.67954016",
"0.67419183",
"0.66345876",
"0.6611523",
"0.65672064",
"0.65559095",
"0.65391237",
"0.64915305",
"0.64907163",
"0.6485269",
"0.64084905",
"0.6398197",
"0.6396374",
"0.6393423",
"0.6385401",
"0.6373598",
"0.63693166",
"0.6... | 0.69317514 | 1 |
Construct a new Task object. Task(env=None,maxnumcon=0,maxnumvar=0,nativep=None,other=None) | def __init__(self,env=None,maxnumcon=0,maxnumvar=0,nativep=None,other=None):
self.__library = __library__
self.__nativep = None
self.__schandle = None
self._lock = threading.RLock()
if isinstance(env,Task):
other = env
env = None
try:
if native... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, env: MTEnv, n_tasks: int):\n super().__init__(env=env)\n self.n_tasks = n_tasks\n self.tasks: List[TaskStateType]\n self._are_tasks_set = False",
"def __init__(self,target, name = \"\", prio = 10, period = 0, time2run = 0):\n Task.taskid += 1\n self.ti... | [
"0.6326176",
"0.603982",
"0.60264874",
"0.6022742",
"0.59993345",
"0.59907025",
"0.5958645",
"0.5920431",
"0.58973324",
"0.58927375",
"0.5887594",
"0.5862502",
"0.58127207",
"0.5787428",
"0.5779538",
"0.57600564",
"0.5736297",
"0.57311445",
"0.57209444",
"0.5698059",
"0.56828... | 0.7289506 | 0 |
Set the progress callback function. If func is None, progress callbacks are detached and disabled. | def set_Progress(self,func):
if func is None:
self.__progress_func = None
#res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,None,None)
else:
self.__progress_func = func
res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,self.__progress_cb,N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_Progress(self,func):\n self.__obj.set_Progress(func)",
"def progress_callback(self, func):\n self.curl.setopt(pycurl.PROGRESSFUNCTION, func)",
"def svn_client_ctx_t_progress_func_set(svn_client_ctx_t_self, svn_ra_progress_notify_func_t_progress_func): # real signature unknown; restored fr... | [
"0.76210636",
"0.73132217",
"0.67322624",
"0.62459373",
"0.62381303",
"0.62043667",
"0.6173967",
"0.5974019",
"0.59440875",
"0.59214973",
"0.5781422",
"0.5741869",
"0.56839746",
"0.5624882",
"0.5602486",
"0.55898565",
"0.55845433",
"0.5564059",
"0.552527",
"0.548637",
"0.5454... | 0.7993551 | 0 |
Analyze the data of a task. analyzeproblem(self,whichstream_) | def analyzeproblem(self,whichstream_):
res = __library__.MSK_XX_analyzeproblem(self.__nativep,whichstream_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def analyzeproblem(self,whichstream_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n res = self.__obj.analyzeproblem(whichstream_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"... | [
"0.7656688",
"0.66234916",
"0.61678094",
"0.61584896",
"0.61026996",
"0.5949743",
"0.58778185",
"0.58460075",
"0.57688403",
"0.5664479",
"0.5660007",
"0.5589258",
"0.55565846",
"0.5520233",
"0.54727155",
"0.5431195",
"0.53835535",
"0.5372877",
"0.5285206",
"0.52802324",
"0.52... | 0.7232371 | 1 |
Analyze the names and issue an error for the first invalid name. analyzenames(self,whichstream_,nametype_) | def analyzenames(self,whichstream_,nametype_):
res = __library__.MSK_XX_analyzenames(self.__nativep,whichstream_,nametype_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def analyzenames(self,whichstream_,nametype_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n if not isinstance(nametype_,nametype): raise TypeError(\"Argument nametype has wrong type\")\n res = self.__obj.analyzenames(whichstream_,namety... | [
"0.856169",
"0.6125964",
"0.5851493",
"0.5766484",
"0.5649188",
"0.5622006",
"0.552477",
"0.55118906",
"0.55098695",
"0.5505015",
"0.55004114",
"0.54994583",
"0.5494788",
"0.5492459",
"0.5460644",
"0.5454948",
"0.54511714",
"0.544296",
"0.5436722",
"0.5407702",
"0.53509",
"... | 0.7843094 | 1 |
Print information related to the quality of the solution. analyzesolution(self,whichstream_,whichsol_) | def analyzesolution(self,whichstream_,whichsol_):
res = __library__.MSK_XX_analyzesolution(self.__nativep,whichstream_,whichsol_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def analyzesolution(self,whichstream_,whichsol_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res = self.__obj.analyzesolution(whichstream_,w... | [
"0.75133455",
"0.73406655",
"0.73010904",
"0.71412873",
"0.6950169",
"0.6524369",
"0.6344713",
"0.6188728",
"0.6182085",
"0.61371076",
"0.6001918",
"0.59650385",
"0.58990616",
"0.5842757",
"0.5792607",
"0.57907444",
"0.5786922",
"0.5766608",
"0.57455885",
"0.56941146",
"0.569... | 0.7367534 | 1 |
Prepare a task for basis solver. initbasissolve(self,basis_) | def initbasissolve(self,basis_):
_basis_minlength = self.getnumcon()
if self.getnumcon() > 0 and basis_ is not None and len(basis_) != self.getnumcon():
raise ValueError("Array argument basis is not long enough: Is %d, expected %d" % (len(basis_),self.getnumcon()))
if isinstance(basis_,numpy.ndarray) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def initbasissolve(self,basis): # 3\n _copyback_basis = False\n if basis is None:\n basis_ = None\n else:\n try:\n basis_ = memoryview(basis)\n except TypeError:\n try:\n _tmparr_basis = array.array(\"i\",basis)\n except TypeError:\n ... | [
"0.75565845",
"0.5916598",
"0.5722016",
"0.56191593",
"0.55989605",
"0.5507775",
"0.5439479",
"0.54063594",
"0.53515726",
"0.5298564",
"0.5275407",
"0.5211078",
"0.5209353",
"0.5185748",
"0.5182779",
"0.51719403",
"0.5151672",
"0.51347935",
"0.5133514",
"0.5122238",
"0.510710... | 0.72589576 | 1 |
Solve a linear equation system involving a basis matrix. solvewithbasis(self,transp_,numnz_,sub_,val_) | def solvewithbasis(self,transp_,numnz_,sub_,val_):
_numnz_tmp = ctypes.c_int32(numnz_)
_sub_minlength = self.getnumcon()
if self.getnumcon() > 0 and sub_ is not None and len(sub_) != self.getnumcon():
raise ValueError("Array argument sub is not long enough: Is %d, expected %d" % (len(sub_),self.getnum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def solvewithbasis(self,transp_,numnz_,sub,val): # 3\n _copyback_sub = False\n if sub is None:\n sub_ = None\n else:\n try:\n sub_ = memoryview(sub)\n except TypeError:\n try:\n _tmparr_sub = array.array(\"i\",sub)\n except TypeError:\n ... | [
"0.8131871",
"0.59714824",
"0.5729135",
"0.5628742",
"0.56091446",
"0.55008405",
"0.5451734",
"0.5344914",
"0.53239274",
"0.5203088",
"0.52024055",
"0.5150057",
"0.50754064",
"0.50556207",
"0.5001627",
"0.49995735",
"0.49937603",
"0.49653995",
"0.49574485",
"0.4943281",
"0.49... | 0.81305534 | 1 |
Computes conditioning information for the basis matrix. basiscond(self) | def basiscond(self):
nrmbasis_ = ctypes.c_double()
nrminvbasis_ = ctypes.c_double()
res = __library__.MSK_XX_basiscond(self.__nativep,ctypes.byref(nrmbasis_),ctypes.byref(nrminvbasis_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
nrmbasis_ = nrmbasis_.valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def basiscond(self): # 3\n res,resargs = self.__obj.basiscond()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nrmbasis_return_value,_nrminvbasis_return_value = resargs\n return _nrmbasis_return_value,_nrminvbasis_return_value",
"def _t... | [
"0.7401494",
"0.64921606",
"0.57574993",
"0.5757078",
"0.57382345",
"0.5737791",
"0.57173383",
"0.5618264",
"0.56107277",
"0.56098473",
"0.5554291",
"0.5542242",
"0.55095696",
"0.54061496",
"0.53822345",
"0.53605485",
"0.53488797",
"0.53358144",
"0.5334709",
"0.5314764",
"0.5... | 0.7459991 | 0 |
Appends a number of constraints to the optimization task. appendcons(self,num_) | def appendcons(self,num_):
res = __library__.MSK_XX_appendcons(self.__nativep,num_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def appendcons(self,num_): # 3\n res = self.__obj.appendcons(num_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def add_constraint(self, constraint):\n constraint_type = constraint[0]\n if constraint_type == 'time':\n d... | [
"0.71618354",
"0.5837507",
"0.57036966",
"0.5674323",
"0.5663676",
"0.564805",
"0.5605173",
"0.5550933",
"0.55144083",
"0.544833",
"0.5390708",
"0.5379284",
"0.5327178",
"0.5318046",
"0.5295975",
"0.529086",
"0.52815723",
"0.5280168",
"0.527523",
"0.52032757",
"0.51928747",
... | 0.7185383 | 0 |
Appends a number of variables to the optimization task. appendvars(self,num_) | def appendvars(self,num_):
res = __library__.MSK_XX_appendvars(self.__nativep,num_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def appendvars(self,num_): # 3\n res = self.__obj.appendvars(num_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def addVars(self, *indexes, **kwargs):\n ...",
"def add_variables(self, variables):\n for variable in variables:\n ... | [
"0.7904469",
"0.59922993",
"0.5989691",
"0.5909687",
"0.5740387",
"0.56843954",
"0.5554662",
"0.55087805",
"0.5492639",
"0.54744667",
"0.5469596",
"0.5469596",
"0.5439085",
"0.54265416",
"0.5411829",
"0.54096377",
"0.5366153",
"0.5350174",
"0.53359",
"0.53321993",
"0.5321142"... | 0.77544904 | 1 |
Removes a number of constraints. removecons(self,subset_) | def removecons(self,subset_):
num_ = None
if num_ is None:
num_ = len(subset_)
elif num_ != len(subset_):
raise IndexError("Inconsistent length of array subset")
if subset_ is None:
raise ValueError("Argument subset cannot be None")
if subset_ is None:
raise ValueError("Argum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def removecons(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\"... | [
"0.82700276",
"0.7332951",
"0.72566605",
"0.67324287",
"0.6559985",
"0.64388156",
"0.63277817",
"0.6175792",
"0.614257",
"0.5968138",
"0.5823671",
"0.580427",
"0.5789894",
"0.57380253",
"0.5684563",
"0.5578613",
"0.55290496",
"0.5512659",
"0.53915256",
"0.5372119",
"0.5369376... | 0.81802654 | 1 |
Removes a number of variables. removevars(self,subset_) | def removevars(self,subset_):
num_ = None
if num_ is None:
num_ = len(subset_)
elif num_ != len(subset_):
raise IndexError("Inconsistent length of array subset")
if subset_ is None:
raise ValueError("Argument subset cannot be None")
if subset_ is None:
raise ValueError("Argum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def removevars(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\"... | [
"0.8907224",
"0.78043014",
"0.7453004",
"0.6692764",
"0.6318491",
"0.6138598",
"0.59088767",
"0.58950776",
"0.5870665",
"0.58485174",
"0.5781053",
"0.5777436",
"0.5639282",
"0.5567257",
"0.55330926",
"0.54802483",
"0.5447446",
"0.53930205",
"0.53908974",
"0.5379356",
"0.53722... | 0.854354 | 1 |
Removes a number of symmetric matrices. removebarvars(self,subset_) | def removebarvars(self,subset_):
num_ = None
if num_ is None:
num_ = len(subset_)
elif num_ != len(subset_):
raise IndexError("Inconsistent length of array subset")
if subset_ is None:
raise ValueError("Argument subset cannot be None")
if subset_ is None:
raise ValueError("Ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def removebarvars(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subse... | [
"0.8297461",
"0.72585315",
"0.72363526",
"0.5895367",
"0.5825849",
"0.5779745",
"0.5747303",
"0.5530704",
"0.55015457",
"0.5498184",
"0.5485593",
"0.531922",
"0.5292177",
"0.5290783",
"0.5279861",
"0.52415746",
"0.52012604",
"0.5192966",
"0.51445",
"0.51120937",
"0.509378",
... | 0.8265025 | 1 |
Removes a number of conic constraints from the problem. removecones(self,subset_) | def removecones(self,subset_):
num_ = None
if num_ is None:
num_ = len(subset_)
elif num_ != len(subset_):
raise IndexError("Inconsistent length of array subset")
if subset_ is None:
raise ValueError("Argument subset cannot be None")
if subset_ is None:
raise ValueError("Argu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def removecones(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\... | [
"0.83215594",
"0.7152217",
"0.7077424",
"0.6343125",
"0.609424",
"0.5977655",
"0.5930062",
"0.5876391",
"0.5876157",
"0.57800704",
"0.5628625",
"0.5434072",
"0.5406661",
"0.5321781",
"0.5312178",
"0.52586085",
"0.5258399",
"0.52080315",
"0.51944923",
"0.5176773",
"0.513047",
... | 0.8212127 | 1 |
Appends semidefinite variables to the problem. appendbarvars(self,dim_) | def appendbarvars(self,dim_):
num_ = None
if num_ is None:
num_ = len(dim_)
elif num_ != len(dim_):
raise IndexError("Inconsistent length of array dim")
if dim_ is None:
raise ValueError("Argument dim cannot be None")
if dim_ is None:
raise ValueError("Argument dim may not be... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def appendbarvars(self,dim): # 3\n num_ = None\n if num_ is None:\n num_ = len(dim)\n elif num_ != len(dim):\n raise IndexError(\"Inconsistent length of array dim\")\n if num_ is None: num_ = 0\n if dim is None: raise TypeError(\"Invalid type for argument dim\")\n if dim... | [
"0.8159918",
"0.55441445",
"0.53684646",
"0.533822",
"0.5304417",
"0.5274865",
"0.51826805",
"0.51651216",
"0.5160413",
"0.5143895",
"0.5126579",
"0.49842018",
"0.49332213",
"0.4922936",
"0.48779106",
"0.47955328",
"0.47735283",
"0.47632688",
"0.47520563",
"0.47460842",
"0.47... | 0.80840147 | 1 |
Appends a new conic constraint to the problem. appendcone(self,ct_,conepar_,submem_) | def appendcone(self,ct_,conepar_,submem_):
nummem_ = None
if nummem_ is None:
nummem_ = len(submem_)
elif nummem_ != len(submem_):
raise IndexError("Inconsistent length of array submem")
if submem_ is None:
raise ValueError("Argument submem cannot be None")
if submem_ is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def appendcone(self,ct_,conepar_,submem): # 3\n if not isinstance(ct_,conetype): raise TypeError(\"Argument ct has wrong type\")\n nummem_ = None\n if nummem_ is None:\n nummem_ = len(submem)\n elif nummem_ != len(submem):\n raise IndexError(\"Inconsistent length of array submem\"... | [
"0.8244941",
"0.77045983",
"0.74703234",
"0.74599016",
"0.7063304",
"0.6341248",
"0.6041502",
"0.5657737",
"0.53261125",
"0.5275094",
"0.5257149",
"0.5240593",
"0.52378",
"0.5133575",
"0.51317424",
"0.51154685",
"0.51087177",
"0.50969726",
"0.5067879",
"0.50591534",
"0.501998... | 0.8216878 | 1 |
Appends a new conic constraint to the problem. appendconeseq(self,ct_,conepar_,nummem_,j_) | def appendconeseq(self,ct_,conepar_,nummem_,j_):
res = __library__.MSK_XX_appendconeseq(self.__nativep,ct_,conepar_,nummem_,j_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def appendconeseq(self,ct_,conepar_,nummem_,j_): # 3\n if not isinstance(ct_,conetype): raise TypeError(\"Argument ct has wrong type\")\n res = self.__obj.appendconeseq(ct_,conepar_,nummem_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"... | [
"0.86378384",
"0.75416327",
"0.7458773",
"0.7380015",
"0.73679143",
"0.646462",
"0.6225315",
"0.51709515",
"0.5064763",
"0.48974988",
"0.48840624",
"0.48815274",
"0.48780966",
"0.4864251",
"0.48559266",
"0.47979966",
"0.4756608",
"0.4728465",
"0.47282267",
"0.4699578",
"0.467... | 0.86945903 | 0 |
Changes the bounds for one constraint. chgconbound(self,i_,lower_,finite_,value_) | def chgconbound(self,i_,lower_,finite_,value_):
res = __library__.MSK_XX_chgconbound(self.__nativep,i_,lower_,finite_,value_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chgconbound(self,i_,lower_,finite_,value_): # 3\n res = self.__obj.chgconbound(i_,lower_,finite_,value_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def chgbound(self,accmode_,i_,lower_,finite_,value_): # 3\n if not isinstance(accmode... | [
"0.9179256",
"0.7916872",
"0.7376792",
"0.7195413",
"0.6016417",
"0.6004763",
"0.5817389",
"0.5724509",
"0.5707932",
"0.56736284",
"0.5642968",
"0.5613745",
"0.5549648",
"0.5543372",
"0.55391896",
"0.5501184",
"0.5480884",
"0.5466385",
"0.5455747",
"0.54376006",
"0.543686",
... | 0.8795833 | 1 |
Changes the bounds for one variable. chgvarbound(self,j_,lower_,finite_,value_) | def chgvarbound(self,j_,lower_,finite_,value_):
res = __library__.MSK_XX_chgvarbound(self.__nativep,j_,lower_,finite_,value_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chgvarbound(self,j_,lower_,finite_,value_): # 3\n res = self.__obj.chgvarbound(j_,lower_,finite_,value_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def chgconbound(self,i_,lower_,finite_,value_): # 3\n res = self.__obj.chgconbound(i_... | [
"0.92657965",
"0.6645805",
"0.66179705",
"0.63044393",
"0.6285839",
"0.6257946",
"0.62345994",
"0.61521727",
"0.57639956",
"0.56784153",
"0.5577765",
"0.5573649",
"0.54211104",
"0.5403837",
"0.53660214",
"0.52223015",
"0.52110463",
"0.5164623",
"0.51575583",
"0.51482254",
"0.... | 0.8982534 | 1 |
Obtains a single coefficient in linear constraint matrix. getaij(self,i_,j_) | def getaij(self,i_,j_):
aij_ = ctypes.c_double()
res = __library__.MSK_XX_getaij(self.__nativep,i_,j_,ctypes.byref(aij_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
aij_ = aij_.value
_aij_return_value = aij_
return (_aij_return_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getaij(self,i_,j_): # 3\n res,resargs = self.__obj.getaij(i_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _aij_return_value = resargs\n return _aij_return_value",
"def getqobjij(self,i_,j_): # 3\n res,resargs = self.__obj.... | [
"0.7493986",
"0.64376247",
"0.6392298",
"0.6329551",
"0.6308506",
"0.6269593",
"0.6261952",
"0.6139124",
"0.61024755",
"0.61000454",
"0.60522926",
"0.5945203",
"0.5922942",
"0.59190106",
"0.5905818",
"0.5891535",
"0.5806236",
"0.578032",
"0.57758945",
"0.5755988",
"0.572439",... | 0.7658511 | 0 |
Obtains the number nonzeros in a rectangular piece of the linear constraint matrix. getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_) | def getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_):
numnz_ = ctypes.c_int32()
res = __library__.MSK_XX_getapiecenumnz(self.__nativep,firsti_,lasti_,firstj_,lastj_,ctypes.byref(numnz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numnz_ = numnz_.value
_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_): # 3\n res,resargs = self.__obj.getapiecenumnz(firsti_,lasti_,firstj_,lastj_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _numnz_return_value = resargs\n return _numnz_return_value"... | [
"0.81828666",
"0.7616695",
"0.75478375",
"0.7345593",
"0.7094305",
"0.69862217",
"0.6438003",
"0.6430326",
"0.61437994",
"0.5996406",
"0.57730126",
"0.5638592",
"0.55720025",
"0.5547465",
"0.5504438",
"0.54538846",
"0.54515296",
"0.5447022",
"0.5447022",
"0.5447022",
"0.54470... | 0.79388636 | 1 |
Obtains the number of nonzero elements in one column of the linear constraint matrix getacolnumnz(self,i_) | def getacolnumnz(self,i_):
nzj_ = ctypes.c_int32()
res = __library__.MSK_XX_getacolnumnz(self.__nativep,i_,ctypes.byref(nzj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
nzj_ = nzj_.value
_nzj_return_value = nzj_
return (_nzj_return_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getacolnumnz(self,i_): # 3\n res,resargs = self.__obj.getacolnumnz(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nzj_return_value = resargs\n return _nzj_return_value",
"def getarownumnz(self,i_): # 3\n res,resargs = self.... | [
"0.78955895",
"0.6964569",
"0.66872597",
"0.6391909",
"0.63877714",
"0.632295",
"0.63077927",
"0.6225606",
"0.6197037",
"0.61326903",
"0.61255556",
"0.60932916",
"0.60414433",
"0.60414433",
"0.5994617",
"0.5992448",
"0.59544677",
"0.5947154",
"0.5945124",
"0.5940501",
"0.5913... | 0.7779385 | 1 |
Obtains one column of the linear constraint matrix. getacol(self,j_,subj_,valj_) | def getacol(self,j_,subj_,valj_):
nzj_ = ctypes.c_int32()
_subj_minlength = self.getacolnumnz((j_))
if self.getacolnumnz((j_)) > 0 and subj_ is not None and len(subj_) != self.getacolnumnz((j_)):
raise ValueError("Array argument subj is not long enough: Is %d, expected %d" % (len(subj_),self.getacolnu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getacol(self,j_,subj,valj): # 3\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(subj)\n except TypeError:\n try:\n _tmparr_... | [
"0.7543346",
"0.6976331",
"0.6404439",
"0.6330695",
"0.6330695",
"0.6330695",
"0.6279653",
"0.6225708",
"0.6189424",
"0.61752653",
"0.61163116",
"0.5897423",
"0.5880596",
"0.5877866",
"0.5869485",
"0.58650994",
"0.58379793",
"0.57342744",
"0.56699353",
"0.564279",
"0.5636988"... | 0.74751633 | 1 |
Obtains a sequence of columns from the coefficient matrix. getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_) | def getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_):
maxnumnz_ = self.getacolslicenumnz((first_),(last_))
_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 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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... | [
"0.68298435",
"0.68189096",
"0.6633351",
"0.6410343",
"0.635861",
"0.62143683",
"0.59577066",
"0.58845204",
"0.5850808",
"0.5840428",
"0.5830795",
"0.5818751",
"0.5787353",
"0.5729822",
"0.57094395",
"0.5652637",
"0.5626832",
"0.5602785",
"0.557522",
"0.55677515",
"0.5536629"... | 0.8195238 | 0 |
Obtains one row of the linear constraint matrix. getarow(self,i_,subi_,vali_) | def getarow(self,i_,subi_,vali_):
nzi_ = ctypes.c_int32()
_subi_minlength = self.getarownumnz((i_))
if self.getarownumnz((i_)) > 0 and subi_ is not None and len(subi_) != self.getarownumnz((i_)):
raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi_),self.getarownu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getarow(self,i_,subi,vali): # 3\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_ = memoryview(subi)\n except TypeError:\n try:\n _tmparr_... | [
"0.6920191",
"0.6274343",
"0.62173253",
"0.62173253",
"0.62173253",
"0.6196485",
"0.5856732",
"0.5815419",
"0.5781744",
"0.5771555",
"0.5736372",
"0.56483686",
"0.5642731",
"0.5605737",
"0.55912125",
"0.5473553",
"0.5381739",
"0.53433347",
"0.5286959",
"0.52848995",
"0.525561... | 0.6652325 | 1 |
Obtains the number of nonzeros in a slice of columns of the coefficient matrix. getacolslicenumnz(self,first_,last_) | def getacolslicenumnz(self,first_,last_):
numnz_ = ctypes.c_int64()
res = __library__.MSK_XX_getacolslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numnz_ = numnz_.value
_numnz_return_value = numnz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getarowslicenumnz(self,first_,last_):\n numnz_ = ctypes.c_int64()\n res = __library__.MSK_XX_getarowslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n numnz_ = numnz_.value\n _numnz_return_v... | [
"0.7030425",
"0.6908309",
"0.69077706",
"0.68798804",
"0.67562634",
"0.6697987",
"0.60632735",
"0.60440516",
"0.59911394",
"0.5967844",
"0.59044164",
"0.5890069",
"0.58208543",
"0.57897",
"0.5725127",
"0.5724517",
"0.57188284",
"0.5676727",
"0.5675189",
"0.5605064",
"0.559714... | 0.7720494 | 0 |
Obtains the number of nonzeros in a slice of rows of the coefficient matrix. getarowslicenumnz(self,first_,last_) | def getarowslicenumnz(self,first_,last_):
numnz_ = ctypes.c_int64()
res = __library__.MSK_XX_getarowslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numnz_ = numnz_.value
_numnz_return_value = numnz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getacolslicenumnz(self,first_,last_):\n numnz_ = ctypes.c_int64()\n res = __library__.MSK_XX_getacolslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n numnz_ = numnz_.value\n _numnz_return_v... | [
"0.6821424",
"0.6395617",
"0.63196206",
"0.6160555",
"0.6055939",
"0.5976274",
"0.5861332",
"0.57293874",
"0.57270485",
"0.5675843",
"0.5640828",
"0.5561198",
"0.5522415",
"0.5509788",
"0.5488033",
"0.5468512",
"0.5459757",
"0.54302907",
"0.5399739",
"0.5388458",
"0.5382514",... | 0.7653431 | 0 |
Obtains a sequence of rows from the coefficient matrix. getarowslice(self,first_,last_,ptrb_,ptre_,sub_,val_) | def getarowslice(self,first_,last_,ptrb_,ptre_,sub_,val_):
maxnumnz_ = self.getarowslicenumnz((first_),(last_))
_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 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_):\n maxnumnz_ = self.getacolslicenumnz((first_),(last_))\n _ptrb_minlength = ((last_) - (first_))\n if ((last_) - (first_)) > 0 and ptrb_ is not None and len(ptrb_) != ((last_) - (first_)):\n raise ValueError(\"Array argument ptrb is not long e... | [
"0.72424006",
"0.7017984",
"0.6397862",
"0.6392683",
"0.6295936",
"0.62946856",
"0.62616587",
"0.6202416",
"0.6158898",
"0.60779953",
"0.5999932",
"0.59529024",
"0.5874609",
"0.5798113",
"0.57943004",
"0.5755523",
"0.56610376",
"0.5640397",
"0.5582677",
"0.55730736",
"0.55696... | 0.7663158 | 0 |
Obtains a sequence of rows from the coefficient matrix in sparse triplet format. getarowslicetrip(self,first_,last_,subi_,subj_,val_) | def getarowslicetrip(self,first_,last_,subi_,subj_,val_):
maxnumnz_ = self.getarowslicenumnz((first_),(last_))
_subi_minlength = (maxnumnz_)
if (maxnumnz_) > 0 and subi_ is not None and len(subi_) != (maxnumnz_):
raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getarowslicetrip(self,first_,last_,subi,subj,val): # 3\n maxnumnz_ = self.getaslicenumnz(accmode.con,(first_),(last_))\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memoryview(subi)\n except TypeError:\n try:\n ... | [
"0.7290529",
"0.70560914",
"0.6958755",
"0.61386895",
"0.5720467",
"0.5619456",
"0.56170875",
"0.5535816",
"0.5501307",
"0.5492698",
"0.5491768",
"0.54850245",
"0.5449865",
"0.5407904",
"0.5361041",
"0.5322481",
"0.53132904",
"0.5291811",
"0.5257537",
"0.5243826",
"0.5230079"... | 0.7172589 | 1 |
Obtains a sequence of columns from the coefficient matrix in triplet format. getacolslicetrip(self,first_,last_,subi_,subj_,val_) | def getacolslicetrip(self,first_,last_,subi_,subj_,val_):
maxnumnz_ = self.getacolslicenumnz((first_),(last_))
_subi_minlength = (maxnumnz_)
if (maxnumnz_) > 0 and subi_ is not None and len(subi_) != (maxnumnz_):
raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getacolslicetrip(self,first_,last_,subi,subj,val): # 3\n maxnumnz_ = self.getaslicenumnz(accmode.var,(first_),(last_))\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memoryview(subi)\n except TypeError:\n try:\n ... | [
"0.77380747",
"0.69819945",
"0.67847955",
"0.6653259",
"0.6169519",
"0.5882231",
"0.58708996",
"0.57938963",
"0.570199",
"0.56744456",
"0.56735504",
"0.5606898",
"0.5576777",
"0.5566366",
"0.5544074",
"0.55073357",
"0.5492098",
"0.54868627",
"0.5441892",
"0.5436611",
"0.54346... | 0.7907325 | 0 |
Obtains bound information for one constraint. getconbound(self,i_) | def getconbound(self,i_):
bk_ = ctypes.c_int32()
bl_ = ctypes.c_double()
bu_ = ctypes.c_double()
res = __library__.MSK_XX_getconbound(self.__nativep,i_,ctypes.byref(bk_),ctypes.byref(bl_),ctypes.byref(bu_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconbound(self,i_): # 3\n res,resargs = self.__obj.getconbound(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _bk_return_value,_bl_return_value,_bu_return_value = resargs\n _bk_return_value = boundkey(_bk_return_value)\n ret... | [
"0.8117996",
"0.67920166",
"0.6751894",
"0.67239743",
"0.6467672",
"0.62063897",
"0.6088784",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6081014",
"0.6065061",
"0.5971675",
"0.59263587",
"0.59000784",
"0.59000784",
"0.5864605... | 0.7855516 | 1 |
Obtains bound information for one variable. getvarbound(self,i_) | def getvarbound(self,i_):
bk_ = ctypes.c_int32()
bl_ = ctypes.c_double()
bu_ = ctypes.c_double()
res = __library__.MSK_XX_getvarbound(self.__nativep,i_,ctypes.byref(bk_),ctypes.byref(bl_),ctypes.byref(bu_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getvarbound(self,i_): # 3\n res,resargs = self.__obj.getvarbound(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _bk_return_value,_bl_return_value,_bu_return_value = resargs\n _bk_return_value = boundkey(_bk_return_value)\n ret... | [
"0.88780814",
"0.6618329",
"0.6337327",
"0.6297966",
"0.6271888",
"0.6069767",
"0.606333",
"0.603762",
"0.59093964",
"0.5864278",
"0.5855671",
"0.57791764",
"0.5742324",
"0.5674004",
"0.56727177",
"0.56428105",
"0.5599474",
"0.55750924",
"0.5573686",
"0.5553733",
"0.554883",
... | 0.8567469 | 1 |
Obtains bounds information for a slice of the constraints. getconboundslice(self,first_,last_,bk_,bl_,bu_) | def getconboundslice(self,first_,last_,bk_,bl_,bu_):
_bk_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and bk_ is not None and len(bk_) != ((last_) - (first_)):
raise ValueError("Array argument bk is not long enough: Is %d, expected %d" % (len(bk_),((last_) - (first_))))
if isinstance(b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconboundslice(self,first_,last_,bk,bl,bu): # 3\n _copyback_bk = False\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\",bk)\n except TypeError:\n ... | [
"0.83687973",
"0.7650801",
"0.7564731",
"0.7493438",
"0.74723506",
"0.7434169",
"0.7281272",
"0.72708595",
"0.69236696",
"0.6754937",
"0.67351925",
"0.6625706",
"0.6625706",
"0.6625706",
"0.6625706",
"0.6625706",
"0.6625706",
"0.6625706",
"0.6625706",
"0.64139324",
"0.6381346... | 0.80538183 | 1 |
Obtains bounds information for a slice of the variables. getvarboundslice(self,first_,last_,bk_,bl_,bu_) | def getvarboundslice(self,first_,last_,bk_,bl_,bu_):
_bk_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and bk_ is not None and len(bk_) != ((last_) - (first_)):
raise ValueError("Array argument bk is not long enough: Is %d, expected %d" % (len(bk_),((last_) - (first_))))
if isinstance(b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getvarboundslice(self,first_,last_,bk,bl,bu): # 3\n _copyback_bk = False\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\",bk)\n except TypeError:\n ... | [
"0.8427269",
"0.76399803",
"0.7581138",
"0.72763824",
"0.7077902",
"0.6877357",
"0.67139685",
"0.65998864",
"0.64918834",
"0.63755333",
"0.63566226",
"0.6347929",
"0.63300616",
"0.62415",
"0.6238382",
"0.62190634",
"0.62190634",
"0.62190634",
"0.62190634",
"0.62190634",
"0.62... | 0.8042054 | 1 |
Obtains one objective coefficient. getcj(self,j_) | def getcj(self,j_):
cj_ = ctypes.c_double()
res = __library__.MSK_XX_getcj(self.__nativep,j_,ctypes.byref(cj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
cj_ = cj_.value
_cj_return_value = cj_
return (_cj_return_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getcj(self,j_): # 3\n res,resargs = self.__obj.getcj(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _cj_return_value = resargs\n return _cj_return_value",
"def jac(self):\n return self.unit_jac if self._jac is None else se... | [
"0.7897348",
"0.694601",
"0.649423",
"0.64774793",
"0.6358544",
"0.6241598",
"0.62322664",
"0.62282366",
"0.61798847",
"0.6176942",
"0.60854423",
"0.6068824",
"0.60608375",
"0.6059429",
"0.60535663",
"0.6037667",
"0.60261023",
"0.6021581",
"0.6002902",
"0.5994126",
"0.5985048... | 0.7652591 | 1 |
Obtains the fixed term in the objective. getcfix(self) | def getcfix(self):
cfix_ = ctypes.c_double()
res = __library__.MSK_XX_getcfix(self.__nativep,ctypes.byref(cfix_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
cfix_ = cfix_.value
_cfix_return_value = cfix_
return (_cfix_return_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getcfix(self): # 3\n res,resargs = self.__obj.getcfix()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _cfix_return_value = resargs\n return _cfix_return_value",
"def getCF(self):\r\n return self.lEq;",
"def CFL(self):\n ... | [
"0.7102011",
"0.69387436",
"0.61814743",
"0.61706793",
"0.6118419",
"0.6102831",
"0.60178024",
"0.59100634",
"0.58950984",
"0.5895022",
"0.5848309",
"0.58352464",
"0.5788822",
"0.5725575",
"0.57214016",
"0.56842697",
"0.56441844",
"0.56353074",
"0.56272084",
"0.56272084",
"0.... | 0.723974 | 0 |
Obtains a cone. getcone(self,k_,submem_) | def getcone(self,k_,submem_):
ct_ = ctypes.c_int32()
conepar_ = ctypes.c_double()
nummem_ = ctypes.c_int32()
_submem_minlength = self.getconeinfo((k_))[2]
if self.getconeinfo((k_))[2] > 0 and submem_ is not None and len(submem_) != self.getconeinfo((k_))[2]:
raise ValueError("Array argument su... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getcone(self,k_,submem): # 3\n _copyback_submem = False\n if submem is None:\n submem_ = None\n else:\n try:\n submem_ = memoryview(submem)\n except TypeError:\n try:\n _tmparr_submem = array.array(\"i\",submem)\n except TypeError:\n ... | [
"0.85851794",
"0.74542636",
"0.6922491",
"0.6714365",
"0.6663073",
"0.6131412",
"0.61234295",
"0.60180366",
"0.59645844",
"0.5906362",
"0.5844101",
"0.55410284",
"0.5464269",
"0.5432204",
"0.54281247",
"0.54012233",
"0.5308824",
"0.5305274",
"0.5274296",
"0.52731514",
"0.5224... | 0.783578 | 1 |
Obtains information about a cone. getconeinfo(self,k_) | def getconeinfo(self,k_):
ct_ = ctypes.c_int32()
conepar_ = ctypes.c_double()
nummem_ = ctypes.c_int32()
res = __library__.MSK_XX_getconeinfo(self.__nativep,k_,ctypes.byref(ct_),ctypes.byref(conepar_),ctypes.byref(nummem_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconeinfo(self,k_): # 3\n res,resargs = self.__obj.getconeinfo(k_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _ct_return_value,_conepar_return_value,_nummem_return_value = resargs\n _ct_return_value = conetype(_ct_return_value)\n... | [
"0.88562346",
"0.65607196",
"0.6062003",
"0.6057762",
"0.6046421",
"0.6028648",
"0.57615036",
"0.57012206",
"0.5669752",
"0.56304246",
"0.5603641",
"0.5487404",
"0.5487404",
"0.53959966",
"0.53923273",
"0.53695613",
"0.5355254",
"0.5324863",
"0.531304",
"0.5291991",
"0.528119... | 0.85250115 | 1 |
Obtains a sequence of coefficients from the objective. getclist(self,subj_,c_) | def getclist(self,subj_,c_):
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("Argument subj may ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def coefficients(self) :\n return self.__coefficients",
"def coefficients(self):\n return self._coefficients",
"def coefficients(self):\n return self._coefficients",
"def coefficients(self) :\n raise NotImplementedError",
"def coefficients(self):\r\n return self.coef_['x'... | [
"0.61023015",
"0.60017306",
"0.60017306",
"0.6000582",
"0.58433247",
"0.581803",
"0.581803",
"0.57937485",
"0.5704129",
"0.55387217",
"0.5518362",
"0.5512744",
"0.5497052",
"0.54852647",
"0.5466663",
"0.54118663",
"0.54016364",
"0.537931",
"0.5366499",
"0.5345296",
"0.5335419... | 0.70591795 | 0 |
Obtains a sequence of coefficients from the objective. getcslice(self,first_,last_,c_) | def getcslice(self,first_,last_,c_):
_c_minlength = ((last_) - (first_))
if ((last_) - (first_)) > 0 and c_ is not None and len(c_) != ((last_) - (first_)):
raise ValueError("Array argument c is not long enough: Is %d, expected %d" % (len(c_),((last_) - (first_))))
if isinstance(c_,numpy.ndarray) and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getcslice(self,first_,last_,c): # 3\n _copyback_c = False\n if c is None:\n c_ = None\n else:\n try:\n c_ = memoryview(c)\n except TypeError:\n try:\n _tmparr_c = array.array(\"d\",c)\n except TypeError:\n raise TypeError(\"Ar... | [
"0.74884826",
"0.6898075",
"0.6749403",
"0.6479534",
"0.6430882",
"0.62302166",
"0.6188517",
"0.59158885",
"0.5810388",
"0.5780244",
"0.56624705",
"0.56085896",
"0.5574313",
"0.5566425",
"0.55087215",
"0.5465687",
"0.5429033",
"0.5421072",
"0.5413725",
"0.53567517",
"0.534522... | 0.7475892 | 1 |
Obtains a double information item. getdouinf(self,whichdinf_) | def getdouinf(self,whichdinf_):
dvalue_ = ctypes.c_double()
res = __library__.MSK_XX_getdouinf(self.__nativep,whichdinf_,ctypes.byref(dvalue_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
dvalue_ = dvalue_.value
_dvalue_return_value = dvalue_
return (_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getdouinf(self,whichdinf_): # 3\n if not isinstance(whichdinf_,dinfitem): raise TypeError(\"Argument whichdinf has wrong type\")\n res,resargs = self.__obj.getdouinf(whichdinf_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _dvalue_re... | [
"0.8139567",
"0.61747223",
"0.57404494",
"0.56027913",
"0.54675555",
"0.5288993",
"0.5271653",
"0.52566004",
"0.5161955",
"0.5105282",
"0.50878364",
"0.50546545",
"0.5054538",
"0.5047877",
"0.5047438",
"0.5029467",
"0.50197035",
"0.5018882",
"0.5017841",
"0.49776104",
"0.4976... | 0.7271567 | 1 |
Obtains a double parameter. getdouparam(self,param_) | def getdouparam(self,param_):
parvalue_ = ctypes.c_double()
res = __library__.MSK_XX_getdouparam(self.__nativep,param_,ctypes.byref(parvalue_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
parvalue_ = parvalue_.value
_parvalue_return_value = parvalue_
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getdouparam(self,param_): # 3\n if not isinstance(param_,dparam): raise TypeError(\"Argument param has wrong type\")\n res,resargs = self.__obj.getdouparam(param_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _parvalue_return_value =... | [
"0.7216291",
"0.6473787",
"0.63799834",
"0.6056583",
"0.6039823",
"0.60313606",
"0.5998796",
"0.59530497",
"0.5941797",
"0.5872715",
"0.5843549",
"0.5813088",
"0.5800583",
"0.576759",
"0.57210326",
"0.56473833",
"0.5598247",
"0.5590956",
"0.55658185",
"0.5548109",
"0.5548043"... | 0.7105613 | 1 |
Computes the dual objective value associated with the solution. getdualobj(self,whichsol_) | def getdualobj(self,whichsol_):
dualobj_ = ctypes.c_double()
res = __library__.MSK_XX_getdualobj(self.__nativep,whichsol_,ctypes.byref(dualobj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
dualobj_ = dualobj_.value
_dualobj_return_value = dualobj_
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getdualobj(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getdualobj(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _dualobj_retu... | [
"0.8319954",
"0.6920154",
"0.6874271",
"0.63215345",
"0.6047877",
"0.5961174",
"0.59548587",
"0.59537184",
"0.58911043",
"0.5846982",
"0.5843001",
"0.5692419",
"0.5645508",
"0.5627053",
"0.5615924",
"0.5534404",
"0.5509056",
"0.5460137",
"0.5445977",
"0.5432232",
"0.5387754",... | 0.79599565 | 1 |
Obtains an integer information item. getintinf(self,whichiinf_) | def getintinf(self,whichiinf_):
ivalue_ = ctypes.c_int32()
res = __library__.MSK_XX_getintinf(self.__nativep,whichiinf_,ctypes.byref(ivalue_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
ivalue_ = ivalue_.value
_ivalue_return_value = ivalue_
return (_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getintinf(self,whichiinf_): # 3\n if not isinstance(whichiinf_,iinfitem): raise TypeError(\"Argument whichiinf has wrong type\")\n res,resargs = self.__obj.getintinf(whichiinf_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _ivalue_re... | [
"0.8475795",
"0.7179274",
"0.71271324",
"0.6888658",
"0.61792326",
"0.61792326",
"0.61284137",
"0.6106969",
"0.6090202",
"0.60640436",
"0.5953424",
"0.5949886",
"0.5806069",
"0.5791027",
"0.57118326",
"0.57102764",
"0.5709367",
"0.5658817",
"0.56567997",
"0.5631905",
"0.55623... | 0.80981195 | 1 |
Obtains a long integer information item. getlintinf(self,whichliinf_) | def getlintinf(self,whichliinf_):
ivalue_ = ctypes.c_int64()
res = __library__.MSK_XX_getlintinf(self.__nativep,whichliinf_,ctypes.byref(ivalue_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
ivalue_ = ivalue_.value
_ivalue_return_value = ivalue_
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getlintinf(self,whichliinf_): # 3\n if not isinstance(whichliinf_,liinfitem): raise TypeError(\"Argument whichliinf has wrong type\")\n res,resargs = self.__obj.getlintinf(whichliinf_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _iv... | [
"0.80946934",
"0.72867656",
"0.6978907",
"0.6415118",
"0.5947596",
"0.58325267",
"0.5797108",
"0.5752881",
"0.5589606",
"0.53243405",
"0.53243405",
"0.530509",
"0.52829987",
"0.5265193",
"0.52526945",
"0.52087086",
"0.5194227",
"0.5194157",
"0.5146076",
"0.512527",
"0.512527"... | 0.8262633 | 0 |
Obtains an integer parameter. getintparam(self,param_) | def getintparam(self,param_):
parvalue_ = ctypes.c_int32()
res = __library__.MSK_XX_getintparam(self.__nativep,param_,ctypes.byref(parvalue_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
parvalue_ = parvalue_.value
_parvalue_return_value = parvalue_
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getintparam(self,param_): # 3\n if not isinstance(param_,iparam): raise TypeError(\"Argument param has wrong type\")\n res,resargs = self.__obj.getintparam(param_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _parvalue_return_value =... | [
"0.85646707",
"0.78389037",
"0.7805483",
"0.73943967",
"0.73424447",
"0.72594076",
"0.70536864",
"0.66357017",
"0.6586575",
"0.65700495",
"0.64918053",
"0.64472634",
"0.6425993",
"0.62868637",
"0.625066",
"0.6248809",
"0.6234398",
"0.62195563",
"0.61886173",
"0.61466604",
"0.... | 0.8217122 | 1 |
Obtains the number of preallocated constraints in the optimization task. getmaxnumcon(self) | def getmaxnumcon(self):
maxnumcon_ = ctypes.c_int32()
res = __library__.MSK_XX_getmaxnumcon(self.__nativep,ctypes.byref(maxnumcon_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
maxnumcon_ = maxnumcon_.value
_maxnumcon_return_value = maxnumcon_
return (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getmaxnumcon(self): # 3\n res,resargs = self.__obj.getmaxnumcon()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _maxnumcon_return_value = resargs\n return _maxnumcon_return_value",
"def getmaxnumcone(self): # 3\n res,resargs = ... | [
"0.759891",
"0.6874313",
"0.6721544",
"0.659825",
"0.6556438",
"0.65256405",
"0.6443037",
"0.64323866",
"0.6414494",
"0.63860065",
"0.63830274",
"0.63426894",
"0.63342726",
"0.6323241",
"0.63202226",
"0.63005996",
"0.62932444",
"0.62694067",
"0.62653077",
"0.62133545",
"0.619... | 0.7039377 | 1 |
Obtains the length of the name of a semidefinite variable. getbarvarnamelen(self,i_) | def getbarvarnamelen(self,i_):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getbarvarnamelen(self.__nativep,i_,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) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getbarvarnamelen(self,i_): # 3\n res,resargs = self.__obj.getbarvarnamelen(i_)\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 getvarnamelen(self,i_): # 3\n res,resarg... | [
"0.906098",
"0.8285865",
"0.80473113",
"0.757455",
"0.7460946",
"0.68837076",
"0.68781674",
"0.6619891",
"0.65064466",
"0.6430593",
"0.61780226",
"0.6132598",
"0.6126362",
"0.61090654",
"0.60909855",
"0.60322",
"0.597303",
"0.59556276",
"0.5942991",
"0.5911243",
"0.59078074",... | 0.8887873 | 1 |
Obtains the name of a semidefinite variable. getbarvarname(self,i_) | def getbarvarname(self,i_):
sizename_ = (1 + self.getbarvarnamelen((i_)))
name_ = (ctypes.c_char * (sizename_))()
res = __library__.MSK_XX_getbarvarname(self.__nativep,i_,sizename_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_name_retval = name_.val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getbarvarname(self,i_): # 3\n sizename_ = (1 + self.getbarvarnamelen((i_)))\n arr_name = array.array(\"b\",[0]*((sizename_)))\n memview_arr_name = memoryview(arr_name)\n res,resargs = self.__obj.getbarvarname(i_,sizename_,memview_arr_name)\n if res != 0:\n result,msg = self.__ge... | [
"0.83525527",
"0.7066876",
"0.70244217",
"0.6815771",
"0.6767695",
"0.6751615",
"0.6699136",
"0.6654075",
"0.660367",
"0.6567873",
"0.65562636",
"0.652688",
"0.63431066",
"0.6170237",
"0.61540467",
"0.6131156",
"0.5982232",
"0.59685725",
"0.592272",
"0.59037554",
"0.5895002",... | 0.8312654 | 1 |
Obtains the index of semidefinite variable from its name. getbarvarnameindex(self,somename_) | def getbarvarnameindex(self,somename_):
if isinstance(somename_,unicode):
somename_ = somename_.encode("utf-8",errors="replace")
asgn_ = ctypes.c_int32()
index_ = ctypes.c_int32()
res = __library__.MSK_XX_getbarvarnameindex(self.__nativep,somename_,ctypes.byref(asgn_),ctypes.byref(index_))
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getbarvarnameindex(self,somename_): # 3\n res,resargs = self.__obj.getbarvarnameindex(somename_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _asgn_return_value,_index_return_value = resargs\n return _asgn_return_value,_index_return_... | [
"0.87919295",
"0.77998066",
"0.758929",
"0.73232466",
"0.72942966",
"0.70397556",
"0.68763274",
"0.6527494",
"0.63246256",
"0.6289317",
"0.62172043",
"0.6201318",
"0.6189726",
"0.6124115",
"0.61120933",
"0.61010575",
"0.6051296",
"0.6038391",
"0.60204947",
"0.5998834",
"0.599... | 0.8470228 | 1 |
Generates systematic names for variables. generatevarnames(self,subj_,fmt_,dims_,sp_) | def generatevarnames(self,subj_,fmt_,dims_,sp_):
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... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def var_name(i, j):\n return \"x_\" + str(i) + \",\" + str(j)",
"def _var_name_sub(self, sprintf, quote=False):\n q = ''\n if quote:\n q = \"'\"\n name_list = map(lambda x: q + self.cdict[x][0] + q, sprintf[\"vars\"] )\n return sprintf[\"text\"] % tuple(name_list)",
... | [
"0.6139157",
"0.5973622",
"0.5816728",
"0.5790525",
"0.57094544",
"0.55101526",
"0.5501698",
"0.54202396",
"0.5395023",
"0.5386658",
"0.5385736",
"0.5382898",
"0.5350833",
"0.5279343",
"0.5254986",
"0.52490866",
"0.5238918",
"0.5237092",
"0.523355",
"0.5229274",
"0.51856",
... | 0.7959128 | 0 |
Generates systematic names for constraints. generateconnames(self,subi_,fmt_,dims_,sp_) | def generateconnames(self,subi_,fmt_,dims_,sp_):
num_ = None
if num_ is None:
num_ = len(subi_)
elif num_ != len(subi_):
raise IndexError("Inconsistent length of array subi")
if subi_ is None:
raise ValueError("Argument subi cannot be None")
if subi_ is None:
raise ValueError... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def generateconenames(self,subk_,fmt_,dims_,sp_):\n num_ = None\n if num_ is None:\n num_ = len(subk_)\n elif num_ != len(subk_):\n raise IndexError(\"Inconsistent length of array subk\")\n if subk_ is None:\n raise ValueError(\"Argument subk cannot be None\")\n if subk_ is None:\n ... | [
"0.71432316",
"0.6309858",
"0.57458603",
"0.5728091",
"0.5542116",
"0.5457417",
"0.54459995",
"0.5413401",
"0.5405197",
"0.5331198",
"0.5301801",
"0.5269671",
"0.526506",
"0.52508026",
"0.5176214",
"0.5176144",
"0.51522493",
"0.5143848",
"0.50646645",
"0.50584084",
"0.505461"... | 0.80321515 | 0 |
Generates systematic names for cone. generateconenames(self,subk_,fmt_,dims_,sp_) | def generateconenames(self,subk_,fmt_,dims_,sp_):
num_ = None
if num_ is None:
num_ = len(subk_)
elif num_ != len(subk_):
raise IndexError("Inconsistent length of array subk")
if subk_ is None:
raise ValueError("Argument subk cannot be None")
if subk_ is None:
raise ValueErro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def generateconnames(self,subi_,fmt_,dims_,sp_):\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 subi_ is None:\n raise ValueError(\"Argument subi cannot be None\")\n if subi_ is None:\n ... | [
"0.74384165",
"0.58503294",
"0.5830912",
"0.5807586",
"0.5752899",
"0.5612548",
"0.5604318",
"0.55963373",
"0.5569974",
"0.5561796",
"0.54910266",
"0.54244846",
"0.5389508",
"0.53837425",
"0.53835374",
"0.5380686",
"0.5340771",
"0.5326651",
"0.53238434",
"0.53188485",
"0.5311... | 0.7758646 | 0 |
Sets the name of a constraint. putconname(self,i_,name_) | def putconname(self,i_,name_):
if isinstance(name_,unicode):
name_ = name_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_putconname(self.__nativep,i_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putconname(self,i_,name_): # 3\n res = self.__obj.putconname(i_,name_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putconename(self,j_,name_): # 3\n res = self.__obj.putconename(j_,name_)\n if res != 0:\n result,msg = ... | [
"0.8193894",
"0.7109492",
"0.6670976",
"0.66550237",
"0.6557067",
"0.6499532",
"0.64980155",
"0.6484204",
"0.6475017",
"0.6475017",
"0.64716566",
"0.64716566",
"0.64716566",
"0.64716566",
"0.64716566",
"0.64367193",
"0.64367193",
"0.64250505",
"0.64250505",
"0.64250505",
"0.6... | 0.7829893 | 1 |
Sets the name of a variable. putvarname(self,j_,name_) | def putvarname(self,j_,name_):
if isinstance(name_,unicode):
name_ = name_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_putvarname(self.__nativep,j_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putvarname(self,j_,name_): # 3\n res = self.__obj.putvarname(j_,name_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putbarvarname(self,j_,name_): # 3\n res = self.__obj.putbarvarname(j_,name_)\n if res != 0:\n result,ms... | [
"0.8883954",
"0.7846457",
"0.7583609",
"0.7371796",
"0.6804934",
"0.6749491",
"0.6718",
"0.6678017",
"0.6662674",
"0.66056114",
"0.66056114",
"0.6533437",
"0.65012705",
"0.65012705",
"0.6494305",
"0.64568096",
"0.64568096",
"0.6420372",
"0.64115626",
"0.64104736",
"0.6387735"... | 0.8425244 | 1 |
Sets the name of a cone. putconename(self,j_,name_) | def putconename(self,j_,name_):
if isinstance(name_,unicode):
name_ = name_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_putconename(self.__nativep,j_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putconename(self,j_,name_): # 3\n res = self.__obj.putconename(j_,name_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putconname(self,i_,name_): # 3\n res = self.__obj.putconname(i_,name_)\n if res != 0:\n result,msg = ... | [
"0.8515966",
"0.77436495",
"0.7510013",
"0.6582177",
"0.6530854",
"0.6465643",
"0.64578557",
"0.64150274",
"0.63634545",
"0.63573754",
"0.63573754",
"0.6346879",
"0.6346033",
"0.6333818",
"0.6333818",
"0.6333818",
"0.6333818",
"0.6326524",
"0.6326524",
"0.6326524",
"0.6326524... | 0.7865969 | 1 |
Sets the name of a semidefinite variable. putbarvarname(self,j_,name_) | def putbarvarname(self,j_,name_):
if isinstance(name_,unicode):
name_ = name_.encode("utf-8",errors="replace")
res = __library__.MSK_XX_putbarvarname(self.__nativep,j_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def putbarvarname(self,j_,name_): # 3\n res = self.__obj.putbarvarname(j_,name_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)",
"def putvarname(self,j_,name_): # 3\n res = self.__obj.putvarname(j_,name_)\n if res != 0:\n result,ms... | [
"0.8725043",
"0.78685296",
"0.73790705",
"0.63185453",
"0.62304795",
"0.61820215",
"0.6175833",
"0.60793555",
"0.60779697",
"0.6025984",
"0.5947061",
"0.5932117",
"0.58367765",
"0.58295",
"0.58150184",
"0.5744822",
"0.57223016",
"0.5708944",
"0.5708944",
"0.57083535",
"0.5683... | 0.83028346 | 1 |
Obtains the length of the name of a variable. getvarnamelen(self,i_) | def getvarnamelen(self,i_):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getvarnamelen(self.__nativep,i_,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) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getvarnamelen(self,i_): # 3\n res,resargs = self.__obj.getvarnamelen(i_)\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 getbarvarnamelen(self,i_): # 3\n res,resargs =... | [
"0.91696215",
"0.86523247",
"0.83191776",
"0.74700165",
"0.74440676",
"0.6821054",
"0.6626158",
"0.6521564",
"0.64515024",
"0.64394104",
"0.640624",
"0.63913447",
"0.6386585",
"0.62835014",
"0.6280414",
"0.6236239",
"0.618746",
"0.6163219",
"0.61378926",
"0.6079825",
"0.60534... | 0.8870697 | 1 |
Obtains the name of a variable. getvarname(self,j_) | def getvarname(self,j_):
sizename_ = (1 + self.getvarnamelen((j_)))
name_ = (ctypes.c_char * (sizename_))()
res = __library__.MSK_XX_getvarname(self.__nativep,j_,sizename_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_name_retval = name_.value.decode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getvarname(self,j_): # 3\n sizename_ = (1 + self.getvarnamelen((j_)))\n arr_name = array.array(\"b\",[0]*((sizename_)))\n memview_arr_name = memoryview(arr_name)\n res,resargs = self.__obj.getvarname(j_,sizename_,memview_arr_name)\n if res != 0:\n result,msg = self.__getlasterro... | [
"0.806976",
"0.75603807",
"0.7076541",
"0.6987677",
"0.6888855",
"0.6750818",
"0.65493554",
"0.65462774",
"0.6493769",
"0.64399004",
"0.6420192",
"0.6387897",
"0.6376338",
"0.6375689",
"0.6283686",
"0.6280662",
"0.627458",
"0.6198005",
"0.61735547",
"0.616751",
"0.61630327",
... | 0.8035467 | 1 |
Obtains the length of the name of a constraint. getconnamelen(self,i_) | def getconnamelen(self,i_):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getconnamelen(self.__nativep,i_,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) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconnamelen(self,i_): # 3\n res,resargs = self.__obj.getconnamelen(i_)\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 getconenamelen(self,i_): # 3\n res,resargs = s... | [
"0.8666037",
"0.78833383",
"0.745883",
"0.7033554",
"0.69469124",
"0.6811607",
"0.6778512",
"0.6774401",
"0.6771029",
"0.6676001",
"0.6658939",
"0.6630528",
"0.6565997",
"0.65419215",
"0.6404309",
"0.63468707",
"0.59039116",
"0.564742",
"0.56071514",
"0.557387",
"0.5483508",
... | 0.84394306 | 1 |
Obtains the name of a constraint. getconname(self,i_) | def getconname(self,i_):
sizename_ = (1 + self.getconnamelen((i_)))
name_ = (ctypes.c_char * (sizename_))()
res = __library__.MSK_XX_getconname(self.__nativep,i_,sizename_,name_)
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_name_retval = name_.value.decode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconname(self,i_): # 3\n sizename_ = (1 + self.getconnamelen((i_)))\n arr_name = array.array(\"b\",[0]*((sizename_)))\n memview_arr_name = memoryview(arr_name)\n res,resargs = self.__obj.getconname(i_,sizename_,memview_arr_name)\n if res != 0:\n result,msg = self.__getlasterro... | [
"0.7562321",
"0.7176524",
"0.7070297",
"0.66708857",
"0.6398901",
"0.6233792",
"0.61329055",
"0.6105304",
"0.59759116",
"0.591931",
"0.58823484",
"0.58433723",
"0.57034266",
"0.55915326",
"0.5590233",
"0.5582501",
"0.55802125",
"0.5559249",
"0.55544347",
"0.55529326",
"0.5523... | 0.73514813 | 1 |
Obtains the length of the name of a cone. getconenamelen(self,i_) | def getconenamelen(self,i_):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getconenamelen(self.__nativep,i_,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) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getconenamelen(self,i_): # 3\n res,resargs = self.__obj.getconenamelen(i_)\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 getconnamelen(self,i_): # 3\n res,resargs = ... | [
"0.87749386",
"0.78596747",
"0.76864165",
"0.7421929",
"0.7243701",
"0.7168962",
"0.7091672",
"0.70586526",
"0.6872572",
"0.68703437",
"0.68578297",
"0.6839808",
"0.6478438",
"0.63468295",
"0.62435097",
"0.6238064",
"0.61464494",
"0.6096912",
"0.60698086",
"0.60670877",
"0.60... | 0.82536674 | 1 |
Obtains the number of members in a cone. getnumconemem(self,k_) | def getnumconemem(self,k_):
nummem_ = ctypes.c_int32()
res = __library__.MSK_XX_getnumconemem(self.__nativep,k_,ctypes.byref(nummem_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
nummem_ = nummem_.value
_nummem_return_value = nummem_
return (_nummem_re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getnumconemem(self,k_): # 3\n res,resargs = self.__obj.getnumconemem(k_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nummem_return_value = resargs\n return _nummem_return_value",
"def getconeinfo(self,k_):\n ct_ = ctypes.c_int... | [
"0.87193775",
"0.65474",
"0.63329744",
"0.6301218",
"0.6256797",
"0.60519123",
"0.60468775",
"0.6043543",
"0.6008538",
"0.6007757",
"0.5989896",
"0.5959924",
"0.59045166",
"0.58832043",
"0.5873087",
"0.5872675",
"0.58704096",
"0.58684206",
"0.5850679",
"0.5849518",
"0.5849518... | 0.79310596 | 1 |
Obtains the number of parameters of a given type. getnumparam(self,partype_) | def getnumparam(self,partype_):
numparam_ = ctypes.c_int32()
res = __library__.MSK_XX_getnumparam(self.__nativep,partype_,ctypes.byref(numparam_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numparam_ = numparam_.value
_numparam_return_value = numparam_
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getnumparam(self,partype_): # 3\n if not isinstance(partype_,parametertype): raise TypeError(\"Argument partype has wrong type\")\n res,resargs = self.__obj.getnumparam(partype_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _numparam... | [
"0.8639025",
"0.68901056",
"0.6834211",
"0.6744843",
"0.6720308",
"0.65994984",
"0.65801895",
"0.64843345",
"0.64329004",
"0.63957036",
"0.6382901",
"0.637191",
"0.6365708",
"0.6353071",
"0.62921935",
"0.6271592",
"0.6260164",
"0.6259933",
"0.62220746",
"0.6217816",
"0.619561... | 0.770266 | 1 |
Obtains the number of nonzero quadratic terms in a constraint. getnumqconknz(self,k_) | def getnumqconknz(self,k_):
numqcnz_ = ctypes.c_int64()
res = __library__.MSK_XX_getnumqconknz64(self.__nativep,k_,ctypes.byref(numqcnz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numqcnz_ = numqcnz_.value
_numqcnz_return_value = numqcnz_
return (_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getnumqconknz(self,k_): # 3\n res,resargs = self.__obj.getnumqconknz64(k_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _numqcnz_return_value = resargs\n return _numqcnz_return_value",
"def NumCoefficients(self):\n return nc... | [
"0.81055516",
"0.69355136",
"0.6510874",
"0.6368569",
"0.6130344",
"0.6097802",
"0.6064723",
"0.59739923",
"0.59143233",
"0.5902763",
"0.58940965",
"0.587751",
"0.5876627",
"0.5862211",
"0.58392245",
"0.5836491",
"0.57720524",
"0.57618713",
"0.573745",
"0.57012874",
"0.568520... | 0.7470945 | 1 |
Obtains the number of nonzero quadratic terms in the objective. getnumqobjnz(self) | def getnumqobjnz(self):
numqonz_ = ctypes.c_int64()
res = __library__.MSK_XX_getnumqobjnz64(self.__nativep,ctypes.byref(numqonz_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
numqonz_ = numqonz_.value
_numqonz_return_value = numqonz_
return (_numqonz_r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getnumqobjnz(self): # 3\n res,resargs = self.__obj.getnumqobjnz64()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _numqonz_return_value = resargs\n return _numqonz_return_value",
"def nnz(self):\n return self.rep.nnz()",
"d... | [
"0.82374734",
"0.6691824",
"0.6654184",
"0.6631789",
"0.6566139",
"0.6549166",
"0.6526288",
"0.6477858",
"0.64586747",
"0.6448433",
"0.6430575",
"0.631171",
"0.6284648",
"0.6211166",
"0.6139018",
"0.6122343",
"0.61054796",
"0.6086818",
"0.6061201",
"0.59945405",
"0.59900707",... | 0.72892433 | 1 |
Obtains maximum number of symmetric matrix variables for which space is currently preallocated. getmaxnumbarvar(self) | def getmaxnumbarvar(self):
maxnumbarvar_ = ctypes.c_int32()
res = __library__.MSK_XX_getmaxnumbarvar(self.__nativep,ctypes.byref(maxnumbarvar_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
maxnumbarvar_ = maxnumbarvar_.value
_maxnumbarvar_return_value = ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getmaxnumbarvar(self): # 3\n res,resargs = self.__obj.getmaxnumbarvar()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _maxnumbarvar_return_value = resargs\n return _maxnumbarvar_return_value",
"def getmaxnumvar(self): # 3\n res... | [
"0.8353058",
"0.7625918",
"0.7178526",
"0.7173014",
"0.6900788",
"0.67549825",
"0.67534035",
"0.6604703",
"0.65953386",
"0.65564364",
"0.6491961",
"0.6491961",
"0.64415246",
"0.6377342",
"0.6367016",
"0.6346783",
"0.63250744",
"0.63224643",
"0.6280085",
"0.623158",
"0.6207333... | 0.7973662 | 1 |
Obtains the dimension of a symmetric matrix variable. getdimbarvarj(self,j_) | def getdimbarvarj(self,j_):
dimbarvarj_ = ctypes.c_int32()
res = __library__.MSK_XX_getdimbarvarj(self.__nativep,j_,ctypes.byref(dimbarvarj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
dimbarvarj_ = dimbarvarj_.value
_dimbarvarj_return_value = dimbarvarj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getdimbarvarj(self,j_): # 3\n res,resargs = self.__obj.getdimbarvarj(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _dimbarvarj_return_value = resargs\n return _dimbarvarj_return_value",
"def getlenbarvarj(self,j_): # 3\n re... | [
"0.8157939",
"0.7234874",
"0.7118234",
"0.66493785",
"0.62534416",
"0.6217813",
"0.61596256",
"0.6108693",
"0.610009",
"0.6096139",
"0.6055242",
"0.60185647",
"0.59672534",
"0.59501725",
"0.59287465",
"0.58893055",
"0.5870976",
"0.58589756",
"0.58523554",
"0.58254814",
"0.582... | 0.7893175 | 1 |
Obtains the length of one semidefinite variable. getlenbarvarj(self,j_) | def getlenbarvarj(self,j_):
lenbarvarj_ = ctypes.c_int64()
res = __library__.MSK_XX_getlenbarvarj(self.__nativep,j_,ctypes.byref(lenbarvarj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
lenbarvarj_ = lenbarvarj_.value
_lenbarvarj_return_value = lenbarvarj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getlenbarvarj(self,j_): # 3\n res,resargs = self.__obj.getlenbarvarj(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _lenbarvarj_return_value = resargs\n return _lenbarvarj_return_value",
"def getdimbarvarj(self,j_): # 3\n re... | [
"0.88877654",
"0.75584835",
"0.7211314",
"0.6690643",
"0.66048795",
"0.6505069",
"0.6360071",
"0.6273677",
"0.61290354",
"0.61180645",
"0.60778457",
"0.604806",
"0.5983262",
"0.5907069",
"0.583178",
"0.5763323",
"0.57298106",
"0.5695627",
"0.56907165",
"0.5678655",
"0.5666649... | 0.8653341 | 1 |
Obtains the length of the name assigned to the objective function. getobjnamelen(self) | def getobjnamelen(self):
len_ = ctypes.c_int32()
res = __library__.MSK_XX_getobjnamelen(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) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getobjnamelen(self): # 3\n res,resargs = self.__obj.getobjnamelen()\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 getvarnamelen(self,i_): # 3\n res,resargs = self.__... | [
"0.8600193",
"0.68811417",
"0.68546593",
"0.68029124",
"0.6799229",
"0.6797271",
"0.67207515",
"0.6687548",
"0.66241795",
"0.66220766",
"0.65274286",
"0.6385338",
"0.6192809",
"0.6146675",
"0.60793424",
"0.6027188",
"0.602287",
"0.59914076",
"0.59914076",
"0.59914076",
"0.599... | 0.8552058 | 1 |
Computes the primal objective value for the desired solution. getprimalobj(self,whichsol_) | def getprimalobj(self,whichsol_):
primalobj_ = ctypes.c_double()
res = __library__.MSK_XX_getprimalobj(self.__nativep,whichsol_,ctypes.byref(primalobj_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
primalobj_ = primalobj_.value
_primalobj_return_value = pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getprimalobj(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getprimalobj(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _primalob... | [
"0.8639235",
"0.6065909",
"0.60444075",
"0.59410185",
"0.5837497",
"0.5818431",
"0.5802987",
"0.57979184",
"0.5757774",
"0.5748593",
"0.57292265",
"0.5505549",
"0.54718834",
"0.54291403",
"0.542609",
"0.5413844",
"0.532878",
"0.532377",
"0.53026396",
"0.5288599",
"0.5281505",... | 0.8099829 | 1 |
Obtains all the quadratic terms in a constraint. getqconk(self,k_,qcsubi_,qcsubj_,qcval_) | def getqconk(self,k_,qcsubi_,qcsubj_,qcval_):
maxnumqcnz_ = self.getnumqconknz((k_))
numqcnz_ = ctypes.c_int64()
_qcsubi_minlength = self.getnumqconknz((k_))
if self.getnumqconknz((k_)) > 0 and qcsubi_ is not None and len(qcsubi_) != self.getnumqconknz((k_)):
raise ValueError("Array argument qcsub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getqconk(self,k_,qcsubi,qcsubj,qcval): # 3\n maxnumqcnz_ = self.getnumqconknz((k_))\n if qcsubi is None: raise TypeError(\"Invalid type for argument qcsubi\")\n _copyback_qcsubi = False\n if qcsubi is None:\n qcsubi_ = None\n else:\n try:\n qcsubi_ = memoryview(q... | [
"0.73472387",
"0.66726524",
"0.6591416",
"0.6424358",
"0.6321435",
"0.56947607",
"0.55449796",
"0.53937316",
"0.53766406",
"0.5353066",
"0.53088754",
"0.5232903",
"0.51952076",
"0.5171041",
"0.51661",
"0.51115626",
"0.5044338",
"0.50178754",
"0.50012517",
"0.49925134",
"0.498... | 0.72974324 | 1 |
Obtains all the quadratic terms in the objective. getqobj(self,qosubi_,qosubj_,qoval_) | def getqobj(self,qosubi_,qosubj_,qoval_):
maxnumqonz_ = self.getnumqobjnz()
numqonz_ = ctypes.c_int64()
_qosubi_minlength = (maxnumqonz_)
if (maxnumqonz_) > 0 and qosubi_ is not None and len(qosubi_) != (maxnumqonz_):
raise ValueError("Array argument qosubi is not long enough: Is %d, expected %d" ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getqobj(self,qosubi,qosubj,qoval): # 3\n maxnumqonz_ = self.getnumqobjnz()\n if qosubi is None: raise TypeError(\"Invalid type for argument qosubi\")\n _copyback_qosubi = False\n if qosubi is None:\n qosubi_ = None\n else:\n try:\n qosubi_ = memoryview(qosubi)\n ... | [
"0.7446692",
"0.6420837",
"0.6285769",
"0.62362957",
"0.5942086",
"0.5876235",
"0.5872058",
"0.566999",
"0.5666952",
"0.5595695",
"0.5467557",
"0.5461396",
"0.5461396",
"0.5461396",
"0.5456688",
"0.545507",
"0.5411939",
"0.53708935",
"0.53272456",
"0.5319744",
"0.5307098",
... | 0.7120849 | 1 |
Obtains one coefficient from the quadratic term of the objective getqobjij(self,i_,j_) | def getqobjij(self,i_,j_):
qoij_ = ctypes.c_double()
res = __library__.MSK_XX_getqobjij(self.__nativep,i_,j_,ctypes.byref(qoij_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
qoij_ = qoij_.value
_qoij_return_value = qoij_
return (_qoij_return_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getqobjij(self,i_,j_): # 3\n res,resargs = self.__obj.getqobjij(i_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _qoij_return_value = resargs\n return _qoij_return_value",
"def getCoefficient(self):\n return _libsbml.Flux... | [
"0.7394904",
"0.6306659",
"0.6125218",
"0.6117796",
"0.59879345",
"0.5969218",
"0.5932629",
"0.5920546",
"0.59181994",
"0.5905317",
"0.58951527",
"0.58876437",
"0.5873334",
"0.5761676",
"0.57416713",
"0.5738999",
"0.57350576",
"0.57144594",
"0.570241",
"0.570241",
"0.5692089"... | 0.73838377 | 1 |
Obtains the complete solution. getsolution(self,whichsol_,skc_,skx_,skn_,xc_,xx_,y_,slc_,suc_,slx_,sux_,snx_) | def getsolution(self,whichsol_,skc_,skx_,skn_,xc_,xx_,y_,slc_,suc_,slx_,sux_,snx_):
prosta_ = ctypes.c_int32()
solsta_ = ctypes.c_int32()
_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 lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getsolution(self,whichsol_,skc,skx,skn,xc,xx,y,slc,suc,slx,sux,snx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_skc = False\n if skc is None:\n skc_ = None\n else:\n try:\n skc_ = memoryview(skc)\n ... | [
"0.8545925",
"0.7747821",
"0.7333495",
"0.7199789",
"0.68386203",
"0.66661495",
"0.6665564",
"0.66491985",
"0.6588644",
"0.6554875",
"0.65271825",
"0.6473194",
"0.6416208",
"0.632671",
"0.63102174",
"0.62922955",
"0.62530744",
"0.6231695",
"0.62263197",
"0.61406004",
"0.61170... | 0.8528952 | 1 |
Obtains the solution status. getsolsta(self,whichsol_) | def getsolsta(self,whichsol_):
solsta_ = ctypes.c_int32()
res = __library__.MSK_XX_getsolsta(self.__nativep,whichsol_,ctypes.byref(solsta_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_solsta_return_value = solsta(solsta_.value)
return (_solsta_return_val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getsolsta(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getsolsta(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _solsta_return_... | [
"0.8332325",
"0.67369443",
"0.6637133",
"0.65710145",
"0.63403517",
"0.6337015",
"0.6313975",
"0.6290875",
"0.6236583",
"0.61838657",
"0.6070488",
"0.6067338",
"0.6028722",
"0.60181767",
"0.59323597",
"0.5913741",
"0.58426934",
"0.5825443",
"0.57618636",
"0.56496173",
"0.5648... | 0.79787683 | 1 |
Obtains the problem status. getprosta(self,whichsol_) | def getprosta(self,whichsol_):
prosta_ = ctypes.c_int32()
res = __library__.MSK_XX_getprosta(self.__nativep,whichsol_,ctypes.byref(prosta_))
if res != 0:
_,msg = self.__getlasterror(res)
raise Error(rescode(res),msg)
_prosta_return_value = prosta(prosta_.value)
return (_prosta_return_val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getprosta(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getprosta(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _prosta_return_... | [
"0.8061198",
"0.6539571",
"0.63518715",
"0.62043124",
"0.588598",
"0.5827498",
"0.5815437",
"0.5792493",
"0.568136",
"0.5551725",
"0.55403644",
"0.5519703",
"0.55097705",
"0.5475015",
"0.5456512",
"0.5454256",
"0.5443278",
"0.5402819",
"0.53696334",
"0.5313365",
"0.5283332",
... | 0.76344854 | 1 |
Obtains the status keys for the constraints. getskc(self,whichsol_,skc_) | def getskc(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 isinstance(skc_,numpy.ndarray) and not skc_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getskc(self,whichsol_,skc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_skc = False\n if skc is None:\n skc_ = None\n else:\n try:\n skc_ = memoryview(skc)\n except TypeError:\n try:\n ... | [
"0.7628529",
"0.64641875",
"0.6297897",
"0.6218528",
"0.6176679",
"0.60891193",
"0.60776615",
"0.6005346",
"0.58437234",
"0.5784157",
"0.5729363",
"0.56601924",
"0.5591095",
"0.5427357",
"0.54007435",
"0.5310639",
"0.5267366",
"0.52485293",
"0.51785713",
"0.5076993",
"0.50753... | 0.7737572 | 0 |
Obtains the status keys for the scalar variables. getskx(self,whichsol_,skx_) | def getskx(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 isinstance(skx_,numpy.ndarray) and not skx_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getskx(self,whichsol_,skx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n _copyback_skx = False\n if skx is None:\n skx_ = None\n else:\n try:\n skx_ = memoryview(skx)\n except TypeError:\n try:\n ... | [
"0.78065765",
"0.63683814",
"0.62353045",
"0.6215446",
"0.61820394",
"0.61591494",
"0.6133144",
"0.61062807",
"0.6047507",
"0.59702194",
"0.5943474",
"0.5915708",
"0.580595",
"0.5664523",
"0.5435939",
"0.53950316",
"0.5300313",
"0.52181596",
"0.51550823",
"0.51532644",
"0.510... | 0.78649473 | 0 |
Obtains the status keys for the conic constraints. getskn(self,whichsol_,skn_) | def getskn(self,whichsol_,skn_):
_skn_minlength = self.getnumcone()
if self.getnumcone() > 0 and skn_ is not None and len(skn_) != self.getnumcone():
raise ValueError("Array argument skn is not long enough: Is %d, expected %d" % (len(skn_),self.getnumcone()))
if isinstance(skn_,numpy.ndarray) and not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getskc(self,whichsol_,skc_):\n _skc_minlength = self.getnumcon()\n if self.getnumcon() > 0 and skc_ is not None and len(skc_) != self.getnumcon():\n raise ValueError(\"Array argument skc is not long enough: Is %d, expected %d\" % (len(skc_),self.getnumcon()))\n if isinstance(skc_,numpy.ndarray) a... | [
"0.6662831",
"0.6497118",
"0.6283685",
"0.6198206",
"0.58799136",
"0.5795298",
"0.5409666",
"0.53260463",
"0.5285261",
"0.5234887",
"0.5229472",
"0.5209229",
"0.5130687",
"0.5127639",
"0.50948286",
"0.503141",
"0.49997705",
"0.49190468",
"0.49169722",
"0.4883842",
"0.4841338"... | 0.76341337 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.