query
stringlengths
9
9.05k
document
stringlengths
10
222k
negatives
listlengths
19
20
metadata
dict
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])
[ "def putlicensewait(self,licwait_): # 3\n res = self.__obj.putlicensewait(licwait_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def set_license(self, license_type):\n css_selector = (\n \"ul.license-types li[data-license={license_type}] button\"\n ).format(license_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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])
[ "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 self._license = license", "def license(self, license):\n\n self._license = license", "def upload_license(s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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(...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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") ...
[ "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:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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])
[ "def cleanup(self):\n if self.authed:\n self.stop_crypto()\n GPIO.cleanup()\n self.spi.close()", "def licensecleanup(): # 3\n res = _msk.Env.licensecleanup()\n if res != 0:\n raise Error(rescode(res),\"\")", "def cleanup(self):\n logger.debug('Beginning cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "def __init__(self, task_id, name, description, version, is_distributed,\n input_types, output_types, tool_options, nproc, resources, chunk_keys, max_nchunks):\n super(ScatterToolContractTask, self).__init__(task_id, name, description, version, is_distributed,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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)", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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) ...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 append_constraints(self):\n self.load_constraints(append=True)\n self.status_set(\"constraints appended.\")", "d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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: ...
[ "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\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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)", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 _...
[ "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"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 get_num_nonzeros(self):\n return CPX_PROC.getn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "def putacolslice(self,first_,last_,ptrb_,ptre_,asub_,aval_):\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb cannot be None\")\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb may not be None\")\n if isinstance(ptrb_, numpy.ndarray) and ptrb_.dtype is numpy.dtype(numpy.int64) and pt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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) _...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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) _...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 getCoefficient(self):\n return _libsbml.FluxObjective_getCoeff...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 occ_coeff(self):\n return self._mo_coeff_full[:, self._acti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "def get_coefficients(self, *args):\n def getcoef(row, col):\n return CPX_PROC.getcoef(self._env._e, self._cplex._lp, row, col)\n if len(args) == 2:\n return getcoef(self._conv(args[0]),\n self._cplex.variables._conv(args[1]))\n elif len(args) == ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 (_...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 (...
[ "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 num_constraints(self):\n return self._k.sha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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)", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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_ ...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 get_num_quadratic_nonzeros(self):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 get_num_quadratic_nonzeros(self):\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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.__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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" ...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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)
[ "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 get_quadratic_coefficients(self, *args):\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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...
[ "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_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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_...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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_...
[ "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 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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 ...
[ "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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the xc vector for a solution. getxc(self,whichsol_,xc_)
def getxc(self,whichsol_,xc_): _xc_minlength = self.getnumcon() if self.getnumcon() > 0 and xc_ is not None and len(xc_) != self.getnumcon(): raise ValueError("Array argument xc is not long enough: Is %d, expected %d" % (len(xc_),self.getnumcon())) if isinstance(xc_,numpy.ndarray) and not xc_.flags.wr...
[ "def getxc(self,whichsol_,xc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if xc is None: raise TypeError(\"Invalid type for argument xc\")\n _copyback_xc = False\n if xc is None:\n xc_ = None\n else:\n try:\n xc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the xx vector for a solution. getxx(self,whichsol_,xx_)
def getxx(self,whichsol_,xx_): _xx_minlength = self.getnumvar() if self.getnumvar() > 0 and xx_ is not None and len(xx_) != self.getnumvar(): raise ValueError("Array argument xx is not long enough: Is %d, expected %d" % (len(xx_),self.getnumvar())) if isinstance(xx_,numpy.ndarray) and not xx_.flags.wr...
[ "def getxx(self,whichsol_,xx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if xx is None: raise TypeError(\"Invalid type for argument xx\")\n _copyback_xx = False\n if xx is None:\n xx_ = None\n else:\n try:\n xx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the y vector for a solution. gety(self,whichsol_,y_)
def gety(self,whichsol_,y_): _y_minlength = self.getnumcon() if self.getnumcon() > 0 and y_ is not None and len(y_) != self.getnumcon(): raise ValueError("Array argument y is not long enough: Is %d, expected %d" % (len(y_),self.getnumcon())) if isinstance(y_,numpy.ndarray) and not y_.flags.writeable: ...
[ "def gety(self,whichsol_,y): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if y is None: raise TypeError(\"Invalid type for argument y\")\n _copyback_y = False\n if y is None:\n y_ = None\n else:\n try:\n y_ = memo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the slc vector for a solution. getslc(self,whichsol_,slc_)
def getslc(self,whichsol_,slc_): _slc_minlength = self.getnumcon() if self.getnumcon() > 0 and slc_ is not None and len(slc_) != self.getnumcon(): raise ValueError("Array argument slc is not long enough: Is %d, expected %d" % (len(slc_),self.getnumcon())) if isinstance(slc_,numpy.ndarray) and not slc_...
[ "def getslc(self,whichsol_,slc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slc is None: raise TypeError(\"Invalid type for argument slc\")\n _copyback_slc = False\n if slc is None:\n slc_ = None\n else:\n try:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the suc vector for a solution. getsuc(self,whichsol_,suc_)
def getsuc(self,whichsol_,suc_): _suc_minlength = self.getnumcon() if self.getnumcon() > 0 and suc_ is not None and len(suc_) != self.getnumcon(): raise ValueError("Array argument suc is not long enough: Is %d, expected %d" % (len(suc_),self.getnumcon())) if isinstance(suc_,numpy.ndarray) and not suc_...
[ "def getsuc(self,whichsol_,suc): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if suc is None: raise TypeError(\"Invalid type for argument suc\")\n _copyback_suc = False\n if suc is None:\n suc_ = None\n else:\n try:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the slx vector for a solution. getslx(self,whichsol_,slx_)
def getslx(self,whichsol_,slx_): _slx_minlength = self.getnumvar() if self.getnumvar() > 0 and slx_ is not None and len(slx_) != self.getnumvar(): raise ValueError("Array argument slx is not long enough: Is %d, expected %d" % (len(slx_),self.getnumvar())) if isinstance(slx_,numpy.ndarray) and not slx_...
[ "def getslx(self,whichsol_,slx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if slx is None: raise TypeError(\"Invalid type for argument slx\")\n _copyback_slx = False\n if slx is None:\n slx_ = None\n else:\n try:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the sux vector for a solution. getsux(self,whichsol_,sux_)
def getsux(self,whichsol_,sux_): _sux_minlength = self.getnumvar() if self.getnumvar() > 0 and sux_ is not None and len(sux_) != self.getnumvar(): raise ValueError("Array argument sux is not long enough: Is %d, expected %d" % (len(sux_),self.getnumvar())) if isinstance(sux_,numpy.ndarray) and not sux_...
[ "def getsux(self,whichsol_,sux): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if sux is None: raise TypeError(\"Invalid type for argument sux\")\n _copyback_sux = False\n if sux is None:\n sux_ = None\n else:\n try:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the snx vector for a solution. getsnx(self,whichsol_,snx_)
def getsnx(self,whichsol_,snx_): _snx_minlength = self.getnumvar() if self.getnumvar() > 0 and snx_ is not None and len(snx_) != self.getnumvar(): raise ValueError("Array argument snx is not long enough: Is %d, expected %d" % (len(snx_),self.getnumvar())) if isinstance(snx_,numpy.ndarray) and not snx_...
[ "def getsnx(self,whichsol_,snx): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n if snx is None: raise TypeError(\"Invalid type for argument snx\")\n _copyback_snx = False\n if snx is None:\n snx_ = None\n else:\n try:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the status keys for a slice of the constraints. getskcslice(self,whichsol_,first_,last_,skc_)
def getskcslice(self,whichsol_,first_,last_,skc_): _skc_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and skc_ is not None and len(skc_) != ((last_) - (first_)): raise ValueError("Array argument skc is not long enough: Is %d, expected %d" % (len(skc_),((last_) - (first_)))) if isinstanc...
[ "def getskcslice(self,whichsol_,first_,last_,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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtains the status keys for a slice of the scalar variables. getskxslice(self,whichsol_,first_,last_,skx_)
def getskxslice(self,whichsol_,first_,last_,skx_): _skx_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and skx_ is not None and len(skx_) != ((last_) - (first_)): raise ValueError("Array argument skx is not long enough: Is %d, expected %d" % (len(skx_),((last_) - (first_)))) if isinstanc...
[ "def getskxslice(self,whichsol_,first_,last_,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...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }