Home
last modified time | relevance | path

Searched refs:solvals (Results 1 – 19 of 19) sorted by relevance

/dports/math/SCIP/scip-7.0.3/src/scip/
H A Dsepa_impliedbounds.c146 assert(solvals != NULL); in separateCuts()
200 solval = solvals[SCIPvarGetProbindex(implvars[j])]; in separateCuts()
259 solval = solvals[SCIPvarGetProbindex(implvars[j])]; in separateCuts()
408 SCIP_Real* solvals; in SCIP_DECL_SEPAEXECLP() local
433 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nvars) ); in SCIP_DECL_SEPAEXECLP()
434 SCIP_CALL( SCIPgetVarSols(scip, nvars, vars, solvals) ); in SCIP_DECL_SEPAEXECLP()
448 SCIPfreeBufferArray(scip, &solvals); in SCIP_DECL_SEPAEXECLP()
460 SCIP_Real* solvals; in SCIP_DECL_SEPAEXECSOL() local
489 if( !SCIPisFeasIntegral(scip, solvals[i]) ) in SCIP_DECL_SEPAEXECSOL()
492 fracvals[nfracs] = solvals[i]; in SCIP_DECL_SEPAEXECSOL()
[all …]
H A Dconcsolver_scip.c279 SCIP_Real* solvals; in initConcsolver() local
285 SCIP_CALL( SCIPgetSolVals(scip, sol, data->nvars, vars, solvals) ); in initConcsolver()
289 SCIPfreeBufferArray(data->solverscip, &solvals); in initConcsolver()
482 SCIP_Real* solvals; in SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA() local
502 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nvars) ); in SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA()
517 SCIP_CALL( SCIPsetSolVals(scip, sol, nvars, vars, solvals) ); in SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA()
525 SCIPfreeBufferArray(scip, &solvals); in SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA()
620 SCIP_Real* solvals; in SCIP_DECL_CONCSOLVERSYNCWRITE() local
630 if( solvals == NULL ) in SCIP_DECL_CONCSOLVERSYNCWRITE()
658 SCIP_Real** solvals; in SCIP_DECL_CONCSOLVERSYNCREAD() local
[all …]
H A Dheur_reoptsols.c86 SCIP_Real* solvals; /* solution values of the subproblem */ in createNewSol() local
94 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nvars) ); in createNewSol()
97 SCIP_CALL( SCIPgetSolVals(scip, sol, nvars, vars, solvals) ); in createNewSol()
101 SCIP_CALL( SCIPsetSolVals(scip, newsol, nvars, vars, solvals) ); in createNewSol()
106 SCIPfreeBufferArray(scip, &solvals); in createNewSol()
H A Dcons_knapsack.c1658 if( solvals != NULL ) in GUBsetPrint()
2377 assert(solvals != NULL); in getCover()
2443 assert( SCIPisFeasGT(scip, solvals[j], 0.0) && SCIPisFeasLT(scip, solvals[j], 1.0) ); in getCover()
2629 assert(solvals != NULL); in getPartitionCovervars()
2759 assert(solvals != NULL); in getPartitionNoncovervars()
2811 assert(solvals != NULL); in getLiftingSequence()
2927 assert(solvals != NULL); in getLiftingSequenceGUB()
3457 assert(solvals != NULL); in sequentialUpAndDownLifting()
3942 assert(solvals != NULL); in sequentialUpAndDownLiftingGUB()
4636 assert(solvals != NULL); in superadditiveUpLifting()
[all …]
H A Ddebug.c52 SCIP_Real* solvals; /**< solution value array (only nonzero entries) */ member
77 (*debugsoldata)->solvals = NULL; in SCIPdebugSolDataCreate()
449 *val = scalar * debugsoldata->solvals[middle] + constant; in getSolutionValue()
726 BMSfreeMemoryArrayNull(&debugsoldata->solvals); in SCIPdebugFreeDebugData()
1999 SCIP_ALLOC( BMSreallocMemoryArray(&debugsoldata->solvals, debugsoldata->solsize) ); in SCIPdebugAddSolVal()
2008 debugsoldata->solvals[i] = debugsoldata->solvals[i-1]; in SCIPdebugAddSolVal()
2012 if( REALABS(debugsoldata->solvals[i-1] - val) > 1e-9 ) in SCIPdebugAddSolVal()
2023 debugsoldata->solvals[i] = debugsoldata->solvals[i+1]; in SCIPdebugAddSolVal()
2032 debugsoldata->solvals[i] = val; in SCIPdebugAddSolVal()
2036 debugsoldata->debugsolval += debugsoldata->solvals[i] * SCIPvarGetObj(var); in SCIPdebugAddSolVal()
[all …]
H A Dsol.c1871 SCIP_Real* solvals; in SCIPsolRetransform() local
1909 SCIP_CALL( SCIPsetAllocBufferArray(set, &solvals, nvars) ); in SCIPsolRetransform()
1911 assert(solvals != NULL); /* for flexelint */ in SCIPsolRetransform()
1933 solvals[v] = constant; in SCIPsolRetransform()
1942 if( SCIPsetIsInfinity(set, solvals[v]) ) in SCIPsolRetransform()
1944 solvals[v] = SCIPsetInfinity(set); in SCIPsolRetransform()
1947 else if( SCIPsetIsInfinity(set, -solvals[v]) ) in SCIPsolRetransform()
1949 solvals[v] = -SCIPsetInfinity(set); in SCIPsolRetransform()
1964 if( !SCIPsetIsZero(set, solvals[v]) ) in SCIPsolRetransform()
1967 if( solvals[v] != SCIP_UNKNOWN ) /*lint !e777*/ in SCIPsolRetransform()
[all …]
H A Dscip_sol.c709 assert(solvals != NULL); in setupAndSolveFiniteSolSubscip()
726 fixval = solvals[v]; in setupAndSolveFiniteSolSubscip()
780 …if( SCIPisFeasLT(scip, solvals[v], SCIPvarGetLbLocal(varcopy)) || SCIPisFeasGT(scip, solvals[v], S… in setupAndSolveFiniteSolSubscip()
804 if( (SCIPisInfinity(scip, solvals[v]) || SCIPisInfinity(scip, -solvals[v])) ) in setupAndSolveFiniteSolSubscip()
806 solvals[v] = SCIPgetSolVal(subscip, bestsol, varcopy); in setupAndSolveFiniteSolSubscip()
850 SCIP_Real* solvals; in SCIPcreateFiniteSolCopy() local
872 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, norigvars) ); in SCIPcreateFiniteSolCopy()
873 SCIP_CALL( SCIPgetSolVals(scip, sourcesol, norigvars, origvars, solvals) ); in SCIPcreateFiniteSolCopy()
920 retcode = setupAndSolveFiniteSolSubscip(scip, subscip, origvars, norigvars, solvals, success); in SCIPcreateFiniteSolCopy()
934 SCIP_CALL( SCIPsetSolVal(scip, *sol, origvars[v], solvals[v]) ); in SCIPcreateFiniteSolCopy()
[all …]
H A Dscip_copy.c1321 …SCIP_Real* solvals /**< array where to set values taken from subsol, must h… in translateSubSol() argument
1332 assert(solvals != NULL); in translateSubSol()
1341 solvals[i] = SCIPgetSolVal(subscip, subsol, subvars[i]); in translateSubSol()
1343solvals[i] = MIN(MAX(0.0, SCIPvarGetLbLocal(vars[i])), SCIPvarGetUbLocal(vars[i])); /*lint !e666*/ in translateSubSol()
1411 SCIP_Real* solvals; in SCIPtranslateSubSols() local
1427 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nvars) ); in SCIPtranslateSubSols()
1448 SCIP_CALL( translateSubSol(scip, subscip, subsols[i], subvars, solvals) ); in SCIPtranslateSubSols()
1449 SCIP_CALL( SCIPsetSolVals(scip, newsol, nvars, vars, solvals) ); in SCIPtranslateSubSols()
1474 SCIPfreeBufferArray(scip, &solvals); in SCIPtranslateSubSols()
H A Dheur_alns.c1401 SCIP_Real* solvals; in alnsFixMoreVariables() local
1452 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nbinintvars) ); in alnsFixMoreVariables()
1483 SCIP_CALL( SCIPgetSolVals(scip, refsol, nbinintvars, vars, solvals) ); in alnsFixMoreVariables()
1496 if( solvals[b] < SCIPvarGetLbGlobal(var) - 0.5 || solvals[b] > SCIPvarGetUbGlobal(var) + 0.5 ) in alnsFixMoreVariables()
1499 …redcostscores[nunfixedvars] = getVariableRedcostScore(scip, var, solvals[b], heurdata->uselocalred… in alnsFixMoreVariables()
1500 pscostscores[nunfixedvars] = getVariablePscostScore(scip, var, solvals[b]); in alnsFixMoreVariables()
1507 solvals[nunfixedvars] = solvals[b]; in alnsFixMoreVariables()
1536 …tryAdd2variableBuffer(scip, unfixedvars[permindex], solvals[permindex], varbuf, valbuf, nfixings, … in alnsFixMoreVariables()
1545 SCIPfreeBufferArray(scip, &solvals); in alnsFixMoreVariables()
H A Dprimal.h358 …SCIP_Real* solvals, /**< array for internal use to store solution values, or…
H A Dheur_undercover.c1625 SCIP_Real* solvals; in solveCoveringProblem() local
1694 SCIP_CALL( SCIPallocBufferArray(coveringscip, &solvals, ncoveringvars) ); in solveCoveringProblem()
1695 …SCIPgetSolVals(coveringscip, SCIPgetBestSol(coveringscip), ncoveringvars, coveringvars, solvals) ); in solveCoveringProblem()
1701 if( solvals[i] > 0.5 ) in solveCoveringProblem()
1719 SCIPfreeBufferArray(coveringscip, &solvals); in solveCoveringProblem()
H A Dprimal.c1796 …SCIP_Real* solvals, /**< array for internal use to store solution values, or… in SCIPprimalTransformSol() argument
1825 assert(solvalssize == 0 || solvals != NULL); in SCIPprimalTransformSol()
1846 localsolvals = solvals; in SCIPprimalTransformSol()
H A Dscip_solve.c1526 SCIP_Real* solvals; in transformSols() local
1554 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, ntransvars) ); in transformSols()
1569 …, scip->transprob, scip->tree, scip->reopt, scip->lp, scip->eventqueue, scip->eventfilter, solvals, in transformSols()
1586 SCIPfreeBufferArray(scip, &solvals); in transformSols()
H A Dcuts.c4184 SCIP_Real*RESTRICT solvals, /**< solution values of variables in the row */ in computeMIREfficacy() argument
4238 rhs -= solvals[i] * floorai; in computeMIREfficacy()
/dports/math/highs/HiGHS-cfe064e/src/mip/
H A DHighsSeparation.cpp374 solvals.clear(); in transformBaseEquation()
411 solvals.push_back(0); in transformBaseEquation()
567 if (solvals[a] * upper[b] > solvals[b] * upper[a]) return true; in determineCover()
569 if (solvals[a] * upper[b] < solvals[b] * upper[a]) return false; in determineCover()
632 if (upper[i] - solvals[i] < solvals[i]) { in cmirCutGenerationHeuristic()
636 solvals[i] = upper[i] - solvals[i]; in cmirCutGenerationHeuristic()
766 solvals[k] = upper[k] - solvals[k]; in cmirCutGenerationHeuristic()
778 solvals[k] = upper[k] - solvals[k]; in cmirCutGenerationHeuristic()
787 solvals[k] = upper[k] - solvals[k]; in cmirCutGenerationHeuristic()
815 solvals[k] = upper[k] - solvals[k]; in cmirCutGenerationHeuristic()
[all …]
H A DHighsMipSolverData.cpp770 const std::vector<double>& solvals = in evaluateRootNode() local
775 curdirection[i] = firstlpsol[i] - solvals[i]; in evaluateRootNode()
/dports/math/SCIP/scip-7.0.3/applications/Scheduler/src/
H A Dheur_optcumulative.c51 SCIP_Real** solvals; member
326 … SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(machineassignment->solvals), oldsize, newsize) ); in applyOptcumulative()
338 …SCIP_CALL( SCIPallocBlockMemoryArray(scip, &machineassignment->solvals[pos], heurdata->machines[m]… in applyOptcumulative()
372 …SCIPfreeBlockMemoryArray(scip, &machineassignment->solvals[pos], heurdata->machines[m]); /*lint !e… in applyOptcumulative()
439 …SCIPfreeBlockMemoryArray(scip, &machineassignment->solvals[pos], heurdata->machines[m]); /*lint !e… in applyOptcumulative()
451 … SCIP_CALL( SCIPsetSolVal(scip, sol, heurdata->vars[m][j], machineassignment->solvals[a][j]) ); in applyOptcumulative()
514 machineassignment->solvals[pos][j] = lbs[v]; in applyOptcumulative()
607 …SCIPfreeBlockMemoryArray(scip, &(heurdata->machineassignments[m]->solvals[a]), heurdata->machines[… in SCIP_DECL_HEURFREE()
613 …SCIPfreeBlockMemoryArray(scip, &(heurdata->machineassignments[m]->solvals), heurdata->machineassig… in SCIP_DECL_HEURFREE()
768 … SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(heurdata->machineassignments[m]->solvals), njobs) ); in SCIPinitHeurOptcumulative()
H A Dheur_listscheduling.c674 SCIP_Real* solvals; in executeHeuristic() local
678 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, njobs) ); in executeHeuristic()
683 solvals[v] = SCIPgetSolVal(scip, NULL, vars[v]); in executeHeuristic()
686 SCIPsortRealInt(solvals, perm, njobs); in executeHeuristic()
688 SCIPfreeBufferArray(scip, &solvals); in executeHeuristic()
/dports/math/SCIP/scip-7.0.3/interfaces/gams/src/
H A Dreader_gmo.c2140 SCIP_Real* solvals, /**< solution to check */ in checkAndRepairSol() argument
2151 assert(solvals != NULL); in checkAndRepairSol()
2165 SCIP_CALL( SCIPsetSolVals(scip, sol, probdata->nvars, probdata->vars, solvals) ); in checkAndRepairSol()
2194 SCIP_CALL( SCIPsetSolVals(scip, sol, probdata->nvars, probdata->vars, solvals) ); in checkAndRepairSol()
2212 SCIP_CALL( SCIPgetSolVals(scip, sol, probdata->nvars, probdata->vars, solvals) ); in checkAndRepairSol()
2487 SCIP_Real** solvals; in writeGmoSolution() local
2517 SCIP_CALL( SCIPallocBufferArray(scip, &solvals, nsols) ); in writeGmoSolution()
2583 gmoSetSolution2(gmo, solvals[s], lambda); in writeGmoSolution()
2588 (void) gmoSetSolutionPrimal(gmo, solvals[s]); in writeGmoSolution()
2634 SCIPfreeBufferArray(scip, &solvals[s]); in writeGmoSolution()
[all …]