methods to create and change primal solutions of SCIP
SCIP_SOLORIGIN SCIPsolGetOrigin | ( | SCIP_SOL * | sol | ) |
gets origin of solution
sol | primal CIP solution |
Definition at line 2289 of file sol.c.
References NULL, and SCIP_Sol::solorigin.
Referenced by SCIPprimalAddOrigObjoffset(), SCIPprimalRetransformSolutions(), SCIPretransformSol(), and tightenVariables().
returns whether the given solution is defined on original variables
sol | primal CIP solution |
Definition at line 2299 of file sol.c.
References NULL, SCIP_SOLORIGIN_ORIGINAL, SCIP_SOLORIGIN_PARTIAL, and SCIP_Sol::solorigin.
Referenced by freeTransform(), origsolOfInterest(), primalAddSol(), primalExistsSol(), primalSearchSolPos(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_HEUREXEC(), SCIPaddSol(), SCIPaddSolFree(), SCIPapplyProximity(), SCIPcheckSol(), SCIPgetSolOrigObj(), SCIPgetSolVarsData(), SCIPincSolVal(), SCIPprimalAddOrigSol(), SCIPprimalAddOrigSolFree(), SCIPprimalTransformSol(), SCIPprimalUpdateObjoffset(), SCIPprimalUpdateVarObj(), SCIPprintBestTransSol(), SCIPprintMIPStart(), SCIPprintSol(), SCIPprintTransSol(), SCIProundSol(), SCIPsetSolVal(), SCIPsetSolVals(), SCIPsolCheck(), SCIPsolGetObj(), SCIPsolGetOrigObj(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPsolRecomputeObj(), SCIPsolRound(), SCIPsolsAreEqual(), SCIPsolSetVal(), SCIPsolTransform(), SCIPsolUnlink(), SCIPsolUpdateVarObj(), SCIPsolUpdateVarsum(), SCIPsolve(), SCIPtrySol(), SCIPtrySolFree(), separateSolution(), and transformSols().
returns whether the given solution is partial
returns whether the given solution is defined on original variables and containes unknown solution values
sol | primal CIP solution |
Definition at line 2309 of file sol.c.
References NULL, SCIP_SOLORIGIN_PARTIAL, and SCIP_Sol::solorigin.
Referenced by readSol(), readSolFile(), readXmlSolFile(), SCIPcheckSol(), SCIPcheckSolOrig(), SCIPprimalAddOrigSol(), SCIPprimalAddOrigSolFree(), SCIPprimalAddSol(), SCIPprintMIPStart(), SCIPprintSol(), SCIPsolPrint(), SCIPsolSetVal(), SCIPtrySol(), and SCIPtrySolFree().
gets objective value of primal CIP solution which lives in the original problem space
sol | primal CIP solution |
Definition at line 2319 of file sol.c.
References NULL, SCIP_Sol::obj, and SCIPsolIsOriginal().
Referenced by primalAddOrigSol(), primalExistsOrigSol(), primalSearchOrigSolPos(), SCIPgetSolOrigObj(), SCIPprimalAddOrigObjoffset(), SCIPprimalTransformSol(), SCIPprintMIPStart(), SCIPprintSol(), solveAndEvalSubscip(), and storeSolution().
gets clock time, when this solution was found
sol | primal CIP solution |
Definition at line 2342 of file sol.c.
References NULL, and SCIP_Sol::time.
Referenced by primalAddSol(), printSolutionStatistics(), and SCIPgetSolTime().
int SCIPsolGetRunnum | ( | SCIP_SOL * | sol | ) |
gets branch and bound run number, where this solution was found
sol | primal CIP solution |
Definition at line 2352 of file sol.c.
References NULL, and SCIP_Sol::runnum.
Referenced by primalAddSol(), printSolutionStatistics(), and SCIPgetSolRunnum().
SCIP_Longint SCIPsolGetNodenum | ( | SCIP_SOL * | sol | ) |
gets node number of the specific branch and bound run, where this solution was found
gets node number, where this solution was found
sol | primal CIP solution |
Definition at line 2362 of file sol.c.
References SCIP_Sol::nodenum, and NULL.
Referenced by applyCompletesol(), applyOfins(), determineVariableFixings(), primalAddSol(), printSolutionStatistics(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPapplyRens(), SCIPgetSolNodenum(), SCIPsolve(), and solHasNewSource().
int SCIPsolGetDepth | ( | SCIP_SOL * | sol | ) |
gets node's depth, where this solution was found
sol | primal CIP solution |
Definition at line 2372 of file sol.c.
References SCIP_Sol::depth, and NULL.
Referenced by primalAddSol(), and printSolutionStatistics().
gets heuristic, that found this solution (or NULL if it's from the tree)
sol | primal CIP solution |
Definition at line 2382 of file sol.c.
References SCIP_Sol::heur, and NULL.
Referenced by checkSolution(), determineVariableFixings(), presolve(), presolveRound(), primalAddSol(), printSolutionStatistics(), proposeFeasibleSolution(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPgetSolHeur(), SCIPprimalTransformSol(), SCIPreoptAddSol(), SCIPsolve(), SCIPupdateStartpointHeurSubNlp(), SCIPvisualFoundSolution(), solHasNewSource(), soltreeAddSol(), solveComponent(), and solveSubNLP().
informs the solution that it now belongs to the given primal heuristic
sol | primal CIP solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 2423 of file sol.c.
References SCIP_Sol::heur, and NULL.
Referenced by createSolFromNLP(), createSolFromSubScipSol(), primalLinkCurrentSol(), SCIP_DECL_HEUREXEC(), SCIPheurPassSolAddSol(), SCIPheurPassSolTrySol(), SCIPheurSyncPassSol(), SCIPupdateStartpointHeurSubNlp(), and solveComponent().
int SCIPsolGetIndex | ( | SCIP_SOL * | sol | ) |
returns unique index of given solution
sol | primal CIP solution |
Definition at line 2413 of file sol.c.
References SCIP_Sol::index, and NULL.
Referenced by createNewSol(), execRelpscost(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPIsConcurrentSolNew(), and solveComponent().
SCIP_RETCODE SCIPcreateSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to zero
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37178 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, Scip::origprimal, Scip::origprob, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, SCIPsolCreate(), SCIPsolCreateOriginal(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::tree, and TRUE.
Referenced by applyBoundHeur(), applyOfins(), applyRepair(), applyVbounds(), checkSystemGF2(), computeInteriorPoint(), createNewSol(), createNewSols(), createSolFromNLP(), createSolFromSubScipSol(), generateCloseCutPoint(), initProblem(), processNlRow(), readSol(), sampleRandomPoints(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEURINIT(), SCIPcomputeLPRelIntPoint(), separateCuts(), solveNLP(), solveSubproblem(), tryOneOpt(), and trySolCandidate().
SCIP_RETCODE SCIPcreateLPSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to the current LP solution
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37220 of file scip.c.
References checkStage(), FALSE, Scip::lp, Scip::mem, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPsolCreateLPSol(), SCIPtreeHasCurrentNodeLP(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by performStrongbranchWithPropagation(), proposeFeasibleSolution(), SCIP_DECL_CONSCHECK(), and SCIP_DECL_CONSENFOLP().
SCIP_RETCODE SCIPcreateNLPSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to the current NLP solution
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37248 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, NULL, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPisNLPConstructed(), SCIPnlpHasSolution(), SCIPsolCreateNLPSol(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by SCIP_DECL_CONSSEPALP(), and SCIP_DECL_SEPAEXECLP().
SCIP_RETCODE SCIPcreateRelaxSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to the current relaxation solution
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37283 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::primal, SCIP_Mem::probmem, Scip::relaxation, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPrelaxationIsSolValid(), SCIPsolCreateRelaxSol(), Scip::set, Scip::stat, Scip::tree, and TRUE.
SCIP_RETCODE SCIPcreatePseudoSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to the current pseudo solution
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37310 of file scip.c.
References checkStage(), FALSE, Scip::lp, Scip::mem, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPsolCreatePseudoSol(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIP_DECL_CONSENFOPS().
SCIP_RETCODE SCIPcreateCurrentSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to the current LP or pseudo solution, depending on whether the LP was solved at the current node
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37333 of file scip.c.
References checkStage(), FALSE, Scip::lp, Scip::mem, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPsolCreateCurrentSol(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIP_DECL_SEPAEXECLP(), SCIPcreateSolCopy(), and SCIPcreateSolCopyOrig().
SCIP_RETCODE SCIPcreatePartialSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a partial primal solution, initialized to unknown values
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37355 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::origprimal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPsolCreatePartial(), Scip::set, Scip::stat, and TRUE.
Referenced by readMst().
SCIP_RETCODE SCIPcreateUnknownSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution, initialized to unknown values
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37383 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPsolCreateUnknown(), Scip::set, Scip::stat, Scip::tree, and TRUE.
SCIP_RETCODE SCIPcreateOrigSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_HEUR * | heur | ||
) |
creates a primal solution living in the original problem space, initialized to zero; a solution in original space allows to set original variables to values that would be invalid in the transformed problem due to preprocessing fixings or aggregations
creates a primal solution living in the original problem space, initialized to zero; a solution in original space allows to set original variables to values that would be invalid in the transformed problem due to preprocessing fixings or aggregations
scip | SCIP data structure |
sol | pointer to store the solution |
heur | heuristic that found the solution (or NULL if it's from the tree) |
Definition at line 37415 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, Scip::origprimal, Scip::origprob, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, SCIPsolCreateOriginal(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::tree, and TRUE.
Referenced by componentSetupWorkingSol(), createSolFromSubScipSol(), fixDiscreteVars(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_HEUREXEC(), SCIPcreateFiniteSolCopy(), and solveAndEvalSubscip().
SCIP_RETCODE SCIPcreateSolCopy | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_SOL * | sourcesol | ||
) |
creates a copy of a primal solution; note that a copy of a linked solution is also linked and needs to be unlinked if it should stay unaffected from changes in the LP or pseudo solution
creates a copy of a primal solution; note that a copy of a linked solution is also linked and needs to be unlinked if it should stay unaffected from changes in the LP or pseudo solution
scip | SCIP data structure |
sol | pointer to store the solution |
sourcesol | primal CIP solution to copy |
Definition at line 37468 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPcreateCurrentSol(), SCIPsolCopy(), Scip::set, Scip::stat, and TRUE.
Referenced by enforceCardinality(), fromCommandLine(), proposeFeasibleSolution(), sampleRandomPoints(), SCIP_DECL_CONSCHECK(), SCIP_DECL_HEUREXEC(), SCIP_DECL_SEPAEXECLP(), SCIPaddSol(), SCIPheurPassSolAddSol(), SCIPheurPassSolTrySol(), SCIPsetBasePointClosecuts(), and SCIPupdateStartpointHeurSubNlp().
SCIP_RETCODE SCIPcreateSolCopyOrig | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_SOL * | sourcesol | ||
) |
creates a copy of a solution in the original primal solution space
scip | SCIP data structure |
sol | pointer to store the solution |
sourcesol | primal CIP solution to copy |
Definition at line 37508 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, Scip::origprimal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcreateCurrentSol(), SCIPsolCopy(), Scip::set, SCIP_Set::stage, Scip::stat, and TRUE.
SCIP_RETCODE SCIPcreateFiniteSolCopy | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_SOL * | sourcesol, | ||
SCIP_Bool * | success | ||
) |
creates a copy of a primal solution, thereby replacing infinite fixings of variables by finite values; the copy is always defined in the original variable space; success indicates whether the objective value of the solution was changed by removing infinite values
scip | SCIP data structure |
sol | pointer to store the solution |
sourcesol | primal CIP solution to copy |
success | does the finite solution have the same objective value? |
Definition at line 37566 of file scip.c.
References checkStage(), FALSE, NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_FIXED, SCIP_VARTYPE_CONTINUOUS, SCIP_VERBLEVEL_NONE, SCIPaddCoefLinear(), SCIPaddCons(), SCIPaddVar(), SCIPallocBufferArray, SCIPblkmem(), SCIPchgVarObj(), SCIPchgVarType(), SCIPcopyOrig(), SCIPcreate(), SCIPcreateConsBasicLinear(), SCIPcreateOrigSol(), SCIPcreateVar(), SCIPdebugMsg, SCIPepsilon(), SCIPfixVar(), SCIPfree(), SCIPfreeBufferArray, SCIPgetBestSol(), SCIPgetFixedVars(), SCIPgetNFixedVars(), SCIPgetOrigVarsData(), SCIPgetSolOrigObj(), SCIPgetSolVal(), SCIPgetSolVals(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPinfinity(), SCIPisEQ(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisInfinity(), SCIPprintSol(), SCIPreleaseCons(), SCIPreleaseVar(), SCIPsetIntParam(), SCIPsetSolVal(), SCIPsnprintf(), SCIPsolve(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetLbOriginal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarGetUbLocal(), SCIPvarGetUbOriginal(), and TRUE.
Referenced by freeTransform(), and SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPfreeSol | ( | SCIP * | scip, |
SCIP_SOL ** | sol | ||
) |
frees primal CIP solution
scip | SCIP data structure |
sol | pointer to the solution |
Definition at line 37806 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::origprimal, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, SCIPsolFree(), Scip::set, SCIP_Set::stage, and TRUE.
Referenced by applyBoundHeur(), applyHeur(), applyOfins(), applyRepair(), applyVbounds(), checkSystemGF2(), createCoveringProblem(), createNewSol(), createSolFromSubScipSol(), enforceCardinality(), freeComponent(), freeMemory(), freeProblem(), fromCommandLine(), performStrongbranchWithPropagation(), proposeFeasibleSolution(), readMst(), readSol(), sampleRandomPoints(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXIT(), SCIP_DECL_HEUREXITSOL(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SEPAEXITSOL(), SCIPapplyHeurDualval(), SCIPapplyUndercover(), SCIPheurPassSolAddSol(), SCIPheurPassSolTrySol(), SCIPheurSyncPassSol(), SCIPsetBasePointClosecuts(), SCIPupdateStartpointHeurSubNlp(), separateCuts(), solveAndEvalSubscip(), solveComponent(), solveNLP(), solveSubNLP(), solveSubproblem(), and storeSolution().
SCIP_RETCODE SCIPlinkLPSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
links a primal solution to the current LP solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37847 of file scip.c.
References checkStage(), FALSE, Scip::lp, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPlpIsSolved(), SCIPsolLinkLPSol(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyBoundHeur(), applyVbounds(), getSolFromFacet(), performLPRandRounding(), performLPSimpleRounding(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), solveLp(), tryOneOpt(), and trySolCandidate().
SCIP_RETCODE SCIPlinkNLPSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
links a primal solution to the current NLP solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37873 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_OKAY, SCIPerrorMessage, SCIPnlpGetSolstat(), SCIPsolLinkNLPSol(), Scip::stat, Scip::tree, and TRUE.
SCIP_RETCODE SCIPlinkRelaxSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
links a primal solution to the current relaxation solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37905 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPrelaxationIsSolValid(), SCIPsolLinkRelaxSol(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by performRelaxSimpleRounding().
SCIP_RETCODE SCIPlinkPseudoSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
links a primal solution to the current pseudo solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37932 of file scip.c.
References checkStage(), FALSE, Scip::lp, SCIP_CALL, SCIP_OKAY, SCIPsolLinkPseudoSol(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
SCIP_RETCODE SCIPlinkCurrentSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
links a primal solution to the current LP or pseudo solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37952 of file scip.c.
References checkStage(), FALSE, Scip::lp, SCIP_CALL, SCIP_OKAY, SCIPsolLinkCurrentSol(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyCliqueFixings(), and processNlRow().
SCIP_RETCODE SCIPclearSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
clears a primal solution
scip | SCIP data structure |
sol | primal solution |
Definition at line 37983 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPsolClear(), Scip::stat, Scip::tree, and TRUE.
Referenced by applyVbounds().
SCIP_RETCODE SCIPunlinkSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
stores solution values of variables in solution's own array
scip | SCIP data structure |
sol | primal solution |
Definition at line 38011 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPsolUnlink(), Scip::set, Scip::transprob, and TRUE.
Referenced by proposeFeasibleSolution(), SCIP_DECL_CONSCHECK(), SCIPheurPassSolAddSol(), SCIPheurPassSolTrySol(), SCIPperformGenericDivingAlgorithm(), SCIPretransformSol(), and SCIPupdateStartpointHeurSubNlp().
SCIP_RETCODE SCIPsetSolVal | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_VAR * | var, | ||
SCIP_Real | val | ||
) |
sets value of variable in primal CIP solution
scip | SCIP data structure |
sol | primal solution |
var | variable to add to solution |
val | solution value of variable |
Definition at line 38042 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPsolIsOriginal(), SCIPsolSetVal(), SCIPvarGetName(), SCIPvarIsTransformed(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by applyOfins(), applyRepair(), buildConvexCombination(), checkCands(), checkSystemGF2(), componentSetupWorkingSol(), computeInteriorPoint(), createNewSol(), createSolFromNLP(), createSolFromSubScipSol(), fixDiscreteVars(), generateCloseCutPoint(), getNLPFracVars(), getSolFromFacet(), handle1Cycle(), handleCycle(), improvePoint(), initProblem(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), optimize(), performRandRounding(), performSimpleRounding(), polishPrimalSolution(), polishSolution(), proposeFeasibleSolution(), readSolFile(), readXmlSolFile(), sampleRandomPoints(), SCIP_DECL_HEUREXEC(), SCIPapplyHeurDualval(), SCIPcomputeLPRelIntPoint(), SCIPcreateFiniteSolCopy(), SCIPmakeIndicatorFeasible(), separateCuts(), solveAndEvalSubscip(), solveComponent(), solveNLP(), and updateSlacks().
SCIP_RETCODE SCIPsetSolVals | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
int | nvars, | ||
SCIP_VAR ** | vars, | ||
SCIP_Real * | vals | ||
) |
sets values of multiple variables in primal CIP solution
scip | SCIP data structure |
sol | primal solution |
nvars | number of variables to set solution value for |
vars | array with variables to add to solution |
vals | array with solution values of variables |
Definition at line 38084 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPsolIsOriginal(), SCIPsolSetVal(), SCIPvarGetName(), SCIPvarIsTransformed(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by copySol(), createNewSol(), createNewSols(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_CONCSOLVERSYNCREAD(), and SCIP_DECL_HEUREXEC().
SCIP_RETCODE SCIPincSolVal | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_VAR * | var, | ||
SCIP_Real | incval | ||
) |
increases value of variable in primal CIP solution
scip | SCIP data structure |
sol | primal solution |
var | variable to increase solution value for |
incval | increment for solution value of variable |
Definition at line 38139 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPsolIncVal(), SCIPsolIsOriginal(), SCIPvarGetName(), SCIPvarIsTransformed(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by proposeFeasibleSolution().
returns value of variable in primal CIP solution, or in current LP/pseudo solution
sol
is NULL, that means it is asked for the LP or pseudo solution, this method can only be called if scip
is in the solving stage SCIP_STAGE_SOLVING. In any other case, this method can be called if scip
is in one of the following stages:
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo solution |
var | variable to get value for |
Definition at line 38182 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPsolGetVal(), SCIPtreeHasCurrentNodeLP(), SCIPvarGetSol(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by addBilinearTermToCut(), addBranchingComplementaritiesSOS1(), addFacetToCut(), addLinearTermToCut(), addLocalBranchingConstraint(), applyOfins(), applyRepair(), branchBalancedCardinality(), branchUnbalancedCardinality(), buildConvexCombination(), checkAndConss(), checkCands(), checkCons(), checkCumulativeCondition(), checkOrigPbCons(), checkSystemGF2(), chooseGuidedVar(), collectBranchingCands(), collectSolution(), computeCut(), computeGradient(), computeIntegerVariableBounds(), computeReferencePointGauge(), computeReferencePointProjection(), computeViolation(), consdataCheckSuperindicator(), consdataGetActivity(), copyValues(), createCGCutCMIR(), createCGCutDirect(), createCGCutStrongCG(), createNAryBranch(), createNewSol(), createSelectedSortedEventpointsSol(), createSolFromSubScipSol(), createSortedEventpointsSol(), createSubproblem(), createSubscip(), CUTOFF_CONSTRAINT(), determineBound(), determineFixings(), determineVariableFixings(), enforceCardinality(), enforceConssSOS1(), enforceConstraint(), enforceCuts(), enforceIndicators(), enforceSOS2(), evalLhs(), evaluateGauge(), extendToCover(), findSubtour(), fixDiscreteVars(), fixNonNeighborhoodVariables(), fixVariables(), generateCloseCutPoint(), generateClusterCuts(), generateCut(), generateCutLTI(), generateCutProjectedPoint(), generateCutSol(), generateSecantCut(), generateSparseCut(), getBoundConsFromVertices(), getBranchingPrioritiesSOS1(), getBranchingVerticesSOS1(), getDiveBdChgsSOS1conflictgraph(), getDiveBdChgsSOS1constraints(), getFixingValue(), getGradientMaxElement(), getGradientNorm(), getNLPFracVars(), getPotential(), getPotentialContributed(), getRelDistance(), getVectorOfWeights(), improvePoint(), isConvexLocal(), isPossibleToComputeCut(), isViolatedSOS1(), LOPseparate(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), maximalslack(), nodeGetSolvalBinaryBigMSOS1(), nodeGetSolvalVarboundLbSOS1(), nodeGetSolvalVarboundUbSOS1(), optimize(), performRandRounding(), polishPrimalSolution(), polishSolution(), proposeBranchingPoint(), proposeFeasibleSolution(), registerBranchingCandidates(), registerBranchingCandidatesCentrality(), registerBranchingCandidatesGap(), registerBranchingCandidatesViolation(), registerLargeRelaxValueVariableForBranching(), rowprepCleanupImproveCoefrange(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSGETDIVEBDCHGS(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERREDCOST(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SOLVECUMULATIVE(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPcomputeConvexEnvelopeFacet(), SCIPcreateFiniteSolCopy(), SCIPgetRowprepViolation(), SCIPgetViolationAbspower(), SCIPisViolatedIndicator(), SCIPmakeIndicatorFeasible(), SCIPperformGenericDivingAlgorithm(), SCIPprintSolReaderFzn(), SCIPresolveSolHeurSubNlp(), SCIPseparateRelaxedKnapsack(), SCIPwriteCliqueGraph(), searchEcAggr(), selectEssentialRounding(), selectNextDiving(), selectRounding(), selectShifting(), sepaImplBoundCutsSOS1(), separateCons(), separateCuts(), separateGLS(), separateHeur(), separateIndicators(), separatePerspective(), separatePoint(), sepaSubtour(), setAltLPObj(), solCutIsViolated(), solveAndEvalSubscip(), solveComponent(), solveLp(), solveNLP(), solveSubNLP(), storeAggrFromMIP(), tightenVariables(), tryFixVar(), updateBestCandidate(), updateSlacks(), and updateWeightsTCliquegraph().
SCIP_RETCODE SCIPgetSolVals | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
int | nvars, | ||
SCIP_VAR ** | vars, | ||
SCIP_Real * | vals | ||
) |
gets values of multiple variables in primal CIP solution
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo solution |
nvars | number of variables to get solution value for |
vars | array with variables to get value for |
vals | array to store solution values of variables |
Definition at line 38219 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPgetVarSols(), SCIPsolGetVal(), Scip::set, Scip::stat, and TRUE.
Referenced by computeViolations(), copySol(), createNewSol(), createNewSols(), createZerohalfCutFromZerohalfWeightvector(), generateCut(), generateSparseCut(), getGradientMaxElement(), processNlRow(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_CONCSOLVERSYNCWRITE(), SCIP_DECL_CONSCHECK(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_SEPAEXECSOL(), SCIPcreateFiniteSolCopy(), SCIPevalExprtreeSol(), SCIPseparateKnapsackCuts(), SCIPsetNLPInitialGuessSol(), SCIPsetRelaxSolValsSol(), separateCuts(), and solveCoveringProblem().
returns objective value of primal CIP solution w.r.t. original problem, or current LP/pseudo objective value
returns objective value of primal CIP solution w.r.t. original problem, or current LP/pseudo objective value
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo objective value |
Definition at line 38268 of file scip.c.
References checkStage(), FALSE, Scip::lp, NULL, Scip::origprob, SCIP_CALL_ABORT, SCIPisObjChangedProbing(), SCIPlpGetObjval(), SCIPlpGetPseudoObjval(), SCIPprobExternObjval(), SCIPsolGetObj(), SCIPsolGetOrigObj(), SCIPsolIsOriginal(), SCIPtreeHasCurrentNodeLP(), Scip::set, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyBoundHeur(), applyCliqueFixings(), applyRepair(), applyVbounds(), createNewSol(), getActivities(), presolve(), presolveRound(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONCSOLVERSYNCWRITE(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERREDCOST(), SCIPapplyHeurDualval(), SCIPcreateFiniteSolCopy(), SCIPheurPassSolAddSol(), SCIPheurPassSolTrySol(), SCIPmakeSOS1sFeasible(), SCIPperformGenericDivingAlgorithm(), SCIPresolveSolHeurSubNlp(), SCIPtransformProb(), SCIPvisualFoundSolution(), separateCuts(), solveAndEvalSubscip(), solveComponent(), and solveCoveringProblem().
returns transformed objective value of primal CIP solution, or transformed current LP/pseudo objective value
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo objective value |
Definition at line 38317 of file scip.c.
References checkStage(), FALSE, Scip::lp, NULL, Scip::origprob, SCIP_CALL_ABORT, SCIPlpGetObjval(), SCIPlpGetPseudoObjval(), SCIPsolGetObj(), SCIPtreeHasCurrentNodeLP(), Scip::set, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyHeur(), createNewSol(), getGenVBoundsBound(), proposeFeasibleSolution(), sampleRandomPoints(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPheurSyncPassSol(), SCIPupdateStartpointHeurSubNlp(), SCIPvisualFoundSolution(), solveComponent(), tryOneOpt(), and trySolCandidate().
SCIP_RETCODE SCIPrecomputeSolObj | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
recomputes the objective value of an original solution, e.g., when transferring solutions from the solution pool (objective coefficients might have changed in the meantime)
Definition at line 38348 of file scip.c.
References checkStage(), FALSE, NULL, Scip::origprob, SCIP_CALL, SCIP_OKAY, SCIPsolRecomputeObj(), Scip::set, Scip::stat, and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
maps original space objective value into transformed objective value
scip | SCIP data structure |
obj | original space objective value to transform |
Definition at line 38377 of file scip.c.
References checkStage(), FALSE, Scip::origprob, SCIP_CALL_ABORT, SCIPprobInternObjval(), Scip::set, Scip::transprob, and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPresolveSolHeurSubNlp(), and SCIPsetObjlimit().
maps transformed objective value into original space
scip | SCIP data structure |
obj | transformed objective value to retransform in original space |
Definition at line 38402 of file scip.c.
References checkStage(), FALSE, Scip::origprob, SCIP_CALL_ABORT, SCIPprobExternObjval(), Scip::set, Scip::transprob, and TRUE.
Referenced by createNewSol(), printRootStatistics(), printSolutionStatistics(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), SCIPvisualCutoffNode(), SCIPvisualLowerbound(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPvisualUpperbound(), separateCuts(), solveComponent(), and writeExpandedSolutions().
gets clock time, when this solution was found
scip | SCIP data structure |
sol | primal solution |
Definition at line 38429 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPsolGetTime(), and TRUE.
gets branch and bound run number, where this solution was found
scip | SCIP data structure |
sol | primal solution |
Definition at line 38456 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPsolGetRunnum(), and TRUE.
SCIP_Longint SCIPgetSolNodenum | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
gets node number of the specific branch and bound run, where this solution was found
scip | SCIP data structure |
sol | primal solution |
Definition at line 38483 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPsolGetNodenum(), and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
gets heuristic, that found this solution (or NULL if it's from the tree)
scip | SCIP data structure |
sol | primal solution |
Definition at line 38510 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPsolGetHeur(), and TRUE.
Referenced by determineVariableFixings(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_EVENTEXEC(), and SCIPupdateStartpointHeurSubNlp().
returns whether two given solutions are exactly equal
scip | SCIP data structure |
sol1 | first primal CIP solution |
sol2 | second primal CIP solution |
Definition at line 38538 of file scip.c.
References checkStage(), FALSE, Scip::origprob, SCIP_CALL_ABORT, SCIPsolsAreEqual(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
SCIP_RETCODE SCIPadjustImplicitSolVals | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool | uselprows | ||
) |
adjusts solution values of implicit integer variables in handed solution. Solution objective value is not deteriorated by this method.
scip | SCIP data structure |
sol | primal CIP solution |
uselprows | should LP row information be considered for none-objective variables |
Definition at line 38558 of file scip.c.
References checkStage(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPsolAdjustImplicitSolVals(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by performSimpleRounding().
SCIP_RETCODE SCIPprintSol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs non-zero variables of solution in original problem space to the given file stream
sol
is NULL (askinking for the current LP/pseudo solution), this method can be called if scip
is in one of the following stages:
sol
is not NULL, this method can be called if scip
is in one of the following stages:
outputs non-zero variables of solution in original problem space to the given file stream
sol
is NULL (asking for the current LP/pseudo solution), this method can be called if scip
is in one of the following stages:
sol
is not NULL, this method can be called if scip
is in one of the following stages:
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo solution |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 38601 of file scip.c.
References checkStage(), FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, NULL, Scip::origprob, Scip::primal, SCIP_Mem::probmem, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPisTransformed(), SCIPmessageFPrintInfo(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), SCIPprintReal(), SCIPprobExternObjval(), SCIPsolCreateCurrentSol(), SCIPsolFree(), SCIPsolGetObj(), SCIPsolGetOrigObj(), SCIPsolIsOriginal(), SCIPsolIsPartial(), SCIPsolPrint(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by checkSystemGF2(), createCGCutDirect(), enforceConstraint(), fromCommandLine(), performRandRounding(), performSimpleRounding(), runCircle(), runString(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERREDCOST(), SCIPcreateFiniteSolCopy(), SCIPprintBestSol(), searchEcAggrWithMIP(), separateCuts(), solveCoveringProblem(), and trySolCandidate().
SCIP_RETCODE SCIPprintTransSol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs non-zero variables of solution in transformed problem space to file stream
scip | SCIP data structure |
sol | primal solution, or NULL for current LP/pseudo solution |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 38683 of file scip.c.
References checkStage(), FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, NULL, Scip::origprob, Scip::primal, SCIP_Mem::probmem, SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPmessageFPrintInfo(), SCIPprintReal(), SCIPsolCreateCurrentSol(), SCIPsolFree(), SCIPsolGetObj(), SCIPsolIsOriginal(), SCIPsolPrint(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIPprintBestTransSol().
SCIP_RETCODE SCIPprintMIPStart | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
FILE * | file | ||
) |
outputs discrete variables of solution in original problem space to the given file stream
scip
is in one of the following stages:
scip | SCIP data structure |
sol | primal solution |
file | output file (or NULL for standard output) |
Definition at line 38740 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, NULL, Scip::origprob, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPisTransformed(), SCIPmessageFPrintInfo(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), SCIPprintReal(), SCIPprobExternObjval(), SCIPsolGetObj(), SCIPsolGetOrigObj(), SCIPsolIsOriginal(), SCIPsolIsPartial(), SCIPsolPrint(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPgetDualSolVal | ( | SCIP * | scip, |
SCIP_CONS * | cons, | ||
SCIP_Real * | dualsolval, | ||
SCIP_Bool * | boundconstraint | ||
) |
returns dual solution value of a constraint
scip | SCIP data structure |
cons | constraint for which the dual solution should be returned |
dualsolval | pointer to store the dual solution value |
boundconstraint | pointer to store whether the constraint is a bound constraint (or NULL) |
Definition at line 38783 of file scip.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_INVALIDCALL, SCIP_OBJSENSE_MAXIMIZE, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconsGetNVars(), SCIPconsGetTransformed(), SCIPconsGetVars(), SCIPconshdlrGetName(), SCIPconsIsTransformed(), SCIPfreeBufferArray, SCIPgetDualsolLinear(), SCIPgetLhsLinear(), SCIPgetObjsense(), SCIPgetRhsLinear(), SCIPgetVarRedcost(), SCIPsetIsEQ(), SCIPvarGetLPSol(), and Scip::set.
Referenced by printDualSol().
check whether the dual solution is available
scip | SCIP data structure |
printreason | print warning message if dualsol is not available? |
Definition at line 38927 of file scip.c.
References checkStage(), SCIP_Prob::conss, FALSE, Scip::messagehdlr, SCIP_Prob::nconss, SCIP_Prob::ncontvars, NULL, SCIP_Prob::nvars, SCIP_Stat::performpresol, SCIP_CALL_ABORT, SCIP_STAGE_SOLVED, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetStage(), SCIPmessageFPrintInfo(), SCIPwarningMessage(), Scip::stat, Scip::transprob, and TRUE.
Referenced by SCIPprintDualSol().
SCIP_RETCODE SCIPprintDualSol | ( | SCIP * | scip, |
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs dual solution from LP solver to file stream
outputs dual solution from LP solver to file stream
scip | SCIP data structure |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 38990 of file scip.c.
References printDualSol(), SCIP_CALL, SCIP_OKAY, SCIPisDualSolAvailable(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPprintRay | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs non-zero variables of solution representing a ray in original problem space to file stream
scip | SCIP data structure |
sol | primal solution representing ray |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 39023 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, NULL, Scip::origprob, SCIP_CALL, SCIP_OKAY, SCIPsolPrintRay(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
Referenced by applyOfins(), and updatePrimalRay().
int SCIPgetNSols | ( | SCIP * | scip | ) |
gets number of feasible primal solutions stored in the solution storage in case the problem is transformed; in case the problem stage is SCIP_STAGE_PROBLEM, the number of solution in the original solution candidate storage is returned
scip | SCIP data structure |
Definition at line 39059 of file scip.c.
References checkStage(), FALSE, SCIP_Primal::nsols, Scip::origprimal, Scip::primal, SCIP_CALL_ABORT, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPABORT, SCIPerrorMessage, Scip::set, SCIP_Set::stage, and TRUE.
Referenced by applyCompletesol(), applyHeur(), applyOfins(), applyRepair(), applyVbounds(), checkEstimateCriterion(), checkLogCriterion(), checkRankOneTransition(), createCGCuts(), createNewSols(), createSubproblem(), determineSolvingPhase(), determineVariableFixings(), presolve(), presolveRound(), runCircle(), runString(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_CONCSOLVERSYNCWRITE(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERREDCOST(), SCIP_DECL_SEPAEXECLP(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPapplyRens(), SCIPapplyZeroobj(), SCIPvalidateSolve(), searchEcAggrWithMIP(), selectSolsRandomized(), solveAndEvalSubscip(), solveCoveringProblem(), solveSubMIP(), solveSubNLP(), solveSubproblem(), storeAggrFromMIP(), and transformSols().
gets array of feasible primal solutions stored in the solution storage in case the problem is transformed; in case if the problem stage is in SCIP_STAGE_PROBLEM, it returns the number array of solution candidate stored
scip | SCIP data structure |
Definition at line 39108 of file scip.c.
References checkStage(), FALSE, NULL, Scip::origprimal, Scip::primal, SCIP_CALL_ABORT, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, Scip::set, SCIP_Primal::sols, SCIP_Set::stage, and TRUE.
Referenced by applyCompletesol(), applyOfins(), applyVbounds(), createCGCuts(), createNewSols(), determineVariableFixings(), fixVariables(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), SCIP_DECL_CONCSOLVERSYNCWRITE(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERREDCOST(), SCIPapplyRens(), SCIPapplyZeroobj(), selectSolsRandomized(), solveSubMIP(), solveSubNLP(), solveSubproblem(), and transformSols().
gets best feasible primal solution found so far if the problem is transformed; in case the problem is in SCIP_STAGE_PROBLEM it returns the best solution candidate, or NULL if no solution has been found or the candidate store is empty;
scip | SCIP data structure |
Definition at line 39158 of file scip.c.
References checkStage(), FALSE, SCIP_Primal::nsols, NULL, Scip::origprimal, Scip::primal, SCIP_CALL_ABORT, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INIT, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, Scip::set, SCIP_Primal::sols, SCIP_Set::stage, and TRUE.
Referenced by addLocalBranchingConstraint(), applyCompletesol(), applyHeur(), applyOfins(), applyRepair(), computeIntegerVariableBounds(), createSubscip(), determineFixings(), determineVariableFixings(), displayRelevantStats(), execRelpscost(), fixAndPropagate(), fromCommandLine(), getActivities(), getFixingValue(), maximalslack(), presolve(), presolveRound(), runCircle(), runString(), SCIP_DECL_CONSEXIT(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DISPINITSOL(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SOLVECUMULATIVE(), SCIPaddCurrentSol(), SCIPaddSol(), SCIPaddSolFree(), SCIPapplyHeurDualval(), SCIPapplyProximity(), SCIPapplyRens(), SCIPcreateFiniteSolCopy(), SCIPprintBestSol(), SCIPprintBestTransSol(), SCIPtransformProb(), SCIPtryCurrentSol(), SCIPtrySol(), SCIPtrySolFree(), SCIPvalidateSolve(), searchEcAggrWithMIP(), selectInitialVariable(), solveAndEvalSubscip(), solveComponent(), solveCoveringProblem(), and storeAggrFromMIP().
SCIP_RETCODE SCIPprintBestSol | ( | SCIP * | scip, |
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs best feasible primal solution found so far to file stream
outputs best feasible primal solution found so far to file stream
scip | SCIP data structure |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 39224 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_OKAY, SCIPgetBestSol(), SCIPmessageFPrintInfo(), SCIPprintSol(), and TRUE.
Referenced by fromCommandLine(), SCIP_DECL_DIALOGEXEC(), separateBySolvingAuxIP(), and solveSubscip().
SCIP_RETCODE SCIPprintBestTransSol | ( | SCIP * | scip, |
FILE * | file, | ||
SCIP_Bool | printzeros | ||
) |
outputs best feasible primal solution found so far in transformed variables to file stream
outputs best feasible primal solution found so far in transformed variables to file stream
scip | SCIP data structure |
file | output file (or NULL for standard output) |
printzeros | should variables set to zero be printed? |
Definition at line 39264 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPgetBestSol(), SCIPmessageFPrintInfo(), SCIPprintTransSol(), SCIPsolIsOriginal(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIProundSol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool * | success | ||
) |
try to round given solution
scip | SCIP data structure |
sol | primal solution |
success | pointer to store whether rounding was successful |
Definition at line 39300 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPsolIsOriginal(), SCIPsolRound(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyBoundHeur(), applyCliqueFixings(), applyVbounds(), performStrongbranchWithPropagation(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), and solveNLP().
SCIP_RETCODE SCIPretransformSol | ( | SCIP * | scip, |
SCIP_SOL * | sol | ||
) |
retransforms solution to original problem space
retransforms solution to original problem space
scip | SCIP data structure |
sol | primal CIP solution |
Definition at line 39336 of file scip.c.
References checkStage(), FALSE, Scip::origprob, SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_SOLORIGIN_LPSOL, SCIP_SOLORIGIN_NLPSOL, SCIP_SOLORIGIN_ORIGINAL, SCIP_SOLORIGIN_PARTIAL, SCIP_SOLORIGIN_PSEUDOSOL, SCIP_SOLORIGIN_RELAXSOL, SCIP_SOLORIGIN_UNKNOWN, SCIP_SOLORIGIN_ZERO, SCIPerrorMessage, SCIPsolGetOrigin(), SCIPsolRetransform(), SCIPunlinkSol(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
Referenced by fromCommandLine().
SCIP_RETCODE SCIPreadSol | ( | SCIP * | scip, |
const char * | filename | ||
) |
reads a given solution file, problem has to be transformed in advance
scip | SCIP data structure |
filename | name of the input file |
Definition at line 39394 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPreadProb(), and TRUE.
SCIP_RETCODE SCIPreadSolFile | ( | SCIP * | scip, |
const char * | filename, | ||
SCIP_SOL * | sol, | ||
SCIP_Bool | xml, | ||
SCIP_Bool * | partial, | ||
SCIP_Bool * | error | ||
) |
reads a given solution file and store the solution values in the given solution pointer
scip | SCIP data structure |
filename | name of the input file |
sol | solution pointer |
xml | true, iff the given solution in written in XML |
partial | pointer to store if the solution is partial |
error | pointer store if an error occured |
Definition at line 39736 of file scip.c.
References checkStage(), FALSE, readSolFile(), readXmlSolFile(), SCIP_CALL, SCIP_OKAY, and TRUE.
SCIP_RETCODE SCIPaddSol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool * | stored | ||
) |
adds feasible primal solution to solution storage by copying it
scip | SCIP data structure |
sol | primal CIP solution |
stored | stores whether given solution was good enough to keep |
Definition at line 39776 of file scip.c.
References checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, Scip::origprimal, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcreateSolCopy(), SCIPerrorMessage, SCIPgetBestSol(), SCIPprimalAddOrigSol(), SCIPprimalAddSol(), SCIPprimalAddSolFree(), SCIPsolIsOriginal(), SCIPsolRetransform(), SCIPsolUnlink(), SCIPstoreSolutionGap(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by solveComponent().
SCIP_RETCODE SCIPaddSolFree | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_Bool * | stored | ||
) |
adds primal solution to solution storage, frees the solution afterwards
scip | SCIP data structure |
sol | pointer to primal CIP solution; is cleared in function call |
stored | stores whether given solution was good enough to keep |
Definition at line 39866 of file scip.c.
References checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, NULL, Scip::origprimal, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, SCIPgetBestSol(), SCIPprimalAddOrigSolFree(), SCIPprimalAddSolFree(), SCIPsolIsOriginal(), SCIPsolRetransform(), SCIPsolUnlink(), SCIPstoreSolutionGap(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyRepair(), readMst(), readSol(), SCIP_DECL_CONCSOLVERCOPYSOLVINGDATA(), and SCIP_DECL_HEUREXEC().
SCIP_RETCODE SCIPaddCurrentSol | ( | SCIP * | scip, |
SCIP_HEUR * | heur, | ||
SCIP_Bool * | stored | ||
) |
adds current LP/pseudo solution to solution storage
scip | SCIP data structure |
heur | heuristic that found the solution |
stored | stores whether given solution was good enough to keep |
Definition at line 39936 of file scip.c.
References checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_OKAY, SCIPgetBestSol(), SCIPprimalAddCurrentSol(), SCIPstoreSolutionGap(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
SCIP_RETCODE SCIPtrySol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool | printreason, | ||
SCIP_Bool | completely, | ||
SCIP_Bool | checkbounds, | ||
SCIP_Bool | checkintegrality, | ||
SCIP_Bool | checklprows, | ||
SCIP_Bool * | stored | ||
) |
checks solution for feasibility; if possible, adds it to storage by copying
scip | SCIP data structure |
sol | primal CIP solution |
printreason | Should all reasons of violation be printed? |
completely | Should all violations be checked? |
checkbounds | Should the bounds of the variables be checked? |
checkintegrality | Has integrality to be checked? |
checklprows | Do constraints represented by rows in the current LP have to be checked? |
stored | stores whether given solution was feasible and good enough to keep |
Definition at line 39976 of file scip.c.
References checkSolOrig(), checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, NULL, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPerrorMessage, SCIPgetBestSol(), SCIPprimalAddSol(), SCIPprimalTrySol(), SCIPsolIsOriginal(), SCIPsolIsPartial(), SCIPsolRetransform(), SCIPsolUnlink(), SCIPstoreSolutionGap(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by applyBoundHeur(), applyCliqueFixings(), applyVbounds(), createNewSol(), enforceCardinality(), performRandRounding(), performSimpleRounding(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), solveLp(), solveSubNLP(), and solveSubproblem().
SCIP_RETCODE SCIPtrySolFree | ( | SCIP * | scip, |
SCIP_SOL ** | sol, | ||
SCIP_Bool | printreason, | ||
SCIP_Bool | completely, | ||
SCIP_Bool | checkbounds, | ||
SCIP_Bool | checkintegrality, | ||
SCIP_Bool | checklprows, | ||
SCIP_Bool * | stored | ||
) |
checks primal solution; if feasible, adds it to storage; solution is freed afterwards
scip | SCIP data structure |
sol | pointer to primal CIP solution; is cleared in function call |
printreason | Should all reasons of violations be printed |
completely | Should all violation be checked? |
checkbounds | Should the bounds of the variables be checked? |
checkintegrality | Has integrality to be checked? |
checklprows | Do constraints represented by rows in the current LP have to be checked? |
stored | stores whether solution was feasible and good enough to keep |
Definition at line 40070 of file scip.c.
References checkSolOrig(), checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, NULL, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPerrorMessage, SCIPgetBestSol(), SCIPprimalAddSolFree(), SCIPprimalTrySolFree(), SCIPsolFree(), SCIPsolIsOriginal(), SCIPsolIsPartial(), SCIPsolRetransform(), SCIPsolUnlink(), SCIPstoreSolutionGap(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by createNewSol(), createNewSols(), performStrongbranchWithPropagation(), readSol(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_HEUREXEC(), solveSubNLP(), storeSolution(), tryOneOpt(), and trySolCandidate().
SCIP_RETCODE SCIPtryCurrentSol | ( | SCIP * | scip, |
SCIP_HEUR * | heur, | ||
SCIP_Bool | printreason, | ||
SCIP_Bool | completely, | ||
SCIP_Bool | checkintegrality, | ||
SCIP_Bool | checklprows, | ||
SCIP_Bool * | stored | ||
) |
checks current LP/pseudo solution for feasibility; if possible, adds it to storage
scip | SCIP data structure |
heur | heuristic that found the solution |
printreason | Should all reasons of violations be printed? |
completely | Should all violation be checked? |
checkintegrality | Has integrality to be checked? |
checklprows | Do constraints represented by rows in the current LP have to be checked? |
stored | stores whether given solution was feasible and good enough to keep |
Definition at line 40163 of file scip.c.
References checkStage(), Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_OKAY, SCIPgetBestSol(), SCIPprimalTryCurrentSol(), SCIPstoreSolutionGap(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
returns all partial solutions
scip | SCIP data structure |
Definition at line 40206 of file scip.c.
References checkStage(), FALSE, NULL, Scip::origprimal, SCIP_Primal::partialsols, SCIP_CALL_ABORT, and TRUE.
int SCIPgetNPartialSols | ( | SCIP * | scip | ) |
returns number of partial solutions
scip | SCIP data structure |
Definition at line 40229 of file scip.c.
References checkStage(), FALSE, SCIP_Primal::npartialsols, NULL, Scip::origprimal, SCIP_CALL_ABORT, and TRUE.
SCIP_RETCODE SCIPcheckSol | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool | printreason, | ||
SCIP_Bool | completely, | ||
SCIP_Bool | checkbounds, | ||
SCIP_Bool | checkintegrality, | ||
SCIP_Bool | checklprows, | ||
SCIP_Bool * | feasible | ||
) |
checks solution for feasibility without adding it to the solution store
scip | SCIP data structure |
sol | primal CIP solution |
printreason | Should all reasons of violations be printed? |
completely | Should all violation be checked? |
checkbounds | Should the bounds of the variables be checked? |
checkintegrality | Has integrality to be checked? |
checklprows | Do constraints represented by rows in the current LP have to be checked? |
feasible | stores whether given solution is feasible |
Definition at line 40256 of file scip.c.
References checkSolOrig(), checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_Set::misc_exactsolve, SCIP_Mem::probmem, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPsolCheck(), SCIPsolIsOriginal(), SCIPsolIsPartial(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
Referenced by checkSystemGF2(), solveAndEvalSubscip(), solveComponent(), and solveSubNLP().
SCIP_RETCODE SCIPcheckSolOrig | ( | SCIP * | scip, |
SCIP_SOL * | sol, | ||
SCIP_Bool * | feasible, | ||
SCIP_Bool | printreason, | ||
SCIP_Bool | completely | ||
) |
checks solution for feasibility in original problem without adding it to the solution store; this method is used to double check a solution in order to validate the presolving process
scip | SCIP data structure |
sol | primal CIP solution |
feasible | stores whether given solution is feasible |
printreason | should the reason for the violation be printed? |
completely | should all violation be checked? |
Definition at line 40313 of file scip.c.
References checkSolOrig(), checkStage(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPsolIsPartial(), and TRUE.
Referenced by checkSolutionOrig(), displayRelevantStats(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_PRICERREDCOST(), SCIPsolveCIP(), SCIPvalidateSolve(), solveAndEvalSubscip(), and solveComponent().
return whether a primal ray is stored that proves unboundedness of the LP relaxation
scip | SCIP data structure |
Definition at line 40351 of file scip.c.
References checkStage(), FALSE, NULL, Scip::primal, SCIP_Primal::primalray, SCIP_CALL_ABORT, and TRUE.
Referenced by applyOfins(), and generateCutUnboundedLP().
gets value of given variable in primal ray causing unboundedness of the LP relaxation; should only be called if such a ray is stored (check with SCIPhasPrimalRay())
scip | SCIP data structure |
var | variable to get value for |
Definition at line 40369 of file scip.c.
References checkStage(), FALSE, NULL, Scip::primal, SCIP_Primal::primalray, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPsolGetRayVal(), Scip::set, Scip::stat, and TRUE.
Referenced by applyOfins(), and generateCutUnboundedLP().
SCIP_RETCODE SCIPupdatePrimalRay | ( | SCIP * | scip, |
SCIP_SOL * | primalray | ||
) |
updates the primal ray thats proves unboundedness
scip
is in one of the following stages:
See SCIP_STAGE for a complete list of all possible solving stages.
scip | SCIP data structure |
primalray | the new primal ray |
Definition at line 40396 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, Scip::primal, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPprimalUpdateRay(), Scip::set, Scip::stat, and TRUE.
Referenced by applyOfins().