ruby-cbc 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/README.md +203 -0
- data/Rakefile +40 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/ext/ruby-cbc/cbc.i +15 -0
- data/ext/ruby-cbc/cbc_wrap.c +4618 -0
- data/ext/ruby-cbc/extconf.rb +60 -0
- data/ext/ruby-cbc/install/bin/cbc +0 -0
- data/ext/ruby-cbc/install/bin/clp +0 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchActual.hpp +24 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchAllDifferent.hpp +62 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchBase.hpp +78 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchCut.hpp +183 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchDecision.hpp +129 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchDefaultDecision.hpp +100 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchDynamic.hpp +206 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchLotsize.hpp +242 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchToFixLots.hpp +94 -0
- data/ext/ruby-cbc/install/include/coin/CbcBranchingObject.hpp +236 -0
- data/ext/ruby-cbc/install/include/coin/CbcClique.hpp +303 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompare.hpp +39 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareActual.hpp +14 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareBase.hpp +142 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareDefault.hpp +120 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareDepth.hpp +47 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareEstimate.hpp +48 -0
- data/ext/ruby-cbc/install/include/coin/CbcCompareObjective.hpp +49 -0
- data/ext/ruby-cbc/install/include/coin/CbcConfig.h +14 -0
- data/ext/ruby-cbc/install/include/coin/CbcConsequence.hpp +49 -0
- data/ext/ruby-cbc/install/include/coin/CbcCountRowCut.hpp +168 -0
- data/ext/ruby-cbc/install/include/coin/CbcCutGenerator.hpp +482 -0
- data/ext/ruby-cbc/install/include/coin/CbcCutModifier.hpp +57 -0
- data/ext/ruby-cbc/install/include/coin/CbcCutSubsetModifier.hpp +66 -0
- data/ext/ruby-cbc/install/include/coin/CbcDummyBranchingObject.hpp +83 -0
- data/ext/ruby-cbc/install/include/coin/CbcEventHandler.hpp +245 -0
- data/ext/ruby-cbc/install/include/coin/CbcFathom.hpp +137 -0
- data/ext/ruby-cbc/install/include/coin/CbcFathomDynamicProgramming.hpp +169 -0
- data/ext/ruby-cbc/install/include/coin/CbcFeasibilityBase.hpp +56 -0
- data/ext/ruby-cbc/install/include/coin/CbcFixVariable.hpp +67 -0
- data/ext/ruby-cbc/install/include/coin/CbcFollowOn.hpp +207 -0
- data/ext/ruby-cbc/install/include/coin/CbcFullNodeInfo.hpp +161 -0
- data/ext/ruby-cbc/install/include/coin/CbcGeneral.hpp +60 -0
- data/ext/ruby-cbc/install/include/coin/CbcGeneralDepth.hpp +279 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristic.hpp +682 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDINS.hpp +96 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDW.hpp +309 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDive.hpp +192 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveCoefficient.hpp +52 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveFractional.hpp +52 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveGuided.hpp +55 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveLineSearch.hpp +52 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDivePseudoCost.hpp +60 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveVectorLength.hpp +52 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicFPump.hpp +340 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicGreedy.hpp +280 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicLocal.hpp +271 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicPivotAndFix.hpp +58 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRENS.hpp +77 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRINS.hpp +102 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRandRound.hpp +58 -0
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicVND.hpp +94 -0
- data/ext/ruby-cbc/install/include/coin/CbcLinked.hpp +1406 -0
- data/ext/ruby-cbc/install/include/coin/CbcMessage.hpp +94 -0
- data/ext/ruby-cbc/install/include/coin/CbcMipStartIO.hpp +26 -0
- data/ext/ruby-cbc/install/include/coin/CbcModel.hpp +2952 -0
- data/ext/ruby-cbc/install/include/coin/CbcNWay.hpp +166 -0
- data/ext/ruby-cbc/install/include/coin/CbcNode.hpp +351 -0
- data/ext/ruby-cbc/install/include/coin/CbcNodeInfo.hpp +349 -0
- data/ext/ruby-cbc/install/include/coin/CbcObject.hpp +272 -0
- data/ext/ruby-cbc/install/include/coin/CbcObjectUpdateData.hpp +64 -0
- data/ext/ruby-cbc/install/include/coin/CbcOrClpParam.cpp +4134 -0
- data/ext/ruby-cbc/install/include/coin/CbcOrClpParam.hpp +532 -0
- data/ext/ruby-cbc/install/include/coin/CbcParam.hpp +324 -0
- data/ext/ruby-cbc/install/include/coin/CbcPartialNodeInfo.hpp +110 -0
- data/ext/ruby-cbc/install/include/coin/CbcSOS.hpp +279 -0
- data/ext/ruby-cbc/install/include/coin/CbcSimpleInteger.hpp +286 -0
- data/ext/ruby-cbc/install/include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp +564 -0
- data/ext/ruby-cbc/install/include/coin/CbcSimpleIntegerPseudoCost.hpp +114 -0
- data/ext/ruby-cbc/install/include/coin/CbcSolver.hpp +447 -0
- data/ext/ruby-cbc/install/include/coin/CbcStrategy.hpp +258 -0
- data/ext/ruby-cbc/install/include/coin/CbcSubProblem.hpp +83 -0
- data/ext/ruby-cbc/install/include/coin/CbcTree.hpp +490 -0
- data/ext/ruby-cbc/install/include/coin/CbcTreeLocal.hpp +372 -0
- data/ext/ruby-cbc/install/include/coin/Cbc_C_Interface.h +381 -0
- data/ext/ruby-cbc/install/include/coin/Cgl012cut.hpp +464 -0
- data/ext/ruby-cbc/install/include/coin/CglAllDifferent.hpp +115 -0
- data/ext/ruby-cbc/install/include/coin/CglClique.hpp +308 -0
- data/ext/ruby-cbc/install/include/coin/CglConfig.h +19 -0
- data/ext/ruby-cbc/install/include/coin/CglCutGenerator.hpp +121 -0
- data/ext/ruby-cbc/install/include/coin/CglDuplicateRow.hpp +189 -0
- data/ext/ruby-cbc/install/include/coin/CglFlowCover.hpp +371 -0
- data/ext/ruby-cbc/install/include/coin/CglGMI.hpp +364 -0
- data/ext/ruby-cbc/install/include/coin/CglGMIParam.hpp +313 -0
- data/ext/ruby-cbc/install/include/coin/CglGomory.hpp +204 -0
- data/ext/ruby-cbc/install/include/coin/CglKnapsackCover.hpp +310 -0
- data/ext/ruby-cbc/install/include/coin/CglLandP.hpp +306 -0
- data/ext/ruby-cbc/install/include/coin/CglLandPValidator.hpp +130 -0
- data/ext/ruby-cbc/install/include/coin/CglLiftAndProject.hpp +104 -0
- data/ext/ruby-cbc/install/include/coin/CglMessage.hpp +50 -0
- data/ext/ruby-cbc/install/include/coin/CglMixedIntegerRounding.hpp +429 -0
- data/ext/ruby-cbc/install/include/coin/CglMixedIntegerRounding2.hpp +427 -0
- data/ext/ruby-cbc/install/include/coin/CglOddHole.hpp +160 -0
- data/ext/ruby-cbc/install/include/coin/CglParam.hpp +93 -0
- data/ext/ruby-cbc/install/include/coin/CglPreProcess.hpp +492 -0
- data/ext/ruby-cbc/install/include/coin/CglProbing.hpp +543 -0
- data/ext/ruby-cbc/install/include/coin/CglRedSplit.hpp +448 -0
- data/ext/ruby-cbc/install/include/coin/CglRedSplit2.hpp +494 -0
- data/ext/ruby-cbc/install/include/coin/CglRedSplit2Param.hpp +495 -0
- data/ext/ruby-cbc/install/include/coin/CglRedSplitParam.hpp +272 -0
- data/ext/ruby-cbc/install/include/coin/CglResidualCapacity.hpp +240 -0
- data/ext/ruby-cbc/install/include/coin/CglSimpleRounding.hpp +174 -0
- data/ext/ruby-cbc/install/include/coin/CglStored.hpp +125 -0
- data/ext/ruby-cbc/install/include/coin/CglTreeInfo.hpp +180 -0
- data/ext/ruby-cbc/install/include/coin/CglTwomir.hpp +565 -0
- data/ext/ruby-cbc/install/include/coin/CglZeroHalf.hpp +133 -0
- data/ext/ruby-cbc/install/include/coin/ClpAmplObjective.hpp +113 -0
- data/ext/ruby-cbc/install/include/coin/ClpCholeskyBase.hpp +294 -0
- data/ext/ruby-cbc/install/include/coin/ClpCholeskyDense.hpp +162 -0
- data/ext/ruby-cbc/install/include/coin/ClpConfig.h +17 -0
- data/ext/ruby-cbc/install/include/coin/ClpConstraint.hpp +125 -0
- data/ext/ruby-cbc/install/include/coin/ClpConstraintAmpl.hpp +108 -0
- data/ext/ruby-cbc/install/include/coin/ClpConstraintLinear.hpp +110 -0
- data/ext/ruby-cbc/install/include/coin/ClpConstraintQuadratic.hpp +119 -0
- data/ext/ruby-cbc/install/include/coin/ClpDualRowDantzig.hpp +71 -0
- data/ext/ruby-cbc/install/include/coin/ClpDualRowPivot.hpp +129 -0
- data/ext/ruby-cbc/install/include/coin/ClpDualRowSteepest.hpp +153 -0
- data/ext/ruby-cbc/install/include/coin/ClpDummyMatrix.hpp +183 -0
- data/ext/ruby-cbc/install/include/coin/ClpDynamicExampleMatrix.hpp +186 -0
- data/ext/ruby-cbc/install/include/coin/ClpDynamicMatrix.hpp +381 -0
- data/ext/ruby-cbc/install/include/coin/ClpEventHandler.hpp +187 -0
- data/ext/ruby-cbc/install/include/coin/ClpFactorization.hpp +432 -0
- data/ext/ruby-cbc/install/include/coin/ClpGubDynamicMatrix.hpp +247 -0
- data/ext/ruby-cbc/install/include/coin/ClpGubMatrix.hpp +358 -0
- data/ext/ruby-cbc/install/include/coin/ClpInterior.hpp +570 -0
- data/ext/ruby-cbc/install/include/coin/ClpLinearObjective.hpp +103 -0
- data/ext/ruby-cbc/install/include/coin/ClpMatrixBase.hpp +524 -0
- data/ext/ruby-cbc/install/include/coin/ClpMessage.hpp +131 -0
- data/ext/ruby-cbc/install/include/coin/ClpModel.hpp +1307 -0
- data/ext/ruby-cbc/install/include/coin/ClpNetworkMatrix.hpp +229 -0
- data/ext/ruby-cbc/install/include/coin/ClpNode.hpp +349 -0
- data/ext/ruby-cbc/install/include/coin/ClpNonLinearCost.hpp +401 -0
- data/ext/ruby-cbc/install/include/coin/ClpObjective.hpp +134 -0
- data/ext/ruby-cbc/install/include/coin/ClpPackedMatrix.hpp +638 -0
- data/ext/ruby-cbc/install/include/coin/ClpParameters.hpp +126 -0
- data/ext/ruby-cbc/install/include/coin/ClpPdcoBase.hpp +103 -0
- data/ext/ruby-cbc/install/include/coin/ClpPlusMinusOneMatrix.hpp +290 -0
- data/ext/ruby-cbc/install/include/coin/ClpPresolve.hpp +299 -0
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnDantzig.hpp +72 -0
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnPivot.hpp +155 -0
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnSteepest.hpp +247 -0
- data/ext/ruby-cbc/install/include/coin/ClpQuadraticObjective.hpp +155 -0
- data/ext/ruby-cbc/install/include/coin/ClpSimplex.hpp +1797 -0
- data/ext/ruby-cbc/install/include/coin/ClpSimplexDual.hpp +300 -0
- data/ext/ruby-cbc/install/include/coin/ClpSimplexNonlinear.hpp +117 -0
- data/ext/ruby-cbc/install/include/coin/ClpSimplexOther.hpp +277 -0
- data/ext/ruby-cbc/install/include/coin/ClpSimplexPrimal.hpp +244 -0
- data/ext/ruby-cbc/install/include/coin/ClpSolve.hpp +446 -0
- data/ext/ruby-cbc/install/include/coin/Clp_C_Interface.h +525 -0
- data/ext/ruby-cbc/install/include/coin/CoinAlloc.hpp +176 -0
- data/ext/ruby-cbc/install/include/coin/CoinBuild.hpp +149 -0
- data/ext/ruby-cbc/install/include/coin/CoinDenseFactorization.hpp +419 -0
- data/ext/ruby-cbc/install/include/coin/CoinDenseVector.hpp +383 -0
- data/ext/ruby-cbc/install/include/coin/CoinDistance.hpp +48 -0
- data/ext/ruby-cbc/install/include/coin/CoinError.hpp +257 -0
- data/ext/ruby-cbc/install/include/coin/CoinFactorization.hpp +2044 -0
- data/ext/ruby-cbc/install/include/coin/CoinFileIO.hpp +166 -0
- data/ext/ruby-cbc/install/include/coin/CoinFinite.hpp +34 -0
- data/ext/ruby-cbc/install/include/coin/CoinFloatEqual.hpp +177 -0
- data/ext/ruby-cbc/install/include/coin/CoinHelperFunctions.hpp +1111 -0
- data/ext/ruby-cbc/install/include/coin/CoinIndexedVector.hpp +1164 -0
- data/ext/ruby-cbc/install/include/coin/CoinLpIO.hpp +805 -0
- data/ext/ruby-cbc/install/include/coin/CoinMessage.hpp +96 -0
- data/ext/ruby-cbc/install/include/coin/CoinMessageHandler.hpp +666 -0
- data/ext/ruby-cbc/install/include/coin/CoinModel.hpp +1054 -0
- data/ext/ruby-cbc/install/include/coin/CoinModelUseful.hpp +441 -0
- data/ext/ruby-cbc/install/include/coin/CoinMpsIO.hpp +1056 -0
- data/ext/ruby-cbc/install/include/coin/CoinOslFactorization.hpp +280 -0
- data/ext/ruby-cbc/install/include/coin/CoinPackedMatrix.hpp +947 -0
- data/ext/ruby-cbc/install/include/coin/CoinPackedVector.hpp +657 -0
- data/ext/ruby-cbc/install/include/coin/CoinPackedVectorBase.hpp +269 -0
- data/ext/ruby-cbc/install/include/coin/CoinParam.hpp +644 -0
- data/ext/ruby-cbc/install/include/coin/CoinPragma.hpp +26 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDoubleton.hpp +73 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDual.hpp +85 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDupcol.hpp +226 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveEmpty.hpp +116 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveFixed.hpp +181 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveForcing.hpp +61 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveImpliedFree.hpp +60 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveIsolated.hpp +51 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveMatrix.hpp +1842 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveMonitor.hpp +105 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolvePsdebug.hpp +166 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveSingleton.hpp +112 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveSubst.hpp +101 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveTighten.hpp +55 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveTripleton.hpp +66 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveUseless.hpp +63 -0
- data/ext/ruby-cbc/install/include/coin/CoinPresolveZeros.hpp +60 -0
- data/ext/ruby-cbc/install/include/coin/CoinRational.hpp +44 -0
- data/ext/ruby-cbc/install/include/coin/CoinSearchTree.hpp +465 -0
- data/ext/ruby-cbc/install/include/coin/CoinShallowPackedVector.hpp +148 -0
- data/ext/ruby-cbc/install/include/coin/CoinSignal.hpp +117 -0
- data/ext/ruby-cbc/install/include/coin/CoinSimpFactorization.hpp +431 -0
- data/ext/ruby-cbc/install/include/coin/CoinSmartPtr.hpp +528 -0
- data/ext/ruby-cbc/install/include/coin/CoinSnapshot.hpp +476 -0
- data/ext/ruby-cbc/install/include/coin/CoinSort.hpp +678 -0
- data/ext/ruby-cbc/install/include/coin/CoinStructuredModel.hpp +247 -0
- data/ext/ruby-cbc/install/include/coin/CoinTime.hpp +310 -0
- data/ext/ruby-cbc/install/include/coin/CoinTypes.hpp +64 -0
- data/ext/ruby-cbc/install/include/coin/CoinUtility.hpp +19 -0
- data/ext/ruby-cbc/install/include/coin/CoinUtilsConfig.h +34 -0
- data/ext/ruby-cbc/install/include/coin/CoinWarmStart.hpp +58 -0
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartBasis.hpp +456 -0
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartDual.hpp +166 -0
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartPrimalDual.hpp +211 -0
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartVector.hpp +488 -0
- data/ext/ruby-cbc/install/include/coin/Coin_C_defines.h +115 -0
- data/ext/ruby-cbc/install/include/coin/Idiot.hpp +298 -0
- data/ext/ruby-cbc/install/include/coin/OsiAuxInfo.hpp +206 -0
- data/ext/ruby-cbc/install/include/coin/OsiBranchingObject.hpp +1005 -0
- data/ext/ruby-cbc/install/include/coin/OsiCbcSolverInterface.hpp +764 -0
- data/ext/ruby-cbc/install/include/coin/OsiChooseVariable.hpp +534 -0
- data/ext/ruby-cbc/install/include/coin/OsiClpSolverInterface.hpp +1509 -0
- data/ext/ruby-cbc/install/include/coin/OsiColCut.hpp +324 -0
- data/ext/ruby-cbc/install/include/coin/OsiCollections.hpp +35 -0
- data/ext/ruby-cbc/install/include/coin/OsiConfig.h +19 -0
- data/ext/ruby-cbc/install/include/coin/OsiCut.hpp +245 -0
- data/ext/ruby-cbc/install/include/coin/OsiCuts.hpp +474 -0
- data/ext/ruby-cbc/install/include/coin/OsiPresolve.hpp +252 -0
- data/ext/ruby-cbc/install/include/coin/OsiRowCut.hpp +331 -0
- data/ext/ruby-cbc/install/include/coin/OsiRowCutDebugger.hpp +187 -0
- data/ext/ruby-cbc/install/include/coin/OsiSolverBranch.hpp +152 -0
- data/ext/ruby-cbc/install/include/coin/OsiSolverInterface.hpp +2143 -0
- data/ext/ruby-cbc/install/include/coin/OsiSolverParameters.hpp +142 -0
- data/ext/ruby-cbc/install/include/coin/OsiUnitTests.hpp +374 -0
- data/ext/ruby-cbc/install/lib/libCbc.la +35 -0
- data/ext/ruby-cbc/install/lib/libCbc.so +0 -0
- data/ext/ruby-cbc/install/lib/libCbc.so.3 +0 -0
- data/ext/ruby-cbc/install/lib/libCbc.so.3.9.7 +0 -0
- data/ext/ruby-cbc/install/lib/libCbcSolver.la +35 -0
- data/ext/ruby-cbc/install/lib/libCbcSolver.so +0 -0
- data/ext/ruby-cbc/install/lib/libCbcSolver.so.3 +0 -0
- data/ext/ruby-cbc/install/lib/libCbcSolver.so.3.9.7 +0 -0
- data/ext/ruby-cbc/install/lib/libCgl.la +35 -0
- data/ext/ruby-cbc/install/lib/libCgl.so +0 -0
- data/ext/ruby-cbc/install/lib/libCgl.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libCgl.so.1.9.7 +0 -0
- data/ext/ruby-cbc/install/lib/libClp.la +35 -0
- data/ext/ruby-cbc/install/lib/libClp.so +0 -0
- data/ext/ruby-cbc/install/lib/libClp.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libClp.so.1.13.9 +0 -0
- data/ext/ruby-cbc/install/lib/libClpSolver.la +35 -0
- data/ext/ruby-cbc/install/lib/libClpSolver.so +0 -0
- data/ext/ruby-cbc/install/lib/libClpSolver.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libClpSolver.so.1.13.9 +0 -0
- data/ext/ruby-cbc/install/lib/libCoinUtils.la +35 -0
- data/ext/ruby-cbc/install/lib/libCoinUtils.so +0 -0
- data/ext/ruby-cbc/install/lib/libCoinUtils.so.3 +0 -0
- data/ext/ruby-cbc/install/lib/libCoinUtils.so.3.10.11 +0 -0
- data/ext/ruby-cbc/install/lib/libOsi.la +35 -0
- data/ext/ruby-cbc/install/lib/libOsi.so +0 -0
- data/ext/ruby-cbc/install/lib/libOsi.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libOsi.so.1.12.6 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCbc.la +35 -0
- data/ext/ruby-cbc/install/lib/libOsiCbc.so +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCbc.so.3 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCbc.so.3.9.7 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiClp.la +35 -0
- data/ext/ruby-cbc/install/lib/libOsiClp.so +0 -0
- data/ext/ruby-cbc/install/lib/libOsiClp.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiClp.so.1.13.9 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCommonTests.la +35 -0
- data/ext/ruby-cbc/install/lib/libOsiCommonTests.so +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCommonTests.so.1 +0 -0
- data/ext/ruby-cbc/install/lib/libOsiCommonTests.so.1.12.6 +0 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/cbc.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/cgl.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/clp.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/coindatamiplib3.pc +9 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/coindatasample.pc +9 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/coinutils.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-cbc.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-clp.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-unittests.pc +12 -0
- data/ext/ruby-cbc/install/lib/pkgconfig/osi.pc +12 -0
- data/lib/ruby-cbc/ilp/constant.rb +44 -0
- data/lib/ruby-cbc/ilp/constraint.rb +32 -0
- data/lib/ruby-cbc/ilp/objective.rb +26 -0
- data/lib/ruby-cbc/ilp/term.rb +47 -0
- data/lib/ruby-cbc/ilp/term_array.rb +80 -0
- data/lib/ruby-cbc/ilp/var.rb +62 -0
- data/lib/ruby-cbc/model.rb +125 -0
- data/lib/ruby-cbc/problem.rb +170 -0
- data/lib/ruby-cbc/version.rb +3 -0
- data/lib/ruby-cbc.rb +21 -0
- data/ruby-cbc.gemspec +36 -0
- metadata +431 -0
@@ -0,0 +1,495 @@
|
|
1
|
+
// Name: CglRedSplit2Param.hpp
|
2
|
+
// Author: Giacomo Nannicini
|
3
|
+
// Singapore University of Technology and Design
|
4
|
+
// Singapore
|
5
|
+
// email: nannicini@sutd.edu.sg
|
6
|
+
// Date: 03/09/09
|
7
|
+
//-----------------------------------------------------------------------------
|
8
|
+
// Copyright (C) 2010, Giacomo Nannicini and others. All Rights Reserved.
|
9
|
+
|
10
|
+
#ifndef CglRedSplit2Param_H
|
11
|
+
#define CglRedSplit2Param_H
|
12
|
+
|
13
|
+
#include "CglParam.hpp"
|
14
|
+
#include <vector>
|
15
|
+
|
16
|
+
/**@name CglRedSplit2 Parameters */
|
17
|
+
//@{
|
18
|
+
|
19
|
+
/** Class collecting parameters the Reduced-and-split cut generator.
|
20
|
+
|
21
|
+
An important thing to note is that the cut generator allows for
|
22
|
+
the selection of a number of strategies that can be combined
|
23
|
+
together. By default, a selection that typically yields a good
|
24
|
+
compromise between speed and cut strenght is made. The selection
|
25
|
+
can be changed by resetting the default choices (see the
|
26
|
+
functions whose name starts with "reset") or by setting the
|
27
|
+
parameter use_default_strategies to false in the
|
28
|
+
constructors. After this, the chosen strategies can be added to
|
29
|
+
the list by using the functions whose name starts with
|
30
|
+
"add". All strategies will be combined together: if we choose 3
|
31
|
+
row selection strategies, 2 column selection strategies, and 2
|
32
|
+
possible numbers of rows, we end up with a total of 3*2*2
|
33
|
+
combinations.
|
34
|
+
|
35
|
+
For a detailed explanation of the parameters and their meaning,
|
36
|
+
see the paper by Cornuejols and Nannicini: "Practical strategies
|
37
|
+
for generating rank-1 split cuts in mixed-integer linear
|
38
|
+
programming", on Mathematical Programming Computation.
|
39
|
+
|
40
|
+
Parameters of the generator are listed below.
|
41
|
+
|
42
|
+
- MAXDYN: Maximum ratio between largest and smallest non zero
|
43
|
+
coefficients in a cut. See method setMAXDYN().
|
44
|
+
- EPS_ELIM: Precision for deciding if a coefficient is zero when
|
45
|
+
eliminating slack variables. See method setEPS_ELIM().
|
46
|
+
- MINVIOL: Minimum violation for the current basic solution in
|
47
|
+
a generated cut. See method setMINVIOL().
|
48
|
+
- EPS_RELAX_ABS: Absolute relaxation of cut rhs.
|
49
|
+
- EPS_RELAX_REL: Relative relaxation of cut rhs.
|
50
|
+
- MAX_SUPP_ABS: Maximum cut support (absolute).
|
51
|
+
- MAX_SUPP_REL: Maximum cut support (relative): the formula to
|
52
|
+
compute maximum cut support is
|
53
|
+
MAX_SUPP_ABS + ncol*MAX_SUPP_REL.
|
54
|
+
- USE_INTSLACKS: Use integer slacks to generate cuts. (not implemented).
|
55
|
+
See method setUSE_INTSLACKS().
|
56
|
+
- normIsZero: Norm of a vector is considered zero if smaller than
|
57
|
+
this value. See method setNormIsZero().
|
58
|
+
- minNormReduction: a cut is generated if the new norm of the row on the
|
59
|
+
continuous nonbasics is reduced by at least
|
60
|
+
this factor (relative reduction).
|
61
|
+
- away: Look only at basic integer variables whose current value
|
62
|
+
is at least this value from being integer. See method setAway().
|
63
|
+
- maxSumMultipliers: maximum sum (in absolute value) of row multipliers
|
64
|
+
- normalization: normalization factor for the norm of lambda in the
|
65
|
+
coefficient reduction algorithm (convex min problem)
|
66
|
+
- numRowsReduction: Maximum number of rows in the linear system for
|
67
|
+
norm reduction.
|
68
|
+
- columnSelectionStrategy: parameter to select which columns should be
|
69
|
+
used for coefficient reduction.
|
70
|
+
- rowSelectionStrategy: parameter to select which rows should be
|
71
|
+
used for coefficient reduction.
|
72
|
+
- timeLimit: Time limit (in seconds) for cut generation.
|
73
|
+
- maxNumCuts: Maximum number of cuts that can be returned at each pass;
|
74
|
+
we could generate more cuts than this number (see below)
|
75
|
+
- maxNumComputedCuts: Maximum number of cuts that can be computed
|
76
|
+
by the generator at each pass
|
77
|
+
- maxNonzeroesTab : Rows of the simplex tableau with more than
|
78
|
+
this number of nonzeroes will not be
|
79
|
+
considered for reduction. Only works if
|
80
|
+
RS_FAST_* are defined in CglRedSplit2.
|
81
|
+
- skipGomory: Skip traditional Gomory cuts, i.e. GMI cuts arising from
|
82
|
+
a single row of the tableau (instead of a combination).
|
83
|
+
Default is 1 (true), because we assume that they are
|
84
|
+
generated by a traditional Gomory generator anyway.
|
85
|
+
*/
|
86
|
+
//@}
|
87
|
+
|
88
|
+
class CglRedSplit2Param : public CglParam {
|
89
|
+
|
90
|
+
public:
|
91
|
+
/** Enumerations for parameters */
|
92
|
+
|
93
|
+
/** Row selection strategies; same names as in the paper */
|
94
|
+
enum RowSelectionStrategy{
|
95
|
+
/* Pick rows that introduce the fewest nonzeroes on integer nonbasics */
|
96
|
+
RS1,
|
97
|
+
/* Pick rows that introduce the fewest nonzeroes on the set of working
|
98
|
+
continuous nonbasics */
|
99
|
+
RS2,
|
100
|
+
/* Pick rows that introduce the fewest nonzeroes on both integer and
|
101
|
+
working continuous nonbasics */
|
102
|
+
RS3,
|
103
|
+
/* Same as RS0 but with greedy algorithm */
|
104
|
+
RS4,
|
105
|
+
/* Same as RS1 but with greedy algorithm */
|
106
|
+
RS5,
|
107
|
+
/* Same as RS2 but with greedy algorithm */
|
108
|
+
RS6,
|
109
|
+
/* Pick rows with smallest angle in the space of integer and working
|
110
|
+
continuous nonbasics */
|
111
|
+
RS7,
|
112
|
+
/* Pick rows with smallest angle in the space of working
|
113
|
+
continuous nonbasics */
|
114
|
+
RS8,
|
115
|
+
/* Use all strategies */
|
116
|
+
RS_ALL,
|
117
|
+
/* Use best ones - that is, RS8 and RS7 */
|
118
|
+
RS_BEST
|
119
|
+
};
|
120
|
+
|
121
|
+
/** Column selection strategies; again, look them up in the paper. */
|
122
|
+
enum ColumnSelectionStrategy{
|
123
|
+
/* C-3P */
|
124
|
+
CS1, CS2, CS3,
|
125
|
+
/* C-5P */
|
126
|
+
CS4, CS5, CS6, CS7, CS8,
|
127
|
+
/* I-2P-2/3 */
|
128
|
+
CS9, CS10,
|
129
|
+
/* I-2P-4/5 */
|
130
|
+
CS11, CS12,
|
131
|
+
/* I-2P-1/2 */
|
132
|
+
CS13, CS14,
|
133
|
+
/* I-3P */
|
134
|
+
CS15, CS16, CS17,
|
135
|
+
/* I-4P */
|
136
|
+
CS18, CS19, CS20, CS21,
|
137
|
+
/* Use all strategies up to this point */
|
138
|
+
CS_ALL,
|
139
|
+
/* Use best strategies (same effect as CS_ALL, because it turns out that
|
140
|
+
using all strategies is the best thing to do) */
|
141
|
+
CS_BEST,
|
142
|
+
/* Optimize over all continuous nonbasic columns; this does not give
|
143
|
+
good results, but we use it for testing Lift & Project + RedSplit */
|
144
|
+
CS_ALLCONT,
|
145
|
+
/* Lift & Project specific strategy: only select variables which
|
146
|
+
are nonbasic in the tableau but are basic in the point to cut
|
147
|
+
off. This strategy cannot be used outside L&P. It is not very
|
148
|
+
effective even with L&P, but is left here for testing.*/
|
149
|
+
CS_LAP_NONBASICS
|
150
|
+
};
|
151
|
+
|
152
|
+
/** Scaling strategies for new nonbasic columns for Lift & Project;
|
153
|
+
* "factor" is the value of columnScalingBoundLAP_ */
|
154
|
+
enum ColumnScalingStrategy{
|
155
|
+
/* No scaling */
|
156
|
+
SC_NONE,
|
157
|
+
/* Multiply by |xbar[i]| where xbar[i] is the value of the
|
158
|
+
corresponding component of the point that we want to cut off */
|
159
|
+
SC_LINEAR,
|
160
|
+
/* Multiply by min(factor,|xbar[i]|) */
|
161
|
+
SC_LINEAR_BOUNDED,
|
162
|
+
/* Multiply by min(factor,log(|xbar[i]|)) */
|
163
|
+
SC_LOG_BOUNDED,
|
164
|
+
/* Multiply all new nonbasics by factor */
|
165
|
+
SC_UNIFORM,
|
166
|
+
/* Multiply only nonzero coefficients by factor */
|
167
|
+
SC_UNIFORM_NZ
|
168
|
+
};
|
169
|
+
|
170
|
+
/**@name Set/get methods */
|
171
|
+
//@{
|
172
|
+
/** Set away, the minimum distance from being integer used for selecting
|
173
|
+
rows for cut generation; all rows whose pivot variable should be
|
174
|
+
integer but is more than away from integrality will be selected;
|
175
|
+
Default: 0.005 */
|
176
|
+
virtual void setAway(double value);
|
177
|
+
/// Get value of away
|
178
|
+
inline double getAway() const {return away_;}
|
179
|
+
|
180
|
+
/** Set the value of EPS_ELIM, epsilon for values of coefficients when
|
181
|
+
eliminating slack variables;
|
182
|
+
Default: 0.0 */
|
183
|
+
void setEPS_ELIM(double value);
|
184
|
+
/** Get the value of EPS_ELIM */
|
185
|
+
double getEPS_ELIM() const {return EPS_ELIM;}
|
186
|
+
|
187
|
+
/** Set EPS_RELAX_ABS */
|
188
|
+
virtual void setEPS_RELAX_ABS(double eps_ra);
|
189
|
+
/** Get value of EPS_RELAX_ABS */
|
190
|
+
inline double getEPS_RELAX_ABS() const {return EPS_RELAX_ABS;}
|
191
|
+
|
192
|
+
/** Set EPS_RELAX_REL */
|
193
|
+
virtual void setEPS_RELAX_REL(double eps_rr);
|
194
|
+
/** Get value of EPS_RELAX_REL */
|
195
|
+
inline double getEPS_RELAX_REL() const {return EPS_RELAX_REL;}
|
196
|
+
|
197
|
+
// Set the maximum ratio between largest and smallest non zero
|
198
|
+
// coefficients in a cut. Default: 1e6.
|
199
|
+
virtual void setMAXDYN(double value);
|
200
|
+
/** Get the value of MAXDYN */
|
201
|
+
inline double getMAXDYN() const {return MAXDYN;}
|
202
|
+
|
203
|
+
/** Set the value of MINVIOL, the minimum violation for the current
|
204
|
+
basic solution in a generated cut. Default: 1e-3 */
|
205
|
+
virtual void setMINVIOL(double value);
|
206
|
+
/** Get the value of MINVIOL */
|
207
|
+
inline double getMINVIOL() const {return MINVIOL;}
|
208
|
+
|
209
|
+
/** Maximum absolute support of the cutting planes. Default: INT_MAX.
|
210
|
+
Aliases for consistency with our naming scheme. */
|
211
|
+
inline void setMAX_SUPP_ABS(int value) {setMAX_SUPPORT(value);}
|
212
|
+
inline int getMAX_SUPP_ABS() const {return MAX_SUPPORT;}
|
213
|
+
|
214
|
+
/** Maximum relative support of the cutting planes. Default: 0.0.
|
215
|
+
The maximum support is MAX_SUPP_ABS + MAX_SUPPREL*ncols. */
|
216
|
+
inline void setMAX_SUPP_REL(double value);
|
217
|
+
inline double getMAX_SUPP_REL() const {return MAX_SUPP_REL;}
|
218
|
+
|
219
|
+
/** Set the value of USE_INTSLACKS. Default: 0 */
|
220
|
+
virtual void setUSE_INTSLACKS(int value);
|
221
|
+
/** Get the value of USE_INTSLACKS */
|
222
|
+
inline int getUSE_INTSLACKS() const {return USE_INTSLACKS;}
|
223
|
+
|
224
|
+
/** Set the value of normIsZero, the threshold for considering a norm to be
|
225
|
+
0; Default: 1e-5 */
|
226
|
+
virtual void setNormIsZero(double value);
|
227
|
+
/** Get the value of normIsZero */
|
228
|
+
inline double getNormIsZero() const {return normIsZero_;}
|
229
|
+
|
230
|
+
/** Set the value of minNormReduction; Default: 0.1 */
|
231
|
+
virtual void setMinNormReduction(double value);
|
232
|
+
/** Get the value of normIsZero */
|
233
|
+
inline double getMinNormReduction() const {return minNormReduction_;}
|
234
|
+
|
235
|
+
/** Set the value of maxSumMultipliers; Default: 10 */
|
236
|
+
virtual void setMaxSumMultipliers(int value);
|
237
|
+
/** Get the value of maxSumMultipliers */
|
238
|
+
inline int getMaxSumMultipliers() const {return maxSumMultipliers_;}
|
239
|
+
|
240
|
+
/** Set the value of normalization; Default: 0.0001 */
|
241
|
+
virtual void setNormalization(double value);
|
242
|
+
/** Get the value of normalization */
|
243
|
+
inline double getNormalization() const {return normalization_;}
|
244
|
+
|
245
|
+
/** Set the value of numRowsReduction, max number of rows that are used
|
246
|
+
* for each row reduction step. In particular, the linear system will
|
247
|
+
* involve a numRowsReduction*numRowsReduction matrix */
|
248
|
+
virtual void addNumRowsReduction(int value);
|
249
|
+
/// get the value
|
250
|
+
inline std::vector<int> getNumRowsReduction() const {return numRowsReduction_;}
|
251
|
+
/// reset
|
252
|
+
inline void resetNumRowsReduction() {numRowsReduction_.clear();}
|
253
|
+
|
254
|
+
/** Add the value of columnSelectionStrategy */
|
255
|
+
virtual void addColumnSelectionStrategy(ColumnSelectionStrategy value);
|
256
|
+
/// get the value
|
257
|
+
inline std::vector<ColumnSelectionStrategy> getColumnSelectionStrategy() const {return columnSelectionStrategy_;}
|
258
|
+
/// reset
|
259
|
+
inline void resetColumnSelectionStrategy(){columnSelectionStrategy_.clear();}
|
260
|
+
|
261
|
+
/** Set the value for rowSelectionStrategy, which changes the way we choose
|
262
|
+
* the rows for the reduction step */
|
263
|
+
virtual void addRowSelectionStrategy(RowSelectionStrategy value);
|
264
|
+
/// get the value
|
265
|
+
inline std::vector<RowSelectionStrategy> getRowSelectionStrategy() const {return rowSelectionStrategy_;};
|
266
|
+
/// reset
|
267
|
+
inline void resetRowSelectionStrategy() {rowSelectionStrategy_.clear();}
|
268
|
+
|
269
|
+
/** Set the value of numRowsReductionLAP, max number of rows that are used
|
270
|
+
* for each row reduction step during Lift & Project.
|
271
|
+
* In particular, the linear system will involve a
|
272
|
+
* numRowsReduction*numRowsReduction matrix */
|
273
|
+
virtual void addNumRowsReductionLAP(int value);
|
274
|
+
/// get the value
|
275
|
+
inline std::vector<int> getNumRowsReductionLAP() const {return numRowsReductionLAP_;}
|
276
|
+
/// reset
|
277
|
+
inline void resetNumRowsReductionLAP() {numRowsReductionLAP_.clear();}
|
278
|
+
|
279
|
+
/** Add the value of columnSelectionStrategyLAP */
|
280
|
+
virtual void addColumnSelectionStrategyLAP(ColumnSelectionStrategy value);
|
281
|
+
/// get the value
|
282
|
+
inline std::vector<ColumnSelectionStrategy> getColumnSelectionStrategyLAP() const {return columnSelectionStrategyLAP_;}
|
283
|
+
/// reset
|
284
|
+
inline void resetColumnSelectionStrategyLAP(){columnSelectionStrategyLAP_.clear();}
|
285
|
+
|
286
|
+
/** Set the value for rowSelectionStrategyLAP, which changes the way we
|
287
|
+
* choose the rows for the reduction step */
|
288
|
+
virtual void addRowSelectionStrategyLAP(RowSelectionStrategy value);
|
289
|
+
/// get the value
|
290
|
+
inline std::vector<RowSelectionStrategy> getRowSelectionStrategyLAP() const {return rowSelectionStrategyLAP_;};
|
291
|
+
/// reset
|
292
|
+
inline void resetRowSelectionStrategyLAP() {rowSelectionStrategyLAP_.clear();}
|
293
|
+
|
294
|
+
/** Set the value for columnScalingStrategyLAP, which sets the way nonbasic
|
295
|
+
* columns that are basic in the fractional point to cut off are scaled */
|
296
|
+
virtual void setColumnScalingStrategyLAP(ColumnScalingStrategy value);
|
297
|
+
/// get the value
|
298
|
+
inline ColumnScalingStrategy getColumnScalingStrategyLAP() const {return columnScalingStrategyLAP_; };
|
299
|
+
|
300
|
+
/** Set the value for the bound in the column scaling factor */
|
301
|
+
virtual void setColumnScalingBoundLAP(double value);
|
302
|
+
/// get the value
|
303
|
+
inline double getColumnScalingBoundLAP() const {return columnScalingBoundLAP_;};
|
304
|
+
|
305
|
+
/** Set the value of the time limit for cut generation (in seconds) */
|
306
|
+
virtual void setTimeLimit(double value);
|
307
|
+
/// get the value
|
308
|
+
inline double getTimeLimit() const {return timeLimit_;}
|
309
|
+
|
310
|
+
/** Set the value for the maximum number of cuts that can be returned */
|
311
|
+
virtual void setMaxNumCuts(int value);
|
312
|
+
/// get the value
|
313
|
+
inline int getMaxNumCuts() const {return maxNumCuts_;}
|
314
|
+
|
315
|
+
/** Set the value for the maximum number of cuts that can be computed */
|
316
|
+
virtual void setMaxNumComputedCuts(int value);
|
317
|
+
/// get the value
|
318
|
+
inline int getMaxNumComputedCuts() const {return maxNumComputedCuts_;}
|
319
|
+
|
320
|
+
/** Set the value for the maximum number of nonzeroes in a row of
|
321
|
+
* the simplex tableau for the row to be considered */
|
322
|
+
virtual void setMaxNonzeroesTab(int value);
|
323
|
+
/// get the value
|
324
|
+
inline int getMaxNonzeroesTab() const {return maxNonzeroesTab_;}
|
325
|
+
|
326
|
+
/** Set the value of skipGomory: should we skip simple Gomory cuts,
|
327
|
+
* i.e. GMI cuts derived from a single row of the simple tableau?
|
328
|
+
* This is 1 (true) by default: we only generate cuts from linear
|
329
|
+
* combinations of at least two rows. */
|
330
|
+
virtual void setSkipGomory(int value);
|
331
|
+
/// get the value
|
332
|
+
inline int getSkipGomory() const {return skipGomory_;}
|
333
|
+
|
334
|
+
//@}
|
335
|
+
|
336
|
+
/**@name Constructors and destructors */
|
337
|
+
//@{
|
338
|
+
/// Default constructor. If use_default_strategies is true, we add
|
339
|
+
/// to the list of strategies the default ones. If is false, the
|
340
|
+
/// list of strategies is left empty (must be populated before usage!).
|
341
|
+
CglRedSplit2Param(bool use_default_strategies = true,
|
342
|
+
double eps = 1e-12,
|
343
|
+
double eps_coeff = 1e-11,
|
344
|
+
double eps_elim = 0.0,
|
345
|
+
double eps_relax_abs = 1e-11,
|
346
|
+
double eps_relax_rel = 1e-13,
|
347
|
+
double max_dyn = 1e6,
|
348
|
+
double min_viol = 1e-3,
|
349
|
+
int max_supp_abs = 1000,
|
350
|
+
double max_supp_rel = 0.1,
|
351
|
+
int use_int_slacks = 0,
|
352
|
+
double norm_zero = 1e-5,
|
353
|
+
double minNormReduction = 0.1,
|
354
|
+
int maxSumMultipliers = 10,
|
355
|
+
double normalization = 0.0001,
|
356
|
+
double away = 0.005,
|
357
|
+
double timeLimit = 60,
|
358
|
+
int maxNumCuts = 10000,
|
359
|
+
int maxNumComputedCuts = 10000,
|
360
|
+
int maxNonzeroesTab = 1000,
|
361
|
+
double columnScalingBoundLAP = 5.0,
|
362
|
+
int skipGomory = 1);
|
363
|
+
|
364
|
+
/// Constructor from CglParam. If use_default_strategies is true, we
|
365
|
+
/// add to the list of strategies the default ones. If is false, the
|
366
|
+
/// list of strategies is left empty (must be populated before
|
367
|
+
/// usage!).
|
368
|
+
CglRedSplit2Param(const CglParam &source,
|
369
|
+
bool use_default_strategies = true,
|
370
|
+
double eps_elim = 0.0,
|
371
|
+
double eps_relax_abs = 1e-11,
|
372
|
+
double eps_relax_rel = 1e-13,
|
373
|
+
double max_dyn = 1e6,
|
374
|
+
double min_viol = 1e-3,
|
375
|
+
double max_supp_rel = 0.1,
|
376
|
+
int use_int_slacks = 0,
|
377
|
+
double norm_zero = 1e-5,
|
378
|
+
double minNormReduction = 0.1,
|
379
|
+
int maxSumMultipliers = 10,
|
380
|
+
double normalization = 0.0001,
|
381
|
+
double away = 0.005,
|
382
|
+
double timeLimit = 60,
|
383
|
+
int maxNumCuts = 10000,
|
384
|
+
int maxNumComputedCuts = 10000,
|
385
|
+
int maxNonzeroesTab = 1000,
|
386
|
+
double columnScalingBoundLAP = 5.0,
|
387
|
+
int skipGomory = 1);
|
388
|
+
|
389
|
+
/// Copy constructor
|
390
|
+
CglRedSplit2Param(const CglRedSplit2Param &source);
|
391
|
+
|
392
|
+
/// Clone
|
393
|
+
virtual CglRedSplit2Param* clone() const;
|
394
|
+
|
395
|
+
/// Assignment operator
|
396
|
+
virtual CglRedSplit2Param& operator=(const CglRedSplit2Param &rhs);
|
397
|
+
|
398
|
+
/// Destructor
|
399
|
+
virtual ~CglRedSplit2Param();
|
400
|
+
//@}
|
401
|
+
|
402
|
+
protected:
|
403
|
+
|
404
|
+
/**@name Parameters */
|
405
|
+
//@{
|
406
|
+
|
407
|
+
/** Epsilon for value of coefficients when eliminating slack variables.
|
408
|
+
Default: 0.0. */
|
409
|
+
double EPS_ELIM;
|
410
|
+
|
411
|
+
/** Value added to the right hand side of each generated cut to relax it.
|
412
|
+
Default: 1e-11 */
|
413
|
+
double EPS_RELAX_ABS;
|
414
|
+
|
415
|
+
/** For a generated cut with right hand side rhs_val,
|
416
|
+
EPS_RELAX_EPS * fabs(rhs_val) is used to relax the constraint.
|
417
|
+
Default: 1e-13 */
|
418
|
+
double EPS_RELAX_REL;
|
419
|
+
|
420
|
+
// Maximum ratio between largest and smallest non zero
|
421
|
+
// coefficients in a cut. Default: 1e6.
|
422
|
+
double MAXDYN;
|
423
|
+
|
424
|
+
/// Minimum violation for the current basic solution in a generated cut.
|
425
|
+
/// Default: 1e-3.
|
426
|
+
double MINVIOL;
|
427
|
+
|
428
|
+
/// Maximum support - relative part of the formula
|
429
|
+
double MAX_SUPP_REL;
|
430
|
+
|
431
|
+
/// Use integer slacks to generate cuts if USE_INTSLACKS = 1. Default: 0.
|
432
|
+
int USE_INTSLACKS;
|
433
|
+
|
434
|
+
/// Norm of a vector is considered zero if smaller than normIsZero;
|
435
|
+
/// Default: 1e-5.
|
436
|
+
double normIsZero_;
|
437
|
+
|
438
|
+
/// Minimum reduction to accept a new row.
|
439
|
+
double minNormReduction_;
|
440
|
+
|
441
|
+
/// Maximum sum of the vector of row multipliers to generate a cut
|
442
|
+
int maxSumMultipliers_;
|
443
|
+
|
444
|
+
/// Normalization factor for the norm of lambda in the quadratic
|
445
|
+
/// minimization problem that is solved during the coefficient reduction step
|
446
|
+
double normalization_;
|
447
|
+
|
448
|
+
/// Use row only if pivot variable should be integer but is more
|
449
|
+
/// than away_ from being integer. Default: 0.005
|
450
|
+
double away_;
|
451
|
+
|
452
|
+
/// Maximum number of rows to use for the reduction of a given row.
|
453
|
+
std::vector<int> numRowsReduction_;
|
454
|
+
|
455
|
+
/// Column selection method
|
456
|
+
std::vector<ColumnSelectionStrategy> columnSelectionStrategy_;
|
457
|
+
|
458
|
+
/// Row selection method
|
459
|
+
std::vector<RowSelectionStrategy> rowSelectionStrategy_;
|
460
|
+
|
461
|
+
/// Maximum number of rows to use for the reduction during Lift & Project
|
462
|
+
std::vector<int> numRowsReductionLAP_;
|
463
|
+
|
464
|
+
/// Column selection method for Lift & Project
|
465
|
+
std::vector<ColumnSelectionStrategy> columnSelectionStrategyLAP_;
|
466
|
+
|
467
|
+
/// Row selection method for Lift & Project
|
468
|
+
std::vector<RowSelectionStrategy> rowSelectionStrategyLAP_;
|
469
|
+
|
470
|
+
/// Column scaling strategy for the nonbasics columns that were basic in
|
471
|
+
/// the point that we want to cut off (Lift & Project only)
|
472
|
+
ColumnScalingStrategy columnScalingStrategyLAP_;
|
473
|
+
|
474
|
+
/// Minimum value for column scaling (Lift & Project only)
|
475
|
+
double columnScalingBoundLAP_;
|
476
|
+
|
477
|
+
/// Time limit
|
478
|
+
double timeLimit_;
|
479
|
+
|
480
|
+
/// Maximum number of returned cuts
|
481
|
+
int maxNumCuts_;
|
482
|
+
|
483
|
+
/// Maximum number of computed cuts
|
484
|
+
int maxNumComputedCuts_;
|
485
|
+
|
486
|
+
/// Maximum number of nonzeroes in tableau row for reduction
|
487
|
+
int maxNonzeroesTab_;
|
488
|
+
|
489
|
+
/// Skip simple Gomory cuts
|
490
|
+
int skipGomory_;
|
491
|
+
|
492
|
+
//@}
|
493
|
+
};
|
494
|
+
|
495
|
+
#endif
|