Home
last modified time | relevance | path

Searched refs:var2idx (Results 1 – 11 of 11) sorted by relevance

/dports/math/SCIP/scip-7.0.3/src/scip/
H A Dbenderscut_opt.c256 assert((primalvals == NULL && var2idx == NULL) || (primalvals != NULL && var2idx != NULL)); in getNlpVarSol()
258 if( var2idx != NULL && primalvals != NULL ) in getNlpVarSol()
260 assert(SCIPhashmapExists(var2idx, (void*)var) ); in getNlpVarSol()
261 idx = SCIPhashmapGetImageInt(var2idx, (void*)var); in getNlpVarSol()
536 assert(SCIPhashmapExists(var2idx, (void*)var) ); in computeStandardNLPOptimalityCut()
537 idx = SCIPhashmapGetImageInt(var2idx, (void*)var); in computeStandardNLPOptimalityCut()
552 dirderiv += coef * getNlpVarSol(var, primalvals, var2idx); in computeStandardNLPOptimalityCut()
826 && row2idx == NULL && var2idx == NULL) in SCIPgenerateAndApplyBendersOptCut()
828 && row2idx != NULL && var2idx != NULL)); in SCIPgenerateAndApplyBendersOptCut()
866 var2idx, &checkobj, &success) ); in SCIPgenerateAndApplyBendersOptCut()
[all …]
H A Dbenderscut_feasalt.c68 …SCIP_HASHMAP* var2idx; /**< mapping the variable to the index in the NLPI probl… member
111 SCIPhashmapFree(&benderscutdata->var2idx); in freeNonlinearProblem()
204 …SCIP_CALL( SCIPhashmapCreate(&benderscutdata->var2idx, SCIPblkmem(masterprob), benderscutdata->nlp… in createAuxiliaryNonlinearSubproblem()
213 …benderscutdata->nlpiprob, benderscutdata->var2idx, benderscutdata->row2idx, NULL, SCIPinfinity(sub… in createAuxiliaryNonlinearSubproblem()
229 …ata->slackvarinds[benderscutdata->nlpinslackvars] = SCIPhashmapGetImageInt(benderscutdata->var2idx, in createAuxiliaryNonlinearSubproblem()
267 assert(benderscutdata->var2idx != NULL); in updateAuxiliaryNonlinearSubproblem()
271 …updateNlpiProb(subproblem, benderscutdata->nlpi, benderscutdata->nlpiprob, benderscutdata->var2idx, in updateAuxiliaryNonlinearSubproblem()
347 if( SCIPhashmapExists(benderscutdata->var2idx, benderscutdata->nlpivars[i]) ) in generateAndApplyBendersCuts()
349 varindex = SCIPhashmapGetImageInt(benderscutdata->var2idx, benderscutdata->nlpivars[i]); in generateAndApplyBendersCuts()
368 benderscutdata->var2idx, type, FALSE, TRUE, result) ); in generateAndApplyBendersCuts()
H A Dheur_mpec.c146 heurdata->nlpiprob, heurdata->var2idx, NULL, NULL, cutoff, TRUE, FALSE) ); in createNLP()
164 assert(heurdata->var2idx != NULL); in freeNLP()
166 SCIPhashmapFree(&heurdata->var2idx); in freeNLP()
212 assert(heurdata->var2idx != NULL); in addRegularScholtes()
213 assert(SCIPhashmapExists(heurdata->var2idx, (void*)var)); in addRegularScholtes()
214 idx = SCIPhashmapGetImageInt(heurdata->var2idx, (void*)var); in addRegularScholtes()
335 assert(heurdata->var2idx != NULL); in heurExec()
439 int idx = SCIPhashmapGetImageInt(heurdata->var2idx, (void*)binvars[j]); in heurExec()
496 assert(j == SCIPhashmapGetImageInt(heurdata->var2idx, (void*)var)); in heurExec()
571 int idx = SCIPhashmapGetImageInt(heurdata->var2idx, (void*)binvars[j]); in heurExec()
[all …]
H A Dbenderscut_opt.h103 …SCIP_HASHMAP* var2idx, /**< mapping from variable of the subproblem to the inde…
124 …SCIP_HASHMAP* var2idx, /**< mapping from variable of the subproblem to the inde…
H A Dscip_nonlinear.c998 assert(var2idx != NULL); in SCIPcreateNlpiProb()
1039 SCIP_CALL( SCIPhashmapInsertInt(var2idx, (void*)vars[i], i) ); in SCIPcreateNlpiProb()
1159 assert(SCIPhashmapExists(var2idx, (void*)var)); in SCIPcreateNlpiProb()
1161 lininds[nconss][k] = SCIPhashmapGetImageInt(var2idx, (void*)var); in SCIPcreateNlpiProb()
1183 assert(SCIPhashmapExists(var2idx, (void*)var1)); in SCIPcreateNlpiProb()
1187 assert(SCIPhashmapExists(var2idx, (void*)var2)); in SCIPcreateNlpiProb()
1226 assert(SCIPhashmapExists(var2idx, (void*)var)); in SCIPcreateNlpiProb()
1228 exprvaridxs[nconss][k] = SCIPhashmapGetImageInt(var2idx, (void*)var); in SCIPcreateNlpiProb()
1364 assert(var2idx != NULL); in SCIPaddNlpiProbRows()
1401 assert(SCIPhashmapExists(var2idx, (void*)var)); in SCIPaddNlpiProbRows()
[all …]
H A Dscip_nonlinear.h177 …SCIP_HASHMAP* var2idx, /**< empty hash map to store mapping between variables a…
206 …SCIP_HASHMAP* var2idx, /**< empty hash map to store mapping between variables a…
H A Dimplics.c355 int var2idx; in SCIP_DECL_SORTPTRCOMP() local
362 var2idx = SCIPvarGetIndex(var2); in SCIP_DECL_SORTPTRCOMP()
364 if( var1idx < var2idx ) in SCIP_DECL_SORTPTRCOMP()
366 else if( var1idx > var2idx ) in SCIP_DECL_SORTPTRCOMP()
H A Dcons_knapsack.c1889 int var2idx; in GUBsetSwapVars() local
1905 var2idx = gubset->gubvarsidx[var2]; in GUBsetSwapVars()
1906 var2status = gubset->gubconss[gubcons]->gubvarsstatus[var2idx]; in GUBsetSwapVars()
1908 gubset->gubvarsidx[var1] = var2idx; in GUBsetSwapVars()
1913 gubset->gubconss[gubcons]->gubvars[var2idx] = var1; in GUBsetSwapVars()
1914 gubset->gubconss[gubcons]->gubvarsstatus[var2idx] = var1status; in GUBsetSwapVars()
/dports/math/SCIP/scip-7.0.3/examples/Relaxator/src/
H A Drelax_nlp.c76 SCIP_HASHMAP* var2idx; in SCIP_DECL_RELAXEXEC() local
96 SCIP_CALL( SCIPhashmapCreate(&var2idx, SCIPblkmem(scip), SCIPgetNVars(scip)) ); in SCIP_DECL_RELAXEXEC()
98 …SCIP_CALL( SCIPcreateNlpiProb(scip, nlpi, nlrows, nnlrows, nlpiprob, var2idx, NULL, NULL, SCIPgetC… in SCIP_DECL_RELAXEXEC()
100 …SCIP_CALL( SCIPaddNlpiProbRows(scip, nlpi, nlpiprob, var2idx, SCIPgetLPRows(scip), SCIPgetNLPRows(… in SCIP_DECL_RELAXEXEC()
169 SCIPhashmapFree(&var2idx); in SCIP_DECL_RELAXEXEC()
/dports/math/SCIP/scip-7.0.3/tests/src/prop/
H A Dnlobbt.c33 static SCIP_HASHMAP* var2idx; variable
69 SCIP_CALL( SCIPhashmapCreate(&var2idx, SCIPblkmem(scip), 2) ); in setup()
79 SCIPhashmapFree(&var2idx); in teardown()
169 …SCIP_CALL( SCIPcreateNlpiProb(scip, nlpi, nlrows, 5, nlpiprob, var2idx, NULL, nlscore, -1.5, FALSE…
/dports/math/SCIP/scip-7.0.3/interfaces/gams/src/
H A Dreader_gmo.c428 SCIP_HASHMAP* var2idx; in makeExprtree() local
464 SCIP_CALL( SCIPhashmapCreate(&var2idx, blkmem, SCIPgetNVars(scip)) ); in makeExprtree()
493 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
505 varidx = (int)(size_t)SCIPhashmapGetImage(var2idx, (void*)probdata->vars[address]); in makeExprtree()
552 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
564 varidx = (int)(size_t)SCIPhashmapGetImage(var2idx, (void*)probdata->vars[address]); in makeExprtree()
613 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
673 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
784 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
841 if( !SCIPhashmapExists(var2idx, probdata->vars[address]) ) in makeExprtree()
[all …]