wrapper for rational number arithmetic
Macros | |
| #define | SCIPrationalDebugMessage while ( FALSE ) SCIPrationalPrintf |
| #define SCIPrationalDebugMessage while ( FALSE ) SCIPrationalPrintf |
rational extension for the SCIPdebugMsg
Definition at line 641 of file rational.h.
Referenced by applyBounding(), certificatePrintMirSplit(), checkCons(), colExactAddCoef(), colExactChgCoefPos(), colExactDelCoefPos(), consdataGetActivity(), getFixedVariable(), getObjective(), lpExactFlushAddRows(), lpExactFlushAndSolve(), parseValue(), primalSetCutoffboundExact(), primalSetUpperboundExact(), probScaleObjExact(), propagateCons(), readRhsExact(), rowExactAddCoef(), rowExactChgCoefPos(), rowExactDelCoefPos(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintMirCut(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactAddCol(), SCIPlpExactAddRow(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactSolveAndEval(), SCIPnodeAddBoundinferExact(), SCIPnodepqInsert(), SCIPprobAddObjoffsetExact(), SCIPrationalToString(), SCIPsolOverwriteFPSolWithExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAdjustLbExact(), SCIPvarAdjustUbExact(), SCIPvarAggregateExact(), SCIPvarChgLbExactDive(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbExactDive(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetProbvarBoundExact(), SCIPvarMultiaggregateExact(), solCheckExact(), varEventGlbChangedExact(), varEventLbChangedExact(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| SCIP_RETCODE SCIPrationalCreate | ( | SCIP_RATIONAL ** | rational | ) |
creates a rational using standard memory allocation
allocate and create a rational from nominator and denominator using ordinary memory
| rational | pointer to the rational to create |
Definition at line 94 of file rational.cpp.
References BMSallocMemory, FALSE, SCIP_ALLOC, SCIP_ISFPREPRESENTABLE_TRUE, and SCIP_OKAY.
Referenced by SCIP_DECL_SORTINDCOMP(), SCIPrationalCopy(), SCIPrationalCreateArray(), SCIPrationalReallocArray(), SCIPstatCreate(), SCIPvalidateSolveExact(), SCIPvarGetLPSolExact_rec(), and treeAddPendingBdchg().
| SCIP_RETCODE SCIPrationalCreateBuffer | ( | BMS_BUFMEM * | bufmem, |
| SCIP_RATIONAL ** | rational ) |
creates a rational using buffer memory
allocate and create a rational from nominator and denominator using buffer memory
| bufmem | buffer memory |
| rational | pointer to the rational to create |
Definition at line 123 of file rational.cpp.
References BMSallocBufferMemory, FALSE, SCIP_ISFPREPRESENTABLE_TRUE, and SCIP_OKAY.
Referenced by addConstraintExact(), applyFixings(), branchcandCalcLPCandsExact(), certificatePrintMirSplit(), certificatePrintRow(), checkIntegralityExact(), checkSolOrigExact(), colExactSwapCoefs(), consdataCreate(), consdataGetActivity(), consdataGetFeasibility(), consdataScaleMinValue(), consPrintConsSol(), createAndAddProofcons(), displayRelevantStats(), getFixedVariable(), getObjectiveRow(), getObjvalDeltaObjExact(), getVariable(), lpExactFlushChgCols(), lpExactFlushChgRows(), mergeMultiples(), primalAddSol(), primalAddSolExact(), primalSetCutoffbound(), primalSetUpperboundExact(), printActivityConflictToCertificate(), printLinearConsExact(), printRowExact(), probScaleObjExact(), readBinaries(), readBoundsExact(), readBoundsRational(), readCoefficientsRational(), readColsExact(), readConstraints(), readConstraintsRational(), readObjectiveRational(), readOPBFile(), readRangesExact(), readRhsExact(), readRowsExact(), rowExactCreateFromRowLimitEncodingLength(), rowExactSwapCoefs(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_READERREAD(), SCIPaddCoefExactLinear(), SCIPaddOrigObjoffset(), SCIPaggregateVarsExact(), SCIPbranchExecLPExact(), SCIPcalcIntegralScalarExact(), SCIPcertificatePrintAggrrow(), SCIPcertificatePrintCutoffBound(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintInheritedBound(), SCIPcertificatePrintMirCut(), SCIPcertificatePrintResult(), SCIPcertificatePrintUnsplitting(), SCIPcertificateUpdateBranchingData(), SCIPcertifyActivityVarBound(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcollectSolutionStatistics(), SCIPconsPrintCertificateExactLinear(), SCIPcreateConsExactLinear(), SCIPdelCoefExactLinear(), SCIPeventProcess(), SCIPgetDualboundExact(), SCIPgetSolOrigObjExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactEndDive(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactSetCutoffbound(), SCIPlpExactSolveAndEval(), SCIPlpExactUpdateAddVar(), SCIPlpExactUpdateDelVar(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLbGlobal(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPlpExactUpdateVarUb(), SCIPlpExactUpdateVarUbGlobal(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerboundLP(), SCIPparseVarsPolynomialExact(), SCIPprimalUpdateObjoffsetExact(), SCIPprintSolExact(), SCIPprintSolutionStatistics(), SCIPrationalCopyBuffer(), SCIPrationalCreateBufferArray(), SCIPrationalReallocBufferArray(), SCIPreaderWrite(), SCIProwExactAddConstant(), SCIProwExactCreateFromRow(), SCIProwExactGetLPFeasibility(), SCIProwExactGetPseudoFeasibility(), SCIProwExactGetSolActivity(), SCIProwExactGetSolFeasibility(), SCIProwExactIncCoef(), SCIPsolGetValExact(), SCIPsolMakeExact(), SCIPsolMakeReal(), SCIPsolOverwriteFPSolWithExact(), SCIPsolPrintExact(), SCIPsolRecomputeInternObjExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPsolveExactDiveLP(), SCIPtightenVarLbExact(), SCIPtightenVarUbExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), SCIPwriteLp(), setObjective(), solCheckExact(), solOfInterest(), solsAreEqualExact(), solUnlinkVarExact(), tightenVarBounds(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), tryAggregateIntVarsExact(), updateLpExactBoundChange(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), varUpdateAggregationBoundsExact(), writeOpbConstraints(), and writeOpbObjective().
| SCIP_RETCODE SCIPrationalCreateBlock | ( | BMS_BLKMEM * | blkmem, |
| SCIP_RATIONAL ** | rational ) |
creates a rational using block memory
allocate and create a rational from nominator and denominator using block memory
| blkmem | block memory |
| rational | pointer to the rational to create |
Definition at line 108 of file rational.cpp.
References BMSallocBlockMemory, FALSE, SCIP_ALLOC, SCIP_ISFPREPRESENTABLE_TRUE, and SCIP_OKAY.
Referenced by colExactEnsureSize(), consdataCreate(), consdataEnsureVarsSize(), conshdlrdataCreate(), nodeCreate(), rowExactStoreSolVals(), SCIPcertificateInit(), SCIPcertificateNewMirInfo(), SCIPcertificateSetAndPrintObjective(), SCIPcolExactCreate(), SCIPlpExactCreate(), SCIPprobCreate(), SCIPprocessShellArguments(), SCIPrationalCopyBlock(), SCIPrationalCreateBlockArray(), SCIPrationalCreateString(), SCIPrationalReallocBlockArray(), SCIProwExactEnsureSize(), SCIPsolCreateExact(), SCIPsolCreateOriginalExact(), SCIPsolMakeExact(), SCIPtransformProb(), SCIPvarAddExactData(), SCIPvarAggregateExact(), SCIPvarParseOriginal(), and SCIPvarParseTransformed().
| SCIP_RETCODE SCIPrationalCopy | ( | SCIP_RATIONAL ** | result, |
| SCIP_RATIONAL * | src ) |
creates a copy of a rational using ordinary memory
| result | pointer to the rational to create |
| src | rational to copy |
Definition at line 138 of file rational.cpp.
References result, SCIP_CALL, SCIP_OKAY, SCIPrationalCreate(), and SCIPrationalSetRational().
Referenced by SCIPrationalCopyArray().
| SCIP_RETCODE SCIPrationalCopyBlock | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL ** | result, | ||
| SCIP_RATIONAL * | src ) |
creates a copy of a rational using block memory
| mem | block memory |
| result | pointer to the rational to create |
| src | rational to copy |
Definition at line 151 of file rational.cpp.
References result, SCIP_CALL, SCIP_OKAY, SCIPrationalCreateBlock(), and SCIPrationalSetRational().
Referenced by colExactAddCoef(), colExactStoreSolVals(), consdataCreate(), lpExactStoreSolVals(), rowExactAddCoef(), rowExactStoreSolVals(), SCIPaddCoefExactLinear(), SCIPcolExactCreate(), SCIPdomchgAddBoundchg(), SCIPeventAddExactBdChg(), SCIPeventAddExactObjChg(), SCIPrationalCopyBlockArray(), SCIProwExactCreate(), SCIPvalsExactCopy(), SCIPvarAddExactData(), SCIPvarCopyExactData(), and SCIPvarMultiaggregateExact().
| SCIP_RETCODE SCIPrationalCopyBuffer | ( | BMS_BUFMEM * | bufmem, |
| SCIP_RATIONAL ** | result, | ||
| SCIP_RATIONAL * | src ) |
creates a copy of a rational
creates a copy of a rational using buffer memory
| bufmem | buffer memory |
| result | pointer to the rational to create |
| src | rational to copy |
Definition at line 165 of file rational.cpp.
References result, SCIP_CALL, SCIP_OKAY, SCIPrationalCreateBuffer(), and SCIPrationalSetRational().
Referenced by addConstraintExact(), and SCIPrationalCopyBufferArray().
| SCIP_RETCODE SCIPrationalCreateArray | ( | SCIP_RATIONAL *** | rational, |
| int | size ) |
creates an array of rationals using ordinary memory
create an array of rationals using ordinary memory
| rational | pointer to the array to create |
| size | the size of the array |
Definition at line 179 of file rational.cpp.
References BMSallocMemoryArray, i, SCIP_CALL, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_OKAY, and SCIPrationalCreate().
Referenced by SCIP_DECL_DIALOGEXEC().
| SCIP_RETCODE SCIPrationalCreateBlockArray | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL *** | rational, | ||
| int | size ) |
creates an array of rationals using block memory
create an array of rationals using block memory
| mem | block memory |
| rational | pointer to the array to create |
| size | the size of the array |
Definition at line 196 of file rational.cpp.
References BMSallocBlockMemoryArray, i, SCIP_CALL, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_OKAY, and SCIPrationalCreateBlock().
Referenced by readCoefficientsRational(), and SCIPcertificateInit().
| SCIP_RETCODE SCIPrationalCreateBufferArray | ( | BMS_BUFMEM * | mem, |
| SCIP_RATIONAL *** | rational, | ||
| int | size ) |
creates an array of rationals using buffer memory
create an array of rationals using buffer memory
| mem | block memory |
| rational | pointer to the arrat to create |
| size | the size of the array |
Definition at line 214 of file rational.cpp.
References BMSallocBufferMemoryArray, i, SCIP_CALL, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_OKAY, and SCIPrationalCreateBuffer().
Referenced by addConstraintExact(), certificatePrintSol(), consdataCreate(), createAndAddProofcons(), getFixedVariable(), lpExactFlushAddCols(), lpExactFlushAddRows(), lpExactFlushChgCols(), lpExactFlushChgRows(), printLinearConsExact(), probScaleObjExact(), readConstraints(), readOPBFile(), SCIP_DECL_CONSPARSE(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintDualboundPseudo(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetPrimalRay(), SCIPlpExactGetSol(), SCIPmatrixCreate(), SCIPsolRetransformExact(), and SCIPvarGetActiveRepresentativesExact().
| SCIP_RETCODE SCIPrationalCopyArray | ( | SCIP_RATIONAL *** | target, |
| SCIP_RATIONAL ** | src, | ||
| int | len ) |
copies an array of rationals using ordinary memory
copy an array of rationals using ordinary memory
| target | address to copy to |
| src | src array |
| len | size of src array |
Definition at line 232 of file rational.cpp.
References BMSduplicateMemoryArray, i, SCIP_CALL, SCIP_OKAY, and SCIPrationalCopy().
| SCIP_RETCODE SCIPrationalCopyBlockArray | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL *** | target, | ||
| SCIP_RATIONAL ** | src, | ||
| int | len ) |
copies an array of rationals using block memory
copy an array of rationals using block memory
| mem | block memory |
| target | address to copy to |
| src | src array |
| len | size of src array |
Definition at line 249 of file rational.cpp.
References BMSduplicateBlockMemoryArray, i, SCIP_CALL, SCIP_OKAY, and SCIPrationalCopyBlock().
Referenced by consdataCreate(), SCIPcolExactCreate(), SCIProwExactCreate(), SCIPvarCopyExactData(), and SCIPvarMultiaggregateExact().
| SCIP_RETCODE SCIPrationalCopyBufferArray | ( | BMS_BUFMEM * | mem, |
| SCIP_RATIONAL *** | result, | ||
| SCIP_RATIONAL ** | src, | ||
| int | len ) |
copy an array of rationals using buffer memory
| mem | buffer memory |
| result | address to copy to |
| src | src array |
| len | size of src array |
Definition at line 267 of file rational.cpp.
References BMSduplicateBufferMemoryArray, i, result, SCIP_CALL, SCIP_OKAY, and SCIPrationalCopyBuffer().
Referenced by addConstraintExact(), printLinearConsExact(), and SCIPvarGetActiveRepresentativesExact().
| SCIP_RETCODE SCIPrationalReallocArray | ( | SCIP_RATIONAL *** | result, |
| int | oldlen, | ||
| int | newlen ) |
realloc a rational ordinary array
realloc a rational ordinary arrray
| result | address to copy to |
| oldlen | size of src array |
| newlen | size of src array |
Definition at line 285 of file rational.cpp.
References BMSreallocMemoryArray, i, result, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrationalCreate(), and SCIPrationalFree().
| SCIP_RETCODE SCIPrationalReallocBufferArray | ( | BMS_BUFMEM * | mem, |
| SCIP_RATIONAL *** | result, | ||
| int | oldlen, | ||
| int | newlen ) |
realloc a rational buffer arrray
| mem | buffer memory |
| result | address to copy to |
| oldlen | size of src array |
| newlen | size of src array |
Definition at line 314 of file rational.cpp.
References BMSreallocBufferMemoryArray, i, result, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrationalCreateBuffer(), and SCIPrationalFreeBuffer().
Referenced by getActiveVariablesExact(), getActiveVariablesExact(), getFixedVariable(), SCIP_DECL_CONSPARSE(), and SCIPvarGetActiveRepresentativesExact().
| SCIP_RETCODE SCIPrationalReallocBlockArray | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL *** | result, | ||
| int | oldlen, | ||
| int | newlen ) |
realloc a rational block arrray
| mem | block memory |
| result | address to copy to |
| oldlen | size of src array |
| newlen | size of src array |
Definition at line 344 of file rational.cpp.
References BMSreallocBlockMemoryArray, i, result, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPrationalCreateBlock(), and SCIPrationalFreeBlock().
Referenced by readCoefficientsRational(), SCIPcertificatePrintDualboundExactLP(), SCIPparseVarsPolynomialExact(), SCIPvarFlattenAggregationGraph(), and SCIPvarMultiaggregateExact().
| void SCIPrationalFree | ( | SCIP_RATIONAL ** | rational | ) |
deletes a rational and frees the allocated ordinary memory
delete a rational and free the allocated ordinary memory
| rational | address of the rational |
Definition at line 450 of file rational.cpp.
References assert(), and BMSfreeMemory.
Referenced by SCIP_DECL_SORTINDCOMP(), SCIPrationalFreeArray(), SCIPrationalReallocArray(), SCIPstatFree(), SCIPvalidateSolveExact(), and SCIPvarGetLPSolExact_rec().
| void SCIPrationalFreeBlock | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL ** | rational ) |
deletes a rational and frees the allocated block memory
delete a rational and free the allocated block memory
| mem | block memory |
| rational | address of the rational |
Definition at line 461 of file rational.cpp.
References assert(), and BMSfreeBlockMemory.
Referenced by certificateFreeNodeData(), consdataFree(), conshdlrdataFree(), eventFreeExactData(), readSolFile(), readXmlSolFile(), SCIPcertificateClearMirinfo(), SCIPcertificateExit(), SCIPcertificateFreeMirInfo(), SCIPcolExactFree(), SCIPdomchgFree(), SCIPeventqueueAdd(), SCIPfreeCertificateActiveMirInfo(), SCIPlpExactFree(), SCIPlpExactProjectShiftFree(), SCIPnodeFree(), SCIPprimalFree(), SCIPprobFree(), SCIPprocessShellArguments(), SCIPrationalFreeBlockArray(), SCIPrationalReallocBlockArray(), SCIProwExactFree(), SCIPsolMakeReal(), SCIPvarParseOriginal(), SCIPvarParseTransformed(), valsExactFree(), and varFreeExactData().
| void SCIPrationalFreeBuffer | ( | BMS_BUFMEM * | bufmem, |
| SCIP_RATIONAL ** | rational ) |
deletes a rational and frees the allocated buffer memory
delete a rational and free the allocated buffer memory
| bufmem | buffer memory |
| rational | address of the rational |
Definition at line 473 of file rational.cpp.
References assert(), and BMSfreeBufferMemory.
Referenced by addConstraintExact(), applyFixings(), branchcandCalcLPCandsExact(), certificatePrintMirSplit(), certificatePrintRow(), checkIntegralityExact(), checkSolOrigExact(), colExactSwapCoefs(), consdataCreate(), consdataGetActivity(), consdataGetFeasibility(), consdataScaleMinValue(), consPrintConsSol(), createAndAddProofcons(), displayRelevantStats(), getFixedVariable(), getObjectiveRow(), getObjvalDeltaObjExact(), getVariable(), lpExactFlushChgCols(), lpExactFlushChgRows(), mergeMultiples(), primalAddSol(), primalAddSolExact(), primalSetCutoffbound(), primalSetUpperboundExact(), printActivityConflictToCertificate(), printLinearConsExact(), printRowExact(), probScaleObjExact(), readBinaries(), readBoundsExact(), readBoundsRational(), readCoefficientsRational(), readColsExact(), readConstraints(), readConstraintsRational(), readObjectiveRational(), readOPBFile(), readRangesExact(), readRhsExact(), readRowsExact(), rowExactCreateFromRowLimitEncodingLength(), rowExactSwapCoefs(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_READERREAD(), SCIPaddCoefExactLinear(), SCIPaddOrigObjoffset(), SCIPaggregateVarsExact(), SCIPbranchExecLPExact(), SCIPcalcIntegralScalarExact(), SCIPcertificatePrintAggrrow(), SCIPcertificatePrintCutoffBound(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintInheritedBound(), SCIPcertificatePrintMirCut(), SCIPcertificatePrintResult(), SCIPcertificatePrintUnsplitting(), SCIPcertificateUpdateBranchingData(), SCIPcertifyActivityVarBound(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcollectSolutionStatistics(), SCIPconsPrintCertificateExactLinear(), SCIPcreateConsExactLinear(), SCIPdelCoefExactLinear(), SCIPeventProcess(), SCIPgetDualboundExact(), SCIPgetSolOrigObjExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactEndDive(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactSetCutoffbound(), SCIPlpExactSolveAndEval(), SCIPlpExactUpdateAddVar(), SCIPlpExactUpdateDelVar(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLbGlobal(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPlpExactUpdateVarUb(), SCIPlpExactUpdateVarUbGlobal(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerboundLP(), SCIPparseVarsPolynomialExact(), SCIPprimalUpdateObjoffsetExact(), SCIPprintSolExact(), SCIPprintSolutionStatistics(), SCIPrationalFreeBufferArray(), SCIPrationalReallocBufferArray(), SCIPreaderWrite(), SCIProwExactAddConstant(), SCIProwExactCreateFromRow(), SCIProwExactGetLPFeasibility(), SCIProwExactGetPseudoFeasibility(), SCIProwExactGetSolActivity(), SCIProwExactGetSolFeasibility(), SCIProwExactIncCoef(), SCIPsolGetValExact(), SCIPsolMakeExact(), SCIPsolMakeReal(), SCIPsolOverwriteFPSolWithExact(), SCIPsolPrintExact(), SCIPsolRecomputeInternObjExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPsolveExactDiveLP(), SCIPtightenVarLbExact(), SCIPtightenVarUbExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), SCIPwriteLp(), setObjective(), solCheckExact(), solOfInterest(), solsAreEqualExact(), solUnlinkVarExact(), tightenVarBounds(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), tryAggregateIntVarsExact(), updateLpExactBoundChange(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), varUpdateAggregationBoundsExact(), writeOpbConstraints(), and writeOpbObjective().
| void SCIPrationalFreeArray | ( | SCIP_RATIONAL *** | ratarray, |
| int | size ) |
deletes an array of rationals and frees the allocated ordinary memory
| ratarray | pointer to the array |
| size | size of the array |
Definition at line 485 of file rational.cpp.
References assert(), BMSfreeMemoryArrayNull, i, and SCIPrationalFree().
Referenced by SCIP_DECL_DIALOGEXEC().
| void SCIPrationalFreeBlockArray | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL *** | ratblockarray, | ||
| int | size ) |
deletes an array of rationals and frees the allocated block memory
| mem | block memory |
| ratblockarray | pointer to the array |
| size | size of the array |
Definition at line 501 of file rational.cpp.
References assert(), BMSfreeBlockMemoryArrayNull, i, and SCIPrationalFreeBlock().
Referenced by consdataFree(), readConstraintsRational(), readObjectiveRational(), SCIPcertificateExit(), SCIPcolExactFree(), SCIPfreeParseVarsPolynomialDataExact(), SCIPlpExactProjectShiftFree(), SCIProwExactFree(), SCIPvarMultiaggregateExact(), and varFreeExactData().
| void SCIPrationalFreeBufferArray | ( | BMS_BUFMEM * | mem, |
| SCIP_RATIONAL *** | ratbufarray, | ||
| int | size ) |
deletes an array of rationals and frees the allocated buffer memory
| mem | buffer memory |
| ratbufarray | pointer to the array |
| size | size of the array |
Definition at line 518 of file rational.cpp.
References assert(), BMSfreeBufferMemoryArrayNull, i, and SCIPrationalFreeBuffer().
Referenced by addConstraintExact(), certificatePrintSol(), consdataCreate(), createAndAddProofcons(), getFixedVariable(), lpExactFlushAddCols(), lpExactFlushAddRows(), lpExactFlushChgCols(), lpExactFlushChgRows(), printLinearConsExact(), probScaleObjExact(), readConstraints(), readOPBFile(), SCIP_DECL_CONSPARSE(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintDualboundPseudo(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetPrimalRay(), SCIPlpExactGetSol(), SCIPmatrixCreate(), SCIPmatrixFree(), SCIPsolRetransformExact(), and SCIPvarGetActiveRepresentativesExact().
| void SCIPrationalSetRational | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | src ) |
sets a rational to the value of another rational
set a rational to the value of another rational
| res | the result |
| src | the src |
Definition at line 569 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, and SCIP_Rational::val.
Referenced by addCoef(), addRowExact(), chgCoefPos(), chgLhs(), chgRhs(), colExactAddCoef(), colExactChgCoefPos(), colExactMoveCoef(), colExactRestoreSolVals(), colExactStoreSolVals(), colExactSwapCoefs(), consdataCreate(), delCoefPos(), initSolve(), lpExactFlushAddCols(), lpExactFlushAddRows(), lpExactFlushChgCols(), lpExactFlushChgRows(), lpExactRestoreSolVals(), lpExactStoreSolVals(), mergeMultiples(), nodeAssignParent(), primalSetCutoffbound(), primalSetUpperboundExact(), printBoundAssumption(), probScaleObjExact(), readConstraintsRational(), rowExactAddCoef(), rowExactChgCoefPos(), rowExactCreateFromRowLimitEncodingLength(), rowExactMerge(), rowExactMoveCoef(), rowExactRestoreSolVals(), rowExactStoreSolVals(), rowExactSwapCoefs(), SCIP_DECL_CONSPARSE(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificateNewNodeData(), SCIPcertificatePrintBoundCons(), SCIPcertificatePrintCutoffBound(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintGlobalBound(), SCIPcertificatePrintInheritedBound(), SCIPcertificatePrintMirCut(), SCIPcertificatePrintResult(), SCIPcertificatePrintUnsplitting(), SCIPcertificateUpdateBoundData(), SCIPcertificateUpdateParentData(), SCIPcertifyActivityVarBoundExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPcomputeVarLbLocalExact(), SCIPcomputeVarUbLocalExact(), SCIPdomchgAddBoundchg(), SCIPeventqueueAdd(), SCIPgetConsValsExact(), SCIPgetLowerboundExact(), SCIPgetRowSolActivityExact(), SCIPgetSolOrigObjExact(), SCIPgetUpperboundExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactEndDive(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetObjval(), SCIPlpExactGetPrimalRay(), SCIPlpExactGetPseudoObjval(), SCIPlpExactGetSol(), SCIPnodeAddBoundinferExact(), SCIPnodeCutoff(), SCIPnodeFocus(), SCIPnodepqBound(), SCIPnodeUpdateLowerbound(), SCIPparseVarsLinearsumExact(), SCIPparseVarsPolynomialExact(), SCIPprintSolExact(), SCIPrationalAdd(), SCIPrationalAddReal(), SCIPrationalarrayGetVal(), SCIPrationalCopy(), SCIPrationalCopyBlock(), SCIPrationalCopyBuffer(), SCIPrationalDiff(), SCIPrationalDivReal(), SCIPrationalMax(), SCIPrationalMin(), SCIPrationalMultReal(), SCIPrationalRoundInteger(), SCIPreaderWrite(), SCIProwExactChgConstant(), SCIProwExactChgLhs(), SCIProwExactChgRhs(), SCIProwExactGetSolActivity(), SCIProwExactRecalcLPActivity(), SCIProwExactRecalcPseudoActivity(), SCIPsolGetObjExact(), SCIPsolGetValExact(), SCIPsolOverwriteFPSolWithExact(), SCIPsolRetransformExact(), SCIPvarAddObjExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetSolExact(), SCIPvarMultiaggregateExact(), SCIPwriteLp(), setColumnMajorFormat(), solGetArrayValExact(), solsAreEqualExact(), treeAddPendingBdchg(), varParse(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), varUpdateAggregationBoundsExact(), and writeOpbConstraints().
| void SCIPrationalSetFraction | ( | SCIP_RATIONAL * | res, |
| SCIP_Longint | nom, | ||
| SCIP_Longint | denom ) |
sets a rational to a nom/denom value
set a rational to a nom/denom value
| res | the result |
| nom | the nominator |
| denom | the denominator |
Definition at line 582 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Longint, SCIPrationalCheckInfByValue(), and SCIP_Rational::val.
Referenced by addConstraintExact(), consdataComputePseudoActivity(), consdataGetActivity(), SCIPcalcIntegralScalarExact(), SCIPcertificatePrintInheritedBound(), SCIPcertificatePrintUnsplitting(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPrationalarrayGetVal(), SCIPrationalComputeApproximation(), SCIPsolGetValExact(), SCIPsolRecomputeInternObjExact(), SCIPvalidateSolveExact(), SCIPvarGetLbLocalExactMaximal(), SCIPvarGetUbLocalExactMinimal(), and tryAggregateIntVarsExact().
| void SCIPrationalSetReal | ( | SCIP_RATIONAL * | res, |
| SCIP_Real | real ) |
sets a rational to the value of another a real
set a rational to the value of another a real
| res | the result |
| real | real to set from |
Definition at line 603 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_Real, SCIPrationalCheckInfByValue(), SCIPrationalIsEQReal(), and SCIP_Rational::val.
Referenced by branchcandCalcLPCandsExact(), calcMIRSafely(), certificatePrintMirSplit(), certificatePrintRow(), checkIntegralityExact(), checkSolOrigExact(), colExactRestoreSolVals(), consdataCalcMinAbsvalEx(), consdataGetActivity(), consdataScaleMinValue(), createAndAddProofcons(), getFixedVariable(), getObjective(), getObjectiveRow(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), initPresolve(), initSolve(), markRowExactDeleted(), primalSetCutoffbound(), printActivityConflictToCertificate(), printLinearConsExact(), readBinaries(), readBoundsExact(), readBoundsRational(), readCoefficientsRational(), readConstraints(), readOPBFile(), readRowsExact(), rowExactCreateFromRowLimitEncodingLength(), rowExactRestoreSolVals(), SCIP_DECL_CONSCHECK(), SCIP_DECL_READERREAD(), SCIPaddOrigObjoffset(), SCIPbranchExecLPExact(), SCIPcertificatePrintAggrrow(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintMirCut(), SCIPcertificateUpdateBranchingData(), SCIPcertifyActivityVarBound(), SCIPeventProcess(), SCIPgetDualboundExact(), SCIPgetFpDualfarkasExactLinear(), SCIPgetFpDualsolExactLinear(), SCIPlpExactDecNLoosevars(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactReset(), SCIPnodeAddBoundinfer(), SCIPnodeUpdateLowerbound(), SCIPparseVarsPolynomialExact(), SCIPprimalUpdateObjoffsetExact(), SCIPprobCreate(), SCIPrationalAddReal(), SCIPrationalComputeApproximation(), SCIPrationalDivReal(), SCIPrationalGetFrac(), SCIPrationalMultReal(), SCIProwExactCreateFromRow(), SCIProwExactGetSolActivity(), SCIPsolClear(), SCIPsolGetValExact(), SCIPsolMakeExact(), SCIPsolRetransformExact(), SCIPvarAddExactData(), SCIPvarAggregateExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgUbOriginalExact(), SCIPvarGetProbvarSumExact(), SCIPvarMultiaggregateExact(), setObjective(), solCheckExact(), solGetArrayValExact(), solOfInterest(), solsAreEqualExact(), tightenVarBounds(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), updateLpExactBoundChange(), varProcessChgLbGlobal(), varProcessChgLbLocal(), varProcessChgUbGlobal(), varProcessChgUbLocal(), and writeOpbConstraints().
| void SCIPrationalSetInfinity | ( | SCIP_RATIONAL * | res | ) |
sets a rational to positive infinity
| res | the result |
Definition at line 618 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_TRUE, TRUE, and SCIP_Rational::val.
Referenced by addRowExact(), adjustedLbExact(), adjustedUbExact(), applyFixings(), coefChangedExact(), consdataComputePseudoActivity(), consdataGetActivity(), consdataInvalidateActivities(), consdataUpdateAddCoef(), consdataUpdateChgCoef(), consdataUpdateDelCoef(), isValueRational(), lpExactFlushAndSolve(), lpExactRestoreSolVals(), lpExactSetIterationLimit(), lpExactSetObjlim(), markRowExactDeleted(), readBoundsExact(), readBoundsRational(), readConstraintsRational(), readRowsExact(), rowExactStoreSolVals(), RsetSpxR(), SCIP_DECL_CONSPARSE(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintResult(), SCIPcertificatePrintUnsplitting(), SCIPgetActivityExactLinear(), SCIPlpExactDelRowset(), SCIPlpExactGetDualfarkas(), SCIPlpExactSetCutoffbound(), SCIPnodeCutoff(), SCIPnodeFocus(), SCIPnodepqBound(), SCIPprimalUpdateObjoffsetExact(), SCIProwExactCreateFromRow(), SCIPsolGetValExact(), SCIPstrToRationalValue(), SCIPtransformProb(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetProbvarSumExact(), tryAggregateIntVarsExact(), varParse(), and varUpdateAggregationBoundsExact().
| void SCIPrationalSetNegInfinity | ( | SCIP_RATIONAL * | res | ) |
sets a rational to negative infinity
| res | the result |
Definition at line 630 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_TRUE, TRUE, and SCIP_Rational::val.
Referenced by adjustedLbExact(), adjustedUbExact(), applyFixings(), consdataComputePseudoActivity(), consdataGetActivity(), createAndAddProofcons(), getObjectiveRow(), lpExactFlushAndSolve(), nodeCreate(), readBoundsExact(), readBoundsRational(), readConstraintsRational(), readOPBFile(), readRowsExact(), RsetSpxR(), SCIP_DECL_CONSPARSE(), SCIPcertificatePrintResult(), SCIPgetLowerboundExact(), SCIPgetUpperboundExact(), SCIPlpExactGetObjval(), SCIPlpExactGetPseudoObjval(), SCIProwExactCreateFromRow(), SCIPsolGetValExact(), SCIPstatCreate(), SCIPstrToRationalValue(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetProbvarSumExact(), tryAggregateIntVarsExact(), varParse(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsString | ( | const char * | desc | ) |
checks if a string describes a rational number
| desc | string to check |
Definition at line 652 of file rational.cpp.
References assert(), FALSE, NULL, SCIP_Bool, SCIPstrncasecmp(), and TRUE.
Referenced by isValueRational(), parseValue(), readSolFile(), and readXmlSolFile().
| void SCIPrationalSetString | ( | SCIP_RATIONAL * | res, |
| const char * | desc ) |
sets a rational to the value described by a string
| res | the result |
| desc | the string describing the rational |
Definition at line 716 of file rational.cpp.
References assert(), scip::denominator(), i, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, NULL, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPdebug, SCIPrationalCheckInfByValue(), SCIPstrncasecmp(), TRUE, and SCIP_Rational::val.
Referenced by isValueRational(), parseValue(), readBoundsExact(), readColsExact(), readRangesExact(), readRhsExact(), SCIPparseVarsPolynomialExact(), SCIPrationalCreateString(), and SCIPstrToRationalValue().
| SCIP_RETCODE SCIPrationalCreateString | ( | BMS_BLKMEM * | mem, |
| SCIP_RATIONAL ** | rational, | ||
| const char * | desc ) |
allocates and creates a rational from a string if known, otherwise assigns a null pointer
| mem | block memory |
| rational | pointer to the rational to create |
| desc | the string describing the rational |
Definition at line 796 of file rational.cpp.
References assert(), NULL, SCIP_CALL, SCIP_OKAY, SCIPrationalCreateBlock(), SCIPrationalSetString(), and SCIPstrncasecmp().
Referenced by consdataCreate(), readSolFile(), readXmlSolFile(), SCIPcertificateNewNodeData(), SCIPcolExactCreate(), and SCIProwExactCreate().
| SCIP_Bool SCIPstrToRationalValue | ( | char * | desc, |
| SCIP_RATIONAL * | value, | ||
| char ** | endptr ) |
extract the next token as a rational value if it is one; in case no value is parsed the endptr is set to desc
| desc | string to search |
| value | pointer to store the parsed value |
| endptr | pointer to store the final string position if successfully parsed, otherwise desc |
Definition at line 822 of file rational.cpp.
References assert(), FALSE, NULL, SCIP_Bool, SCIPrationalSetInfinity(), SCIPrationalSetNegInfinity(), SCIPrationalSetString(), SCIPstrncasecmp(), and TRUE.
Referenced by SCIPparseRational(), and SCIPparseVarsPolynomialExact().
| void SCIPrationalResetFloatingPointRepresentable | ( | SCIP_RATIONAL * | rat | ) |
resets the flag isfprepresentable to SCIP_ISFPREPRESENTABLE_UNKNOWN
| rat | the number to set flag for |
Definition at line 642 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, and SCIP_ISFPREPRESENTABLE_UNKNOWN.
| void SCIPrationalCanonicalize | ( | SCIP_RATIONAL * | rational | ) |
transforms rational into canonical form
| rational | rational to put in canonical form |
Definition at line 538 of file rational.cpp.
References assert(), and SCIP_Rational::val.
Referenced by parseValue(), readBoundsExact(), readColsExact(), readRangesExact(), readRhsExact(), SCIPcalcIntegralScalarExact(), SCIPrationalComputeApproximation(), SCIPrationalIsIntegral(), and tryAggregateIntVarsExact().
| void SCIPrationalCheckInfByValue | ( | SCIP_RATIONAL * | rational | ) |
checks if the underlying rational has a value >= infinity;
needed after underlying value was directly set, e.g. by exact lp solver
| rational | rational number |
Definition at line 552 of file rational.cpp.
References FALSE, infinity, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_TRUE, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by SCIPrationalSetFraction(), SCIPrationalSetReal(), and SCIPrationalSetString().
| void SCIPrationalAdd | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
adds two rationals and saves the result in res
add two rationals and save the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 935 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPABORT, SCIPerrorMessage, SCIPrationalSetRational(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by applyFixings(), lpExactUpdateObjval(), mergeMultiples(), readObjectiveRational(), readRangesExact(), rowExactMerge(), SCIPaggregateVarsExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactIncCoef(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetObjval(), SCIPlpExactGetSol(), SCIPprobAddObjoffsetExact(), SCIPprobExternObjvalExact(), SCIProwExactAddConstant(), SCIProwExactChgConstant(), SCIProwExactGetSolActivity(), SCIProwExactIncCoef(), SCIPsolGetValExact(), SCIPsolOrigAddObjvalExact(), SCIPvarAddObjExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact_rec(), SCIPvarMultiaggregateExact(), setObjective(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| void SCIPrationalAddReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | rat, | ||
| SCIP_Real | real ) |
adds a rational and a real and saves the result in res
add a rational and a real and save the result in res
| res | the result |
| rat | rational number |
| real | real number |
Definition at line 961 of file rational.cpp.
References assert(), FALSE, infinity, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, REALABS, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Real, SCIPrationalSetRational(), SCIPrationalSetReal(), and SCIP_Rational::val.
Referenced by certificatePrintMirSplit(), primalSetUpperboundExact(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintGlobalBound(), SCIPcertificatePrintMirCut(), SCIPcertifyActivityVarBoundExact(), and SCIPrationalDiffReal().
| void SCIPrationalDiff | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
subtracts two rationals and saves the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 983 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPABORT, SCIPerrorMessage, SCIPrationalNegate(), SCIPrationalSetRational(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addConstraintExact(), applyFixings(), consdataCreate(), consdataGetFeasibility(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), lpExactFlushAddRows(), lpExactFlushChgRows(), printLinearConsExact(), readRangesExact(), rowExactCreateFromRowLimitEncodingLength(), SCIP_DECL_CONSCHECK(), SCIP_DECL_SORTINDCOMP(), SCIPaddCoefExactLinear(), SCIPaggregateVarsExact(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintMirCut(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPconsPrintCertificateExactLinear(), SCIPcreateConsExactLinear(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPprobInternObjvalExact(), SCIProwExactChgConstant(), SCIProwExactGetLPFeasibility(), SCIProwExactGetPseudoFeasibility(), SCIProwExactGetSolFeasibility(), SCIPsolSetValExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetProbvarBoundExact(), and varUpdateAggregationBoundsExact().
| void SCIPrationalDiffReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | rat, | ||
| SCIP_Real | real ) |
subtracts a rational and a real and saves the result in res
subtract a rational and a real and save the result in res
| res | the result |
| rat | rational number |
| real | real number |
Definition at line 1009 of file rational.cpp.
References assert(), SCIP_Real, and SCIPrationalAddReal().
Referenced by calcMIRSafely(), primalSetUpperboundExact(), printActivityConflictToCertificate(), SCIPcertificatePrintMirCut(), SCIPsolGetValExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetProbvarBoundExact(), SCIPvarMultiaggregateExact(), varNegateExactData(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| void SCIPrationalRelDiff | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | val1, | ||
| SCIP_RATIONAL * | val2 ) |
returns the relative difference: (val1-val2)/max(|val1|,|val2|,1.0) of two rationals
returns the relative difference: (val1-val2)/max(|val1|,|val2|,1.0)
| res | the result |
| val1 | first value to be compared |
| val2 | second value to be compared |
Definition at line 1024 of file rational.cpp.
References scip::abs(), assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPrationalGetSign(), and SCIP_Rational::val.
Referenced by SCIPvalidateSolveExact().
| void SCIPrationalMult | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
multiplies two rationals and saves the result in res
multiply two rationals and save the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1066 of file rational.cpp.
References assert(), FALSE, scip::Rational::is_zero(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by applyFixings(), consdataScaleMinValue(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), getVariable(), printRowExact(), probScaleObjExact(), SCIP_DECL_READERREAD(), SCIP_DECL_SORTINDCOMP(), SCIPcalcIntegralScalarExact(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintGlobalBound(), SCIPcertifyActivityVarBoundExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPlpExactGetDualfarkas(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPprobExternObjvalExact(), SCIProwExactGetSolActivity(), SCIPsolGetValExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetProbvarSumExact(), SCIPwriteLp(), tryAggregateIntVarsExact(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| void SCIPrationalMultReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_Real | op2 ) |
multiply a rational and a real and save the result in res
multiplies a rational and a real and saves the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1097 of file rational.cpp.
References assert(), FALSE, infinity, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, REALABS, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Real, SCIPdebugMessage, SCIPrationalNegate(), SCIPrationalSetRational(), SCIPrationalSetReal(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addRowExact(), applyFixings(), getFixedVariable(), readBoundsRational(), readCoefficientsRational(), readConstraintsRational(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintGlobalBound(), SCIPcertificatePrintMirCut(), SCIPcertifyActivityVarBoundExact(), SCIPprobExternObjvalExact(), SCIPprobInternObjvalExact(), SCIPreaderWrite(), SCIProwExactGetSolActivity(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarChgObjExact(), setObjective(), and writeOpbObjective().
| void SCIPrationalDiv | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
divide two rationals and save the result in res
divides two rationals and saves the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1132 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPrationalIsZero(), and SCIP_Rational::val.
Referenced by consdataScaleMinValue(), probScaleObjExact(), SCIPaggregateVarsExact(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintGlobalBound(), SCIPcertificatePrintMirCut(), SCIPcertifyActivityVarBoundExact(), SCIPprobInternObjvalExact(), SCIPsolSetValExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarGetOrigvarSumExact(), SCIPvarGetProbvarBoundExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), and varUpdateAggregationBoundsExact().
| void SCIPrationalDivReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_Real | op2 ) |
divide a rational by a real and save the result in res
divides a rational by a real and saves the result in res
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1147 of file rational.cpp.
References assert(), FALSE, infinity, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, REALABS, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Real, SCIPrationalIsZero(), SCIPrationalNegate(), SCIPrationalSetRational(), SCIPrationalSetReal(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by SCIPcertificatePrintMirCut(), and writeOpbObjective().
| void SCIPrationalAddProd | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1173 of file rational.cpp.
References assert(), FALSE, scip::Rational::is_zero(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_FALSE, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPABORT, SCIPerrorMessage, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by applyFixings(), consdataComputePseudoActivity(), consdataCreate(), consdataGetActivity(), rowExactCreateFromRowLimitEncodingLength(), SCIPcertificatePrintDualboundExactLP(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIProwExactRecalcLPActivity(), SCIProwExactRecalcPseudoActivity(), SCIPsolGetValExact(), SCIPsolRecomputeInternObjExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), and SCIPvarGetProbvarSumExact().
| void SCIPrationalAddProdReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_Real | op2 ) |
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1210 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_FALSE, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Real, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by cutsRoundMIRSafely(), SCIPcertifyActivityVarBoundExact(), and SCIPvarGetProbvarSumExact().
| void SCIPrationalDiffProd | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1239 of file rational.cpp.
References assert(), FALSE, scip::Rational::is_zero(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_FALSE, SCIP_ISFPREPRESENTABLE_UNKNOWN, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by SCIPcertificatePrintDualboundExactLP(), SCIPsolSetValExact(), and SCIPvarGetOrigvarSumExact().
| void SCIPrationalDiffProdReal | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_Real | op2 ) |
| res | the result |
| op1 | first operand |
| op2 | second operand |
Definition at line 1268 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_FALSE, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Real, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by SCIPvarGetOrigvarSumExact().
| void SCIPrationalNegate | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op ) |
set res to -op
| res | the result |
| op | operand |
Definition at line 1297 of file rational.cpp.
References assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, and SCIP_Rational::val.
Referenced by addRowExact(), applyFixings(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintMirCut(), SCIPcertifyActivityVarBoundExact(), SCIPlpExactUpdateVarColumn(), SCIPrationalDiff(), SCIPrationalDivReal(), SCIPrationalMultReal(), SCIPsolGetValExact(), SCIPsolSetValExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarCopyExactData(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetOrigvarSumExact(), SCIPvarGetProbvarBoundExact(), SCIPvarGetProbvarSumExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), varNegateExactData(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| void SCIPrationalAbs | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op ) |
set res to Abs(op)
| res | the result |
| op | operand |
Definition at line 1310 of file rational.cpp.
References scip::abs(), assert(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, and SCIP_Rational::val.
Referenced by consdataCalcMinAbsvalEx(), consdataUpdateChgCoef(), and readRangesExact().
| void SCIPrationalInvert | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op ) |
set res to 1/op
| res | the result |
| op | operand |
Definition at line 1323 of file rational.cpp.
References assert(), FALSE, scip::Rational::is_zero(), SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, and SCIP_Rational::val.
Referenced by SCIPcertifyActivityVarBoundExact(), and SCIPvarTryAggregateVarsExact().
| void SCIPrationalMin | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
compute the minimum of two rationals
| res | the result |
| op1 | the first rational |
| op2 | the second rational |
Definition at line 1342 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPrationalSetRational(), and SCIP_Rational::val.
Referenced by consdataGetFeasibility(), primalSetCutoffboundExact(), SCIPcertificatePrintUnsplitting(), SCIPnodeAddBoundinferExact(), SCIPprimalUpdateObjoffsetExact(), SCIProwExactGetLPFeasibility(), SCIProwExactGetPseudoFeasibility(), SCIProwExactGetSolFeasibility(), SCIPtightenVarLbExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetUbLocalExactMinimal(), varProcessChgLbLocalExact(), varProcessChgUbLocal(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| void SCIPrationalMax | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | op1, | ||
| SCIP_RATIONAL * | op2 ) |
compute the maximum of two rationals
compute the minimum of two rationals
| res | the result |
| op1 | the first rational |
| op2 | the second rational |
Definition at line 1373 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIPrationalSetRational(), and SCIP_Rational::val.
Referenced by SCIPnodeAddBoundinferExact(), SCIPtightenVarUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarGetLbLocalExactMaximal(), SCIPvarGetMultaggrLbLocalExact(), varProcessChgLbLocal(), varProcessChgLbLocalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsEQ | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if two rationals are equal
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1404 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isinf, SCIP_Bool, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by certificatePrintWeakDerStart(), checkCons(), checkProbHasContEqs(), chgLhs(), chgRhs(), colExactChgCoefPos(), consdataCreate(), consdataPrint(), consPrintConsSol(), determineTotalNumberLinearConss(), getObjvalDeltaObjExact(), lpExactFlushChgCols(), lpExactFlushChgRows(), printLinearConsExact(), readRangesExact(), rowExactChgCoefPos(), SCIPcertificateGetConsIndex(), SCIPcertificateGetRowIndex(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintDualboundExactLP(), SCIPcertifyConsOrigExactLinear(), SCIPcolExactChgCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPcolExactDelCoef(), SCIPcolExactIncCoef(), SCIPconsPrintCertificateExactLinear(), SCIPeventAddExactBdChg(), SCIPeventAddExactObjChg(), SCIPfixVarExact(), SCIPlpExactEndDive(), SCIPlpExactStartDive(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLbGlobal(), SCIPlpExactUpdateVarObj(), SCIPlpExactUpdateVarUb(), SCIPlpExactUpdateVarUbGlobal(), SCIPnodeCutoff(), SCIPnodeUpdateLowerbound(), SCIProwExactChgCoef(), SCIProwExactChgConstant(), SCIProwExactChgLhs(), SCIProwExactChgRhs(), SCIProwExactDelCoef(), SCIProwExactIncCoef(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolSetValExact(), SCIPtreeGetLowerboundNode(), SCIPvarAddToRow(), SCIPvarAddToRowExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetLPSol_rec(), SCIPvarGetLPSolExact_rec(), SCIPvarMultiaggregateExact(), SCIPwriteLp(), solsAreEqualExact(), varEventGlbChangedExact(), varEventGubChangedExact(), varEventObjChangedExact(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsAbsEQ | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if two rationals are equal
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1421 of file rational.cpp.
References scip::abs(), assert(), FALSE, SCIP_Rational::isinf, SCIP_Bool, TRUE, and SCIP_Rational::val.
Referenced by consdataUpdateAddCoef(), consdataUpdateChgCoef(), consdataUpdateDelCoef(), and SCIP_DECL_SORTINDCOMP().
| SCIP_Bool SCIPrationalIsEQReal | ( | SCIP_RATIONAL * | rat, |
| SCIP_Real | real ) |
checks if rational and real are equal
| rat | the rational |
| real | the real |
Definition at line 1437 of file rational.cpp.
References assert(), infinity, SCIP_Rational::isinf, REALABS, SCIP_Bool, SCIP_Real, SCIPrationalIsNegative(), SCIPrationalIsPositive(), and SCIP_Rational::val.
Referenced by consPrintConsSol(), cutsRoundMIRSafely(), getVariable(), probScaleObjExact(), readConstraintsRational(), SCIP_DECL_READERWRITE(), SCIPrationalSetReal(), SCIPvarAddExactData(), SCIPvarAggregateExact(), SCIPvarMultiaggregateExact(), SCIPwriteVarsLinearsumExact(), varNegateExactData(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| SCIP_Bool SCIPrationalIsApproxEQReal | ( | SCIP_SET * | set, |
| SCIP_RATIONAL * | rat, | ||
| SCIP_Real | real, | ||
| SCIP_ROUNDMODE_RAT | roundmode ) |
checks if real approx of rational and real are equal
| set | SCIP set pointer |
| rat | the rational |
| real | the real |
| roundmode | the rounding mode to use |
Definition at line 1451 of file rational.cpp.
References assert(), SCIP_Rational::isinf, SCIP_Bool, SCIP_R_ROUND_NEAREST, SCIP_Real, SCIPrationalGetReal(), SCIPrationalIsPositive(), SCIPrationalRoundReal(), SCIPsetIsEQ(), and SCIPsetIsInfinity().
Referenced by colExactInSync(), and rowExactInSync().
| SCIP_Bool SCIPrationalIsGT | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if first rational is greater than second rational
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1474 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isinf, SCIP_Bool, TRUE, and SCIP_Rational::val.
Referenced by boundchgApplyExact(), checkCons(), checkSolOrigExact(), chgLhs(), consdataCreate(), primalSetCutoffbound(), readBoundsExact(), SCIP_DECL_CONSCHECK(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificateUpdateParentData(), SCIPfixVarExact(), SCIPinferVarLbConsExact(), SCIPlpExactGetSol(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerboundLP(), SCIPrationalIsGE(), SCIPrationalIsLE(), SCIPrationalIsLT(), SCIPtightenVarLbExact(), SCIPtightenVarUbExact(), SCIPtreeGetLowerboundExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarFixExact(), solCheckExact(), varProcessChgLbGlobalExact(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsLT | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if first rational is smaller than second rational
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1503 of file rational.cpp.
References SCIP_Bool, and SCIPrationalIsGT().
Referenced by boundchgApplyExact(), checkCons(), checkSolOrigExact(), chgRhs(), nodepqDelPos(), primalAddSol(), primalSetUpperboundExact(), readBoundsExact(), SCIP_DECL_CONSCHECK(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificateUpdateBoundData(), SCIPcertificateUpdateParentData(), SCIPfixVarExact(), SCIPinferVarUbConsExact(), SCIPlpExactGetSol(), SCIPnodeAddBoundinferExact(), SCIPnodeCutoff(), SCIPnodeFocus(), SCIPnodepqBound(), SCIPnodepqInsert(), SCIPnodeUpdateLowerbound(), SCIPtightenVarLbExact(), SCIPtightenVarUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), solCheckExact(), solOfInterest(), varProcessChgUbGlobalExact(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsGE | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if first rational is greater or equal than second rational
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1512 of file rational.cpp.
References SCIP_Bool, and SCIPrationalIsGT().
Referenced by applyBounding(), boundchgApplyExact(), rowExactCreateFromRowLimitEncodingLength(), SCIPcertificatePrintUnsplitting(), SCIPinferVarUbConsExact(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerbound(), SCIPsolveExactDiveLP(), SCIPtightenVarUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbOriginalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| SCIP_Bool SCIPrationalIsLE | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if first rational is less or equal than second rational
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1521 of file rational.cpp.
References SCIP_Bool, and SCIPrationalIsGT().
Referenced by addConstraintExact(), boundchgApplyExact(), nodepqDelPos(), rowExactCreateFromRowLimitEncodingLength(), SCIP_DECL_CONSCHECK(), SCIPaddVarExactData(), SCIPfixVarExact(), SCIPgetLowerboundExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactGetSol(), SCIPnodeAddBoundinferExact(), SCIProwExactAddConstant(), SCIProwExactChgConstant(), SCIProwExactCreate(), SCIPtightenVarLbExact(), SCIPtightenVarUbExact(), SCIPtreeGetLowerboundNode(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbOriginalExact(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), and varProcessChgUbGlobalExact().
| SCIP_Bool SCIPrationalIsAbsGT | ( | SCIP_RATIONAL * | rat1, |
| SCIP_RATIONAL * | rat2 ) |
checks if first rational is greater than second rational
| rat1 | the first rational |
| rat2 | the second rational |
Definition at line 1530 of file rational.cpp.
References scip::abs(), assert(), FALSE, SCIP_Rational::isinf, SCIP_Bool, TRUE, and SCIP_Rational::val.
Referenced by consdataCalcMinAbsvalEx(), consdataUpdateChgCoef(), and SCIP_DECL_SORTINDCOMP().
| SCIP_Bool SCIPrationalIsGTReal | ( | SCIP_RATIONAL * | rat, |
| SCIP_Real | real ) |
checks if rational is greater than real
| rat | the rational |
| real | the real |
Definition at line 1546 of file rational.cpp.
References assert(), FALSE, infinity, SCIP_Rational::isinf, SCIP_Bool, SCIP_Real, TRUE, and SCIP_Rational::val.
Referenced by lpExactFlushAndSolve(), propagateCons(), readBoundsExact(), rowExactCreateFromRowLimitEncodingLength(), SCIPrationalIsLEReal(), varParse(), and varProcessChgUbGlobal().
| SCIP_Bool SCIPrationalIsLTReal | ( | SCIP_RATIONAL * | rat, |
| SCIP_Real | real ) |
checks if rational is less than real
| rat | the rational |
| real | the real |
Definition at line 1576 of file rational.cpp.
References assert(), FALSE, infinity, SCIP_Rational::isinf, SCIP_Bool, SCIP_Real, TRUE, and SCIP_Rational::val.
Referenced by consdataScaleMinValue(), propagateCons(), rowExactCreateFromRowLimitEncodingLength(), SCIPlpExactSolveAndEval(), SCIPrationalIsGEReal(), and varProcessChgLbGlobal().
| SCIP_Bool SCIPrationalIsGEReal | ( | SCIP_RATIONAL * | rat, |
| SCIP_Real | real ) |
checks if rational is greater or equal than real
| rat | the rational |
| real | the real |
Definition at line 1606 of file rational.cpp.
References SCIP_Bool, SCIP_Real, and SCIPrationalIsLTReal().
Referenced by propagateCons(), rowExactInSync(), SCIPcertificatePrintUnsplitting(), SCIPlpExactSetCutoffbound(), SCIPlpExactSolveAndEval(), SCIPnodeCutoff(), SCIPnodeFocus(), SCIPnodepqBound(), and SCIPnodeUpdateLowerbound().
| SCIP_Bool SCIPrationalIsLEReal | ( | SCIP_RATIONAL * | rat, |
| SCIP_Real | real ) |
checks if rational is less or equal than real
| rat | the rational |
| real | the real |
Definition at line 1615 of file rational.cpp.
References SCIP_Bool, SCIP_Real, and SCIPrationalIsGTReal().
Referenced by primalSetCutoffboundExact(), primalSetUpperboundExact(), propagateCons(), and rowExactInSync().
| SCIP_Bool SCIPrationalIsZero | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is zero
| rational | the rational to check |
Definition at line 1624 of file rational.cpp.
References assert(), FALSE, scip::Rational::is_zero(), SCIP_Rational::isinf, SCIP_Bool, TRUE, and SCIP_Rational::val.
Referenced by addCoef(), addRowExact(), applyFixings(), certificatePrintSol(), chgCoefPos(), chgLhs(), chgRhs(), colExactAddCoef(), colExactChgCoefPos(), colExactLink(), consdataCalcMinAbsvalEx(), consdataComputePseudoActivity(), consdataCreate(), consdataFree(), consdataGetActivity(), consdataScaleMinValue(), getFiniteLooseObjvalExact(), getObjectiveRow(), lockRounding(), lpExactUpdateObjval(), mergeMultiples(), printRowExact(), probCheckObjIntegralExact(), probScaleObjExact(), readBoundsExact(), readBoundsRational(), readCoefficientsRational(), readColsExact(), readObjectiveRational(), readRhsExact(), rowExactAddCoef(), rowExactChgCoefPos(), rowExactCreateFromRowLimitEncodingLength(), rowExactLink(), rowExactMerge(), SCIP_DECL_READERREAD(), SCIP_DECL_READERWRITE(), SCIPaggregateVarsExact(), SCIPcalcIntegralScalarExact(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintGlobalBound(), SCIPcertificateSetAndPrintObjective(), SCIPchgCoefExactLinear(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPcolExactCreate(), SCIPcolExactGetBestBound(), SCIPcolExactIncCoef(), SCIPlpExactAddRow(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetObjval(), SCIPlpiExactAddCols(), SCIPlpiExactAddRows(), SCIPlpiExactLoadColLP(), SCIPparseVarsLinearsumExact(), SCIPparseVarsPolynomialExact(), SCIPrationalarrayIncVal(), SCIPrationalDiv(), SCIPrationalDivReal(), SCIProwExactAddConstant(), SCIProwExactCreate(), SCIProwExactIncCoef(), SCIProwExactPrint(), SCIProwExactRecalcLPActivity(), SCIPsolGetValExact(), SCIPsolPrintExact(), SCIPsolRecomputeInternObjExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPvalidateSolveExact(), SCIPvarAddExactData(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAggregateExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetProbvarSumExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), SCIPwriteLp(), tryAggregateIntVarsExact(), unlockRounding(), varProcessChgLbLocalExact(), varProcessChgUbLocalExact(), varUpdateAggregationBoundsExact(), and writeOpbConstraints().
| SCIP_Bool SCIPrationalIsPositive | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is positive
| rational | the rational to check |
Definition at line 1640 of file rational.cpp.
References assert(), SCIP_Bool, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addRowExact(), adjustedLbExact(), adjustedUbExact(), chgCoefPos(), chgLhs(), chgRhs(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), lockRounding(), rowExactCreateFromRowLimitEncodingLength(), SCIP_DECL_CONSLOCK(), SCIPcertificatePrintAggrrow(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintGlobalBound(), SCIPcertificatePrintMirCut(), SCIPcertifyActivityConflict(), SCIPcertifyActivityVarBoundExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgObj(), SCIPcolExactGetBestBound(), SCIPcolExactPrint(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLbGlobal(), SCIPlpExactUpdateVarLoose(), SCIPprobExternObjvalExact(), SCIPprobInternObjvalExact(), SCIPrationalIsApproxEQReal(), SCIPrationalIsEQReal(), SCIProwExactGenerateFpRows(), SCIProwExactGetSolActivity(), SCIProwExactPrint(), SCIPsolSetValExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetProbvarSumExact(), solCheckExact(), SpxRSetRat(), unlockRounding(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), varProcessChgUbLocalExact(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsNegative | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is negative
| rational | the rational to check |
Definition at line 1650 of file rational.cpp.
References assert(), SCIP_Bool, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addRowExact(), adjustedLbExact(), adjustedUbExact(), chgCoefPos(), consdataComputePseudoActivity(), consdataGetActivity(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), printRowExact(), printRowExact(), readBoundsExact(), readRangesExact(), rowExactCreateFromRowLimitEncodingLength(), SCIPcertificatePrintDualboundExactLP(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarUb(), SCIPlpExactUpdateVarUbGlobal(), SCIPrationalIsEQReal(), SCIProwExactGenerateFpRows(), SCIPvarAggregateExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarGetBestBoundGlobalExact(), SCIPvarGetBestBoundLocalExact(), SCIPvarGetBestBoundTypeExact(), SCIPvarGetProbvarBoundExact(), SCIPvarGetWorstBoundGlobalExact(), SCIPvarGetWorstBoundLocalExact(), SCIPvarGetWorstBoundTypeExact(), SCIPvarMultiaggregateExact(), SCIPwriteLp(), SCIPwriteVarsLinearsumExact(), solCheckExact(), varParse(), and writeOpbObjective().
| SCIP_Bool SCIPrationalIsInfinity | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is positive infinity
| rational | the rational to check |
Definition at line 1660 of file rational.cpp.
References assert(), SCIP_Rational::isinf, SCIP_Bool, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addConstraintExact(), addRelaxation(), addRowExact(), applyFixings(), certificatePrintDualbound(), checkCons(), chgLhs(), chgRhs(), colExactInSync(), consdataComputePseudoActivity(), consdataGetActivity(), consdataPrint(), consPrintConsSol(), determineTotalNumberLinearConss(), getObjectiveRow(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), lockRounding(), primalSetUpperboundExact(), printBoundsExact(), printLinearConsExact(), readBoundsExact(), readBoundsRational(), readRangesExact(), readRhsExact(), rowExactCreateFromRowLimitEncodingLength(), rowExactInSync(), SCIP_DECL_CONSLOCK(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintRtpRange(), SCIPcertificatePrintUnsplitting(), SCIPcertificateUpdateParentData(), SCIPcertifyConsOrigExactLinear(), SCIPchgVarLbExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPconsPrintCertificateExactLinear(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPlpiExactChgBounds(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerbound(), SCIPnodeUpdateLowerboundLP(), SCIProwExactChgConstant(), SCIProwExactGenerateFpRows(), SCIProwExactGetSolActivity(), SCIProwExactRecalcLPActivity(), SCIPsepastoreExactAddCut(), SCIPtightenVarLbExact(), SCIPvalidateSolveExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetProbvarSumExact(), SCIPvarParseOriginal(), SCIPvarParseTransformed(), SCIPwriteLp(), solCheckExact(), solOfInterest(), unlockRounding(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsNegInfinity | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is negative infinity
| rational | the rational to check |
Definition at line 1670 of file rational.cpp.
References assert(), SCIP_Rational::isinf, SCIP_Bool, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addConstraintExact(), addRelaxation(), addRowExact(), applyFixings(), certificatePrintDualbound(), checkCons(), chgLhs(), chgRhs(), colExactInSync(), consdataComputePseudoActivity(), consdataGetActivity(), consdataPrint(), consPrintConsSol(), determineTotalNumberLinearConss(), getObjectiveRow(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), lockRounding(), printBoundsExact(), printLinearConsExact(), readRangesExact(), readRhsExact(), rowExactCreateFromRowLimitEncodingLength(), rowExactInSync(), SCIP_DECL_CONSLOCK(), SCIPcertificatePrintRtpRange(), SCIPcertifyConsOrigExactLinear(), SCIPchgVarUbExact(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPconsPrintCertificateExactLinear(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetPrimalRay(), SCIPlpExactGetSol(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPlpiExactChgBounds(), SCIPnodeAddBoundinferExact(), SCIProwExactGenerateFpRows(), SCIProwExactGetSolActivity(), SCIPsepastoreExactAddCut(), SCIPtightenVarUbExact(), SCIPvalidateSolveExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetProbvarSumExact(), SCIPvarParseOriginal(), SCIPvarParseTransformed(), SCIPwriteLp(), solCheckExact(), unlockRounding(), and varUpdateAggregationBoundsExact().
| SCIP_Bool SCIPrationalIsAbsInfinity | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is negative infinity
| rational | the rational to check |
Definition at line 1680 of file rational.cpp.
References assert(), scip::Rational::is_zero(), SCIP_Rational::isinf, SCIP_Bool, and SCIP_Rational::val.
Referenced by applyFixings(), certificatePrintDualbound(), consdataCreate(), createAndAddProofcons(), getObjvalDeltaLbExact(), getObjvalDeltaObjExact(), getObjvalDeltaUbExact(), SCIP_DECL_CONSCHECK(), SCIPaddCoefExactLinear(), SCIPaddVarExactData(), SCIPcertificateGetConsIndex(), SCIPcertificateGetRowIndex(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintResult(), SCIPcertifyActivityVarBoundExact(), SCIPcertifyConsOrigExactLinear(), SCIPchgVarObjExact(), SCIPconsPrintCertificateExactLinear(), SCIPcreateConsExactLinear(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetObjval(), SCIPprobExternObjvalExact(), SCIPprobInternObjvalExact(), SCIProwExactAddConstant(), SCIProwExactChgConstant(), SCIProwExactGetSolActivity(), SCIPsolGetValExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPvarAddToRowExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgUbGlobalExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetProbvarSumExact(), solCheckExact(), solSetArrayValExact(), SpxRSetRat(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| SCIP_Bool SCIPrationalIsIntegral | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is integral
| rational | the rational to check |
Definition at line 1691 of file rational.cpp.
References assert(), scip::denominator(), FALSE, SCIP_Rational::isinf, scip::numerator(), SCIP_Bool, SCIPrationalCanonicalize(), TRUE, and SCIP_Rational::val.
Referenced by boundchgApplyExact(), branchcandCalcLPCandsExact(), certificatePrintDualbound(), certificatePrintMirSplit(), checkIntegralityExact(), probCheckObjIntegralExact(), probScaleObjExact(), readBoundsExact(), rowExactAddCoef(), rowExactChgCoefPos(), rowExactMerge(), SCIPbranchExecLPExact(), SCIPcertificatePrintCutoffBound(), SCIPcertificateUpdateBranchingData(), SCIPcertifyActivityVarBoundExact(), SCIPfixVarExact(), SCIPnodeAddBoundinferExact(), SCIProwExactCreate(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarFixExact(), SCIPvarTryAggregateVarsExact(), tryAggregateIntVarsExact(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| SCIP_Bool SCIPrationalIsFpRepresentable | ( | SCIP_RATIONAL * | rational | ) |
checks if rational is exactly representable as real
| rational | the rational to check |
Definition at line 1710 of file rational.cpp.
References assert(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Bool, SCIP_ISFPREPRESENTABLE_FALSE, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_R_ROUND_DOWNWARDS, SCIP_R_ROUND_UPWARDS, SCIPrationalRoundReal(), and TRUE.
Referenced by getObjectiveRow(), lpGetModifiedPseudoObjvalExact(), SCIPboundchgUndo(), and SCIProwExactCreateFromRow().
| int SCIPrationalToString | ( | SCIP_RATIONAL * | rational, |
| char * | str, | ||
| int | strlen ) |
converts a rational to a string for printing, returns the number of copied characters.
| rational | the rational to print |
| str | the string to save the rational in |
| strlen | maximal length that can be copied to str |
Definition at line 1743 of file rational.cpp.
References SCIP_Rational::isinf, NULL, SCIPrationalDebugMessage, SCIPstrncpy(), scip::Rational::sign(), scip::Rational::str(), and SCIP_Rational::val.
Referenced by printRowExact(), printRowExact(), SCIPcertificatePrintProblemRational(), SCIPcertificatePrintProofRational(), SCIPcollectSolutionStatistics(), SCIPprintSolExact(), SCIPsolPrintExact(), SCIPvalidateSolveExact(), SCIPwriteLp(), and writeOpbObjective().
| int SCIPrationalStrLen | ( | SCIP_RATIONAL * | rational | ) |
returns the strlen of a rational number
| rational | rational to consider |
Definition at line 1774 of file rational.cpp.
References SCIP_Rational::isinf, NULL, scip::Rational::str(), and SCIP_Rational::val.
Referenced by SCIPcertificatePrintProblemRational(), SCIPcertificatePrintProofRational(), SCIPprintSolExact(), and SCIPsolPrintExact().
| void SCIPrationalMessage | ( | SCIP_MESSAGEHDLR * | msg, |
| FILE * | file, | ||
| SCIP_RATIONAL * | rational ) |
prints rational into a file using message handler
| msg | message handler |
| file | file pointer |
| rational | the rational to print |
Definition at line 1790 of file rational.cpp.
References SCIP_Rational::isinf, NULL, SCIPmessageFPrintInfo(), scip::Rational::sign(), scip::Rational::str(), and SCIP_Rational::val.
Referenced by checkIntegralityExact(), consdataPrint(), consPrintConsSol(), displayRelevantStats(), printBoundsExact(), SCIP_DECL_CONSCHECK(), SCIP_DECL_READERWRITE(), SCIPcolExactPrint(), SCIPprintSolutionStatistics(), SCIPrationalPrintVerbInfo(), SCIProwExactPrint(), SCIPvarPrint(), SCIPwriteVarsLinearsumExact(), and writeOpbObjective().
| void SCIPrationalPrintVerbInfo | ( | SCIP_MESSAGEHDLR * | msg, |
| SCIP_VERBLEVEL | verblevel, | ||
| SCIP_VERBLEVEL | msgverblevel, | ||
| SCIP_RATIONAL * | rational ) |
prints rational depending on the verbosity level
| msg | message handler |
| verblevel | current verbosity level |
| msgverblevel | verbosity level of this message |
| rational | the rational to print |
Definition at line 1813 of file rational.cpp.
References assert(), NULL, SCIP_VERBLEVEL_FULL, SCIP_VERBLEVEL_NONE, and SCIPrationalMessage().
Referenced by SCIPpresolve().
| void SCIPrationalPrint | ( | SCIP_RATIONAL * | rational | ) |
prints a rational to command line (for debugging)
print a rational to command line (for debugging)
| rational | the rational to print |
Definition at line 1831 of file rational.cpp.
References SCIP_Rational::isinf, NULL, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by SCIPrationalarrayPrint(), and SCIPrationalVPrintf().
| void SCIPrationalPrintf | ( | const char * | formatstr, |
| ... ) |
printf extension for rationals (does not support all format options yet)
| formatstr | format string like in printf() function |
| ... | format arguments line in printf() function |
Definition at line 1923 of file rational.cpp.
References SCIPrationalVPrintf().
| void SCIPrationalPrintDebugMessage | ( | const char * | sourcefile, |
| int | sourceline, | ||
| const char * | formatstr, | ||
| ... ) |
prints a debug message
| sourcefile | name of the source file that called the function |
| sourceline | line in the source file where the function was called |
| formatstr | format string like in printf() function |
| ... | format arguments line in printf() function |
Definition at line 1936 of file rational.cpp.
References assert(), NULL, and SCIPrationalVPrintf().
| SCIP_Longint SCIPrationalNumerator | ( | SCIP_RATIONAL * | rational | ) |
returns the numerator of a rational as a long
| rational | the rational |
Definition at line 2018 of file rational.cpp.
References assert(), SCIP_Longint, scip::Rational::val, and SCIP_Rational::val.
Referenced by SCIPcalcIntegralScalarExact(), and tryAggregateIntVarsExact().
| SCIP_Longint SCIPrationalDenominator | ( | SCIP_RATIONAL * | rational | ) |
returns the denominator of a rational as a long
| rational | the rational |
Definition at line 2027 of file rational.cpp.
References assert(), and SCIP_Longint.
Referenced by SCIPcalcIntegralScalarExact(), and tryAggregateIntVarsExact().
| SCIP_Bool SCIPrationalDenominatorIsLE | ( | SCIP_RATIONAL * | rational, |
| SCIP_Longint | val ) |
compares denominator of a rational to a long
returns the denominator of a rational as a long
| rational | the rational |
| val | long value to compare to |
Definition at line 2036 of file rational.cpp.
References assert(), SCIP_Bool, SCIP_Longint, and TRUE.
Referenced by rowExactCreateFromRowLimitEncodingLength().
| int SCIPrationalGetSign | ( | const SCIP_RATIONAL * | rational | ) |
returns the sign of the rational (1 if positive, -1 if negative, 0 if zero)
| rational | the rational |
Definition at line 2048 of file rational.cpp.
References assert(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by applyFixings(), SCIPrationalRelDiff(), SCIPsolGetValExact(), SCIPvarGetActiveRepresentativesExact(), and SCIPvarGetProbvarSumExact().
| void SCIPrationalGetFrac | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | src ) |
computes fractional part of a rational number
computes fractional part of a rational
| res | rational to save the frac |
| src | src rational |
Definition at line 2057 of file rational.cpp.
References assert(), scip::denominator(), SCIP_Rational::isinf, scip::numerator(), SCIPrationalSetReal(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by branchcandCalcLPCandsExact().
| SCIP_Real SCIPrationalGetReal | ( | SCIP_RATIONAL * | rational | ) |
returns approximation of rational as SCIP_Real
| rational | the rational |
Definition at line 2085 of file rational.cpp.
References assert(), infinity, SCIP_Rational::isinf, SCIP_Real, scip::Rational::sign(), and SCIP_Rational::val.
Referenced by addRowExact(), adjustedLbExact(), adjustedUbExact(), branchcandCalcLPCandsExact(), checkSolOrigExact(), consdataCreate(), consdataGetActivity(), overwriteMultAggrWithExactData(), primalAddSolExact(), probScaleObjExact(), readBoundsExact(), readCoefficientsRational(), readConstraintsRational(), readSolFile(), readXmlSolFile(), SCIP_DECL_CONSCOPY(), SCIPcertificatePrintMirCut(), SCIPlpExactGetDualfarkas(), SCIPlpExactGetSol(), SCIPlpExactOverwriteFpDualSol(), SCIPnodeUpdateLowerboundLP(), SCIPparseVarsPolynomialExact(), SCIPprobAddObjoffsetExact(), SCIPprobExternObjval(), SCIPprobInternObjval(), SCIPrationalComputeApproximation(), SCIPrationalIsApproxEQReal(), SCIPrationalRoundReal(), SCIProwExactPrint(), SCIProwExactRecalcLPActivity(), SCIProwExactRecalcPseudoActivity(), SCIPsolMakeReal(), SCIPsolOrigAddObjvalExact(), SCIPsolSetValExact(), SCIPvarAddExactData(), SCIPvarAddObjExact(), SCIPvarAggregateExact(), SCIPvarChgObjExact(), SCIPvarMultiaggregateExact(), SCIPvarTryAggregateVarsExact(), SCIPwriteMps(), solCheckExact(), SpxRSetRat(), varEventGubChangedExact(), varEventObjChangedExact(), and varEventUbChangedExact().
| SCIP_Real SCIPrationalRoundReal | ( | SCIP_RATIONAL * | rational, |
| SCIP_ROUNDMODE_RAT | roundmode ) |
gets the relaxation of a rational as a real
| rational | the rational |
| roundmode | the rounding direction |
Definition at line 2110 of file rational.cpp.
References assert(), infinity, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, SCIP_INVALID, SCIP_ISFPREPRESENTABLE_TRUE, SCIP_R_ROUND_DOWNWARDS, SCIP_R_ROUND_NEAREST, SCIP_R_ROUND_UPWARDS, SCIP_Real, SCIPABORT, SCIPerrorMessage, SCIPrationalGetReal(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by chgLhs(), chgRhs(), consdataCreate(), consdataScaleMinValue(), createAndAddProofcons(), getObjectiveRow(), lpExactFlushAndSolve(), primalSetCutoffboundExact(), primalSetUpperboundExact(), rowExactCreateFromRowLimitEncodingLength(), SCIPcertificateEnsureLastBoundInfoConsistent(), SCIPfixVarExact(), SCIPgetDualProof(), SCIPintervalSetRational(), SCIPlpExactGetSol(), SCIPlpExactSolveAndEval(), SCIPnodeAddBoundinferExact(), SCIPnodeUpdateLowerbound(), SCIPrationalIsApproxEQReal(), SCIPrationalIsFpRepresentable(), SCIProwExactChgLhs(), SCIProwExactChgRhs(), SCIProwExactCreate(), SCIProwExactGenerateFpRows(), SCIPsolLinkLPSolExact(), SCIPsolOverwriteFPSolWithExact(), SCIPvarAddExactData(), SCIPvarChgLbOriginalExact(), SCIPvarChgUbOriginalExact(), varEventGlbChangedExact(), varEventGubChangedExact(), varEventLbChangedExact(), varEventUbChangedExact(), varParse(), varProcessChgLbGlobalExact(), varProcessChgLbLocalExact(), varProcessChgUbGlobalExact(), and varProcessChgUbLocalExact().
| void SCIPrationalRoundInteger | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | src, | ||
| SCIP_ROUNDMODE_RAT | roundmode ) |
rounds a rational to an integer and saves it as a rational
| res | the resulting rounded integer |
| src | the rational to round |
| roundmode | the rounding direction |
Definition at line 2158 of file rational.cpp.
References scip::abs(), assert(), scip::denominator(), SCIP_Rational::isinf, scip::numerator(), SCIP_R_ROUND_DOWNWARDS, SCIP_R_ROUND_NEAREST, SCIP_R_ROUND_UPWARDS, SCIPABORT, SCIPerrorMessage, SCIPrationalSetRational(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by adjustedLbExact(), adjustedUbExact(), certificatePrintDualbound(), getObjectiveRow(), primalSetUpperboundExact(), SCIP_DECL_CONSCHECK(), SCIPcertificatePrintCutoffBound(), and SCIPcertifyActivityVarBoundExact().
| SCIP_Bool SCIPrationalRoundLong | ( | SCIP_Longint * | res, |
| SCIP_RATIONAL * | src, | ||
| SCIP_ROUNDMODE_RAT | roundmode ) |
rounds rational to next integer in direction of roundmode
| res | the resulting rounded long int |
| src | the rational to round |
| roundmode | the rounding direction |
Definition at line 2204 of file rational.cpp.
References scip::abs(), assert(), scip::denominator(), FALSE, SCIP_Rational::isinf, scip::numerator(), SCIP_Bool, SCIP_Longint, SCIP_R_ROUND_DOWNWARDS, SCIP_R_ROUND_NEAREST, SCIP_R_ROUND_UPWARDS, SCIPABORT, SCIPerrorMessage, scip::Rational::sign(), TRUE, and SCIP_Rational::val.
Referenced by SCIPcertificatePrintMirCut(), and tryAggregateIntVarsExact().
| void SCIPrationalComputeApproximation | ( | SCIP_RATIONAL * | res, |
| SCIP_RATIONAL * | src, | ||
| SCIP_Longint | maxdenom, | ||
| int | forcegreater ) |
compute an approximate number with denominator <= maxdenom, closest to src and save it in res using continued fractions
| res | the resulting rational |
| src | the rational to approximate |
| maxdenom | maximal denominator |
| forcegreater | 1 if res >= src should be enforced, -1 if res <= src should be enforced, 0 else |
Definition at line 2464 of file rational.cpp.
References assert(), scip::denominator(), FALSE, SCIP_Rational::isfprepresentable, SCIP_Rational::isinf, scip::numerator(), SCIP_ISFPREPRESENTABLE_UNKNOWN, SCIP_Longint, SCIP_LONGINT_MAX, SCIPdebug, SCIPrationalCanonicalize(), SCIPrationalGetReal(), SCIPrationalSetFraction(), SCIPrationalSetReal(), scip::Rational::sign(), and SCIP_Rational::val.
Referenced by rowExactCreateFromRowLimitEncodingLength(), and tightenVarBounds().
| SCIP_RETCODE SCIPrationalarrayCreate | ( | SCIP_RATIONALARRAY ** | rationalarray, |
| BMS_BLKMEM * | blkmem ) |
creates a dynamic array of real values
| rationalarray | pointer to store the real array |
| blkmem | block memory |
Definition at line 2668 of file rational.cpp.
References assert(), BMSallocBlockMemory, SCIP_ALLOC, and SCIP_OKAY.
Referenced by SCIPrationalarrayCopy(), SCIPsolCreateExact(), SCIPsolCreateOriginalExact(), and SCIPsolMakeExact().
| SCIP_RETCODE SCIPrationalarrayResize | ( | SCIP_RATIONALARRAY * | rationalarray, |
| int | newsize ) |
resizes a dynamic array of real values
creates a dynamic array of real values
| rationalarray | pointer to store the real array |
| newsize | new size |
Definition at line 2684 of file rational.cpp.
References assert(), SCIP_OKAY, and SCIP_RationalArray::vals.
| SCIP_RETCODE SCIPrationalarrayCopy | ( | SCIP_RATIONALARRAY ** | rationalarray, |
| BMS_BLKMEM * | blkmem, | ||
| SCIP_RATIONALARRAY * | sourcerationalarray ) |
creates a copy of a dynamic array of real values
| rationalarray | pointer to store the copied real array |
| blkmem | block memory |
| sourcerationalarray | dynamic rational array to copy |
Definition at line 2697 of file rational.cpp.
References assert(), SCIP_RationalArray::firstidx, SCIP_CALL, SCIP_OKAY, SCIPrationalarrayCreate(), and SCIP_RationalArray::vals.
Referenced by SCIPvalsExactCopy().
| SCIP_RETCODE SCIPrationalarrayFree | ( | SCIP_RATIONALARRAY ** | rationalarray, |
| BMS_BLKMEM * | blkmem ) |
frees a dynamic array of real values
| rationalarray | pointer to the real array |
| blkmem | block memory |
Definition at line 2714 of file rational.cpp.
References assert(), BMSfreeBlockMemory, and SCIP_OKAY.
Referenced by SCIPsolMakeReal(), and valsExactFree().
| void SCIPrationalarrayGetVal | ( | SCIP_RATIONALARRAY * | rationalarray, |
| int | idx, | ||
| SCIP_RATIONAL * | result ) |
gets value of entry in dynamic array
| rationalarray | dynamic rational array |
| idx | array index to get value for |
| result | store the result |
Definition at line 2729 of file rational.cpp.
References assert(), SCIP_RationalArray::firstidx, result, SCIPrationalSetFraction(), SCIPrationalSetRational(), and SCIP_RationalArray::vals.
Referenced by solGetArrayValExact().
| SCIP_RETCODE SCIPrationalarraySetVal | ( | SCIP_RATIONALARRAY * | rationalarray, |
| int | idx, | ||
| SCIP_RATIONAL * | val ) |
sets value of entry in dynamic array
| rationalarray | dynamic rational array |
| idx | array index to set value for |
| val | value to set array index to |
Definition at line 2746 of file rational.cpp.
References assert(), SCIP_RationalArray::firstidx, r, SCIP_OKAY, and SCIP_RationalArray::vals.
Referenced by SCIPrationalarrayIncVal(), and solSetArrayValExact().
| SCIP_RETCODE SCIPrationalarrayIncVal | ( | SCIP_RATIONALARRAY * | rationalarray, |
| int | idx, | ||
| SCIP_RATIONAL * | incval ) |
increases value of entry in dynamic array
| rationalarray | dynamic rational array |
| idx | array index to increase value for |
| incval | value to increase array index |
Definition at line 2785 of file rational.cpp.
References assert(), FALSE, SCIP_RationalArray::firstidx, SCIP_Rational::isinf, SCIP_CALL, SCIP_OKAY, SCIPrationalarraySetVal(), SCIPrationalIsZero(), SCIP_Rational::val, and SCIP_RationalArray::vals.
| SCIP_RETCODE SCIPrationalarrayPrint | ( | SCIP_RATIONALARRAY * | rationalarray | ) |
prints a rationalarray to std out
| rationalarray | dynamic rational array |
Definition at line 2809 of file rational.cpp.
References SCIP_RationalArray::firstidx, SCIP_OKAY, SCIPrationalPrint(), and SCIP_RationalArray::vals.
| int SCIPrationalarrayGetMinIdx | ( | SCIP_RATIONALARRAY * | rationalarray | ) |
returns the minimal index of all stored non-zero elements
| rationalarray | dynamic rational array |
Definition at line 2824 of file rational.cpp.
References assert(), and SCIP_RationalArray::firstidx.
| int SCIPrationalarrayGetMaxIdx | ( | SCIP_RATIONALARRAY * | rationalarray | ) |
returns the maximal index of all stored non-zero elements
| rationalarray | dynamic rational array |
Definition at line 2834 of file rational.cpp.
References assert(), SCIP_RationalArray::firstidx, and SCIP_RationalArray::vals.
| void SCIPrationalChgInfinity | ( | SCIP_Real | inf | ) |
changes the infinity threshold to new value
| inf | new infinity value |
Definition at line 2844 of file rational.cpp.
References assert(), infinity, SCIP_DEFAULT_INFINITY, SCIP_Real, SCIPABORT, and SCIPerrorMessage.
Referenced by SCIP_DECL_PARAMCHGD().
| SCIP_Real SCIPrationalGetInfinity | ( | void | ) |
return the infinity threshold for rationals
Definition at line 2863 of file rational.cpp.
References infinity, and SCIP_Real.
Referenced by SCIPnodeUpdateLowerboundLP().