ruby-cbc 0.1.9 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/Rakefile +0 -2
- data/lib/ruby-cbc.rb +1 -1
- data/lib/ruby-cbc/problem.rb +6 -8
- data/lib/ruby-cbc/version.rb +1 -1
- data/ruby-cbc.gemspec +3 -2
- metadata +17 -287
- data/ext/ruby-cbc/cbc.i +0 -15
- data/ext/ruby-cbc/cbc_wrap.c +0 -4618
- data/ext/ruby-cbc/extconf.rb +0 -60
- 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 +0 -24
- data/ext/ruby-cbc/install/include/coin/CbcBranchAllDifferent.hpp +0 -62
- data/ext/ruby-cbc/install/include/coin/CbcBranchBase.hpp +0 -78
- data/ext/ruby-cbc/install/include/coin/CbcBranchCut.hpp +0 -183
- data/ext/ruby-cbc/install/include/coin/CbcBranchDecision.hpp +0 -129
- data/ext/ruby-cbc/install/include/coin/CbcBranchDefaultDecision.hpp +0 -100
- data/ext/ruby-cbc/install/include/coin/CbcBranchDynamic.hpp +0 -206
- data/ext/ruby-cbc/install/include/coin/CbcBranchLotsize.hpp +0 -242
- data/ext/ruby-cbc/install/include/coin/CbcBranchToFixLots.hpp +0 -94
- data/ext/ruby-cbc/install/include/coin/CbcBranchingObject.hpp +0 -236
- data/ext/ruby-cbc/install/include/coin/CbcClique.hpp +0 -303
- data/ext/ruby-cbc/install/include/coin/CbcCompare.hpp +0 -39
- data/ext/ruby-cbc/install/include/coin/CbcCompareActual.hpp +0 -14
- data/ext/ruby-cbc/install/include/coin/CbcCompareBase.hpp +0 -142
- data/ext/ruby-cbc/install/include/coin/CbcCompareDefault.hpp +0 -120
- data/ext/ruby-cbc/install/include/coin/CbcCompareDepth.hpp +0 -47
- data/ext/ruby-cbc/install/include/coin/CbcCompareEstimate.hpp +0 -48
- data/ext/ruby-cbc/install/include/coin/CbcCompareObjective.hpp +0 -49
- data/ext/ruby-cbc/install/include/coin/CbcConfig.h +0 -14
- data/ext/ruby-cbc/install/include/coin/CbcConsequence.hpp +0 -49
- data/ext/ruby-cbc/install/include/coin/CbcCountRowCut.hpp +0 -168
- data/ext/ruby-cbc/install/include/coin/CbcCutGenerator.hpp +0 -482
- data/ext/ruby-cbc/install/include/coin/CbcCutModifier.hpp +0 -57
- data/ext/ruby-cbc/install/include/coin/CbcCutSubsetModifier.hpp +0 -66
- data/ext/ruby-cbc/install/include/coin/CbcDummyBranchingObject.hpp +0 -83
- data/ext/ruby-cbc/install/include/coin/CbcEventHandler.hpp +0 -245
- data/ext/ruby-cbc/install/include/coin/CbcFathom.hpp +0 -137
- data/ext/ruby-cbc/install/include/coin/CbcFathomDynamicProgramming.hpp +0 -169
- data/ext/ruby-cbc/install/include/coin/CbcFeasibilityBase.hpp +0 -56
- data/ext/ruby-cbc/install/include/coin/CbcFixVariable.hpp +0 -67
- data/ext/ruby-cbc/install/include/coin/CbcFollowOn.hpp +0 -207
- data/ext/ruby-cbc/install/include/coin/CbcFullNodeInfo.hpp +0 -161
- data/ext/ruby-cbc/install/include/coin/CbcGeneral.hpp +0 -60
- data/ext/ruby-cbc/install/include/coin/CbcGeneralDepth.hpp +0 -279
- data/ext/ruby-cbc/install/include/coin/CbcHeuristic.hpp +0 -682
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDINS.hpp +0 -96
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDW.hpp +0 -309
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDive.hpp +0 -192
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveCoefficient.hpp +0 -52
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveFractional.hpp +0 -52
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveGuided.hpp +0 -55
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveLineSearch.hpp +0 -52
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDivePseudoCost.hpp +0 -60
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicDiveVectorLength.hpp +0 -52
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicFPump.hpp +0 -340
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicGreedy.hpp +0 -280
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicLocal.hpp +0 -271
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicPivotAndFix.hpp +0 -58
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRENS.hpp +0 -77
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRINS.hpp +0 -102
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicRandRound.hpp +0 -58
- data/ext/ruby-cbc/install/include/coin/CbcHeuristicVND.hpp +0 -94
- data/ext/ruby-cbc/install/include/coin/CbcLinked.hpp +0 -1406
- data/ext/ruby-cbc/install/include/coin/CbcMessage.hpp +0 -94
- data/ext/ruby-cbc/install/include/coin/CbcMipStartIO.hpp +0 -26
- data/ext/ruby-cbc/install/include/coin/CbcModel.hpp +0 -2952
- data/ext/ruby-cbc/install/include/coin/CbcNWay.hpp +0 -166
- data/ext/ruby-cbc/install/include/coin/CbcNode.hpp +0 -351
- data/ext/ruby-cbc/install/include/coin/CbcNodeInfo.hpp +0 -349
- data/ext/ruby-cbc/install/include/coin/CbcObject.hpp +0 -272
- data/ext/ruby-cbc/install/include/coin/CbcObjectUpdateData.hpp +0 -64
- data/ext/ruby-cbc/install/include/coin/CbcOrClpParam.cpp +0 -4134
- data/ext/ruby-cbc/install/include/coin/CbcOrClpParam.hpp +0 -532
- data/ext/ruby-cbc/install/include/coin/CbcParam.hpp +0 -324
- data/ext/ruby-cbc/install/include/coin/CbcPartialNodeInfo.hpp +0 -110
- data/ext/ruby-cbc/install/include/coin/CbcSOS.hpp +0 -279
- data/ext/ruby-cbc/install/include/coin/CbcSimpleInteger.hpp +0 -286
- data/ext/ruby-cbc/install/include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp +0 -564
- data/ext/ruby-cbc/install/include/coin/CbcSimpleIntegerPseudoCost.hpp +0 -114
- data/ext/ruby-cbc/install/include/coin/CbcSolver.hpp +0 -447
- data/ext/ruby-cbc/install/include/coin/CbcStrategy.hpp +0 -258
- data/ext/ruby-cbc/install/include/coin/CbcSubProblem.hpp +0 -83
- data/ext/ruby-cbc/install/include/coin/CbcTree.hpp +0 -490
- data/ext/ruby-cbc/install/include/coin/CbcTreeLocal.hpp +0 -372
- data/ext/ruby-cbc/install/include/coin/Cbc_C_Interface.h +0 -381
- data/ext/ruby-cbc/install/include/coin/Cgl012cut.hpp +0 -464
- data/ext/ruby-cbc/install/include/coin/CglAllDifferent.hpp +0 -115
- data/ext/ruby-cbc/install/include/coin/CglClique.hpp +0 -308
- data/ext/ruby-cbc/install/include/coin/CglConfig.h +0 -19
- data/ext/ruby-cbc/install/include/coin/CglCutGenerator.hpp +0 -121
- data/ext/ruby-cbc/install/include/coin/CglDuplicateRow.hpp +0 -189
- data/ext/ruby-cbc/install/include/coin/CglFlowCover.hpp +0 -371
- data/ext/ruby-cbc/install/include/coin/CglGMI.hpp +0 -364
- data/ext/ruby-cbc/install/include/coin/CglGMIParam.hpp +0 -313
- data/ext/ruby-cbc/install/include/coin/CglGomory.hpp +0 -204
- data/ext/ruby-cbc/install/include/coin/CglKnapsackCover.hpp +0 -310
- data/ext/ruby-cbc/install/include/coin/CglLandP.hpp +0 -306
- data/ext/ruby-cbc/install/include/coin/CglLandPValidator.hpp +0 -130
- data/ext/ruby-cbc/install/include/coin/CglLiftAndProject.hpp +0 -104
- data/ext/ruby-cbc/install/include/coin/CglMessage.hpp +0 -50
- data/ext/ruby-cbc/install/include/coin/CglMixedIntegerRounding.hpp +0 -429
- data/ext/ruby-cbc/install/include/coin/CglMixedIntegerRounding2.hpp +0 -427
- data/ext/ruby-cbc/install/include/coin/CglOddHole.hpp +0 -160
- data/ext/ruby-cbc/install/include/coin/CglParam.hpp +0 -93
- data/ext/ruby-cbc/install/include/coin/CglPreProcess.hpp +0 -492
- data/ext/ruby-cbc/install/include/coin/CglProbing.hpp +0 -543
- data/ext/ruby-cbc/install/include/coin/CglRedSplit.hpp +0 -448
- data/ext/ruby-cbc/install/include/coin/CglRedSplit2.hpp +0 -494
- data/ext/ruby-cbc/install/include/coin/CglRedSplit2Param.hpp +0 -495
- data/ext/ruby-cbc/install/include/coin/CglRedSplitParam.hpp +0 -272
- data/ext/ruby-cbc/install/include/coin/CglResidualCapacity.hpp +0 -240
- data/ext/ruby-cbc/install/include/coin/CglSimpleRounding.hpp +0 -174
- data/ext/ruby-cbc/install/include/coin/CglStored.hpp +0 -125
- data/ext/ruby-cbc/install/include/coin/CglTreeInfo.hpp +0 -180
- data/ext/ruby-cbc/install/include/coin/CglTwomir.hpp +0 -565
- data/ext/ruby-cbc/install/include/coin/CglZeroHalf.hpp +0 -133
- data/ext/ruby-cbc/install/include/coin/ClpAmplObjective.hpp +0 -113
- data/ext/ruby-cbc/install/include/coin/ClpCholeskyBase.hpp +0 -294
- data/ext/ruby-cbc/install/include/coin/ClpCholeskyDense.hpp +0 -162
- data/ext/ruby-cbc/install/include/coin/ClpConfig.h +0 -17
- data/ext/ruby-cbc/install/include/coin/ClpConstraint.hpp +0 -125
- data/ext/ruby-cbc/install/include/coin/ClpConstraintAmpl.hpp +0 -108
- data/ext/ruby-cbc/install/include/coin/ClpConstraintLinear.hpp +0 -110
- data/ext/ruby-cbc/install/include/coin/ClpConstraintQuadratic.hpp +0 -119
- data/ext/ruby-cbc/install/include/coin/ClpDualRowDantzig.hpp +0 -71
- data/ext/ruby-cbc/install/include/coin/ClpDualRowPivot.hpp +0 -129
- data/ext/ruby-cbc/install/include/coin/ClpDualRowSteepest.hpp +0 -153
- data/ext/ruby-cbc/install/include/coin/ClpDummyMatrix.hpp +0 -183
- data/ext/ruby-cbc/install/include/coin/ClpDynamicExampleMatrix.hpp +0 -186
- data/ext/ruby-cbc/install/include/coin/ClpDynamicMatrix.hpp +0 -381
- data/ext/ruby-cbc/install/include/coin/ClpEventHandler.hpp +0 -187
- data/ext/ruby-cbc/install/include/coin/ClpFactorization.hpp +0 -432
- data/ext/ruby-cbc/install/include/coin/ClpGubDynamicMatrix.hpp +0 -247
- data/ext/ruby-cbc/install/include/coin/ClpGubMatrix.hpp +0 -358
- data/ext/ruby-cbc/install/include/coin/ClpInterior.hpp +0 -570
- data/ext/ruby-cbc/install/include/coin/ClpLinearObjective.hpp +0 -103
- data/ext/ruby-cbc/install/include/coin/ClpMatrixBase.hpp +0 -524
- data/ext/ruby-cbc/install/include/coin/ClpMessage.hpp +0 -131
- data/ext/ruby-cbc/install/include/coin/ClpModel.hpp +0 -1307
- data/ext/ruby-cbc/install/include/coin/ClpNetworkMatrix.hpp +0 -229
- data/ext/ruby-cbc/install/include/coin/ClpNode.hpp +0 -349
- data/ext/ruby-cbc/install/include/coin/ClpNonLinearCost.hpp +0 -401
- data/ext/ruby-cbc/install/include/coin/ClpObjective.hpp +0 -134
- data/ext/ruby-cbc/install/include/coin/ClpPackedMatrix.hpp +0 -638
- data/ext/ruby-cbc/install/include/coin/ClpParameters.hpp +0 -126
- data/ext/ruby-cbc/install/include/coin/ClpPdcoBase.hpp +0 -103
- data/ext/ruby-cbc/install/include/coin/ClpPlusMinusOneMatrix.hpp +0 -290
- data/ext/ruby-cbc/install/include/coin/ClpPresolve.hpp +0 -299
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnDantzig.hpp +0 -72
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnPivot.hpp +0 -155
- data/ext/ruby-cbc/install/include/coin/ClpPrimalColumnSteepest.hpp +0 -247
- data/ext/ruby-cbc/install/include/coin/ClpQuadraticObjective.hpp +0 -155
- data/ext/ruby-cbc/install/include/coin/ClpSimplex.hpp +0 -1797
- data/ext/ruby-cbc/install/include/coin/ClpSimplexDual.hpp +0 -300
- data/ext/ruby-cbc/install/include/coin/ClpSimplexNonlinear.hpp +0 -117
- data/ext/ruby-cbc/install/include/coin/ClpSimplexOther.hpp +0 -277
- data/ext/ruby-cbc/install/include/coin/ClpSimplexPrimal.hpp +0 -244
- data/ext/ruby-cbc/install/include/coin/ClpSolve.hpp +0 -446
- data/ext/ruby-cbc/install/include/coin/Clp_C_Interface.h +0 -525
- data/ext/ruby-cbc/install/include/coin/CoinAlloc.hpp +0 -176
- data/ext/ruby-cbc/install/include/coin/CoinBuild.hpp +0 -149
- data/ext/ruby-cbc/install/include/coin/CoinDenseFactorization.hpp +0 -419
- data/ext/ruby-cbc/install/include/coin/CoinDenseVector.hpp +0 -383
- data/ext/ruby-cbc/install/include/coin/CoinDistance.hpp +0 -48
- data/ext/ruby-cbc/install/include/coin/CoinError.hpp +0 -257
- data/ext/ruby-cbc/install/include/coin/CoinFactorization.hpp +0 -2044
- data/ext/ruby-cbc/install/include/coin/CoinFileIO.hpp +0 -166
- data/ext/ruby-cbc/install/include/coin/CoinFinite.hpp +0 -34
- data/ext/ruby-cbc/install/include/coin/CoinFloatEqual.hpp +0 -177
- data/ext/ruby-cbc/install/include/coin/CoinHelperFunctions.hpp +0 -1111
- data/ext/ruby-cbc/install/include/coin/CoinIndexedVector.hpp +0 -1164
- data/ext/ruby-cbc/install/include/coin/CoinLpIO.hpp +0 -805
- data/ext/ruby-cbc/install/include/coin/CoinMessage.hpp +0 -96
- data/ext/ruby-cbc/install/include/coin/CoinMessageHandler.hpp +0 -666
- data/ext/ruby-cbc/install/include/coin/CoinModel.hpp +0 -1054
- data/ext/ruby-cbc/install/include/coin/CoinModelUseful.hpp +0 -441
- data/ext/ruby-cbc/install/include/coin/CoinMpsIO.hpp +0 -1056
- data/ext/ruby-cbc/install/include/coin/CoinOslFactorization.hpp +0 -280
- data/ext/ruby-cbc/install/include/coin/CoinPackedMatrix.hpp +0 -947
- data/ext/ruby-cbc/install/include/coin/CoinPackedVector.hpp +0 -657
- data/ext/ruby-cbc/install/include/coin/CoinPackedVectorBase.hpp +0 -269
- data/ext/ruby-cbc/install/include/coin/CoinParam.hpp +0 -644
- data/ext/ruby-cbc/install/include/coin/CoinPragma.hpp +0 -26
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDoubleton.hpp +0 -73
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDual.hpp +0 -85
- data/ext/ruby-cbc/install/include/coin/CoinPresolveDupcol.hpp +0 -226
- data/ext/ruby-cbc/install/include/coin/CoinPresolveEmpty.hpp +0 -116
- data/ext/ruby-cbc/install/include/coin/CoinPresolveFixed.hpp +0 -181
- data/ext/ruby-cbc/install/include/coin/CoinPresolveForcing.hpp +0 -61
- data/ext/ruby-cbc/install/include/coin/CoinPresolveImpliedFree.hpp +0 -60
- data/ext/ruby-cbc/install/include/coin/CoinPresolveIsolated.hpp +0 -51
- data/ext/ruby-cbc/install/include/coin/CoinPresolveMatrix.hpp +0 -1842
- data/ext/ruby-cbc/install/include/coin/CoinPresolveMonitor.hpp +0 -105
- data/ext/ruby-cbc/install/include/coin/CoinPresolvePsdebug.hpp +0 -166
- data/ext/ruby-cbc/install/include/coin/CoinPresolveSingleton.hpp +0 -112
- data/ext/ruby-cbc/install/include/coin/CoinPresolveSubst.hpp +0 -101
- data/ext/ruby-cbc/install/include/coin/CoinPresolveTighten.hpp +0 -55
- data/ext/ruby-cbc/install/include/coin/CoinPresolveTripleton.hpp +0 -66
- data/ext/ruby-cbc/install/include/coin/CoinPresolveUseless.hpp +0 -63
- data/ext/ruby-cbc/install/include/coin/CoinPresolveZeros.hpp +0 -60
- data/ext/ruby-cbc/install/include/coin/CoinRational.hpp +0 -44
- data/ext/ruby-cbc/install/include/coin/CoinSearchTree.hpp +0 -465
- data/ext/ruby-cbc/install/include/coin/CoinShallowPackedVector.hpp +0 -148
- data/ext/ruby-cbc/install/include/coin/CoinSignal.hpp +0 -117
- data/ext/ruby-cbc/install/include/coin/CoinSimpFactorization.hpp +0 -431
- data/ext/ruby-cbc/install/include/coin/CoinSmartPtr.hpp +0 -528
- data/ext/ruby-cbc/install/include/coin/CoinSnapshot.hpp +0 -476
- data/ext/ruby-cbc/install/include/coin/CoinSort.hpp +0 -678
- data/ext/ruby-cbc/install/include/coin/CoinStructuredModel.hpp +0 -247
- data/ext/ruby-cbc/install/include/coin/CoinTime.hpp +0 -310
- data/ext/ruby-cbc/install/include/coin/CoinTypes.hpp +0 -64
- data/ext/ruby-cbc/install/include/coin/CoinUtility.hpp +0 -19
- data/ext/ruby-cbc/install/include/coin/CoinUtilsConfig.h +0 -34
- data/ext/ruby-cbc/install/include/coin/CoinWarmStart.hpp +0 -58
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartBasis.hpp +0 -456
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartDual.hpp +0 -166
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartPrimalDual.hpp +0 -211
- data/ext/ruby-cbc/install/include/coin/CoinWarmStartVector.hpp +0 -488
- data/ext/ruby-cbc/install/include/coin/Coin_C_defines.h +0 -115
- data/ext/ruby-cbc/install/include/coin/Idiot.hpp +0 -298
- data/ext/ruby-cbc/install/include/coin/OsiAuxInfo.hpp +0 -206
- data/ext/ruby-cbc/install/include/coin/OsiBranchingObject.hpp +0 -1005
- data/ext/ruby-cbc/install/include/coin/OsiCbcSolverInterface.hpp +0 -764
- data/ext/ruby-cbc/install/include/coin/OsiChooseVariable.hpp +0 -534
- data/ext/ruby-cbc/install/include/coin/OsiClpSolverInterface.hpp +0 -1509
- data/ext/ruby-cbc/install/include/coin/OsiColCut.hpp +0 -324
- data/ext/ruby-cbc/install/include/coin/OsiCollections.hpp +0 -35
- data/ext/ruby-cbc/install/include/coin/OsiConfig.h +0 -19
- data/ext/ruby-cbc/install/include/coin/OsiCut.hpp +0 -245
- data/ext/ruby-cbc/install/include/coin/OsiCuts.hpp +0 -474
- data/ext/ruby-cbc/install/include/coin/OsiPresolve.hpp +0 -252
- data/ext/ruby-cbc/install/include/coin/OsiRowCut.hpp +0 -331
- data/ext/ruby-cbc/install/include/coin/OsiRowCutDebugger.hpp +0 -187
- data/ext/ruby-cbc/install/include/coin/OsiSolverBranch.hpp +0 -152
- data/ext/ruby-cbc/install/include/coin/OsiSolverInterface.hpp +0 -2143
- data/ext/ruby-cbc/install/include/coin/OsiSolverParameters.hpp +0 -142
- data/ext/ruby-cbc/install/include/coin/OsiUnitTests.hpp +0 -374
- data/ext/ruby-cbc/install/lib/libCbc.la +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -35
- 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 +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/cgl.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/clp.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/coindatamiplib3.pc +0 -9
- data/ext/ruby-cbc/install/lib/pkgconfig/coindatasample.pc +0 -9
- data/ext/ruby-cbc/install/lib/pkgconfig/coinutils.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-cbc.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-clp.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/osi-unittests.pc +0 -12
- data/ext/ruby-cbc/install/lib/pkgconfig/osi.pc +0 -12
@@ -1,114 +0,0 @@
|
|
1
|
-
// $Id: CbcSimpleIntegerPseudoCost.hpp 1899 2013-04-09 18:12:08Z stefan $
|
2
|
-
// Copyright (C) 2002, International Business Machines
|
3
|
-
// Corporation and others. All Rights Reserved.
|
4
|
-
// This code is licensed under the terms of the Eclipse Public License (EPL).
|
5
|
-
|
6
|
-
// Edwin 11/10/2009-- carved out of CbcBranchActual
|
7
|
-
|
8
|
-
#ifndef CbcSimpleIntegerPseudoCost_H
|
9
|
-
#define CbcSimpleIntegerPseudoCost_H
|
10
|
-
|
11
|
-
#include "CbcSimpleInteger.hpp"
|
12
|
-
/// Define a single integer class but with pseudo costs
|
13
|
-
|
14
|
-
class CbcSimpleIntegerPseudoCost : public CbcSimpleInteger {
|
15
|
-
|
16
|
-
public:
|
17
|
-
|
18
|
-
// Default Constructor
|
19
|
-
CbcSimpleIntegerPseudoCost ();
|
20
|
-
|
21
|
-
// Useful constructor - passed model index
|
22
|
-
CbcSimpleIntegerPseudoCost (CbcModel * model, int iColumn, double breakEven = 0.5);
|
23
|
-
|
24
|
-
// Useful constructor - passed and model index and pseudo costs
|
25
|
-
CbcSimpleIntegerPseudoCost (CbcModel * model, int iColumn,
|
26
|
-
double downPseudoCost, double upPseudoCost);
|
27
|
-
// Useful constructor - passed and model index and pseudo costs
|
28
|
-
CbcSimpleIntegerPseudoCost (CbcModel * model, int dummy, int iColumn,
|
29
|
-
double downPseudoCost, double upPseudoCost);
|
30
|
-
|
31
|
-
// Copy constructor
|
32
|
-
CbcSimpleIntegerPseudoCost ( const CbcSimpleIntegerPseudoCost &);
|
33
|
-
|
34
|
-
/// Clone
|
35
|
-
virtual CbcObject * clone() const;
|
36
|
-
|
37
|
-
// Assignment operator
|
38
|
-
CbcSimpleIntegerPseudoCost & operator=( const CbcSimpleIntegerPseudoCost& rhs);
|
39
|
-
|
40
|
-
// Destructor
|
41
|
-
virtual ~CbcSimpleIntegerPseudoCost ();
|
42
|
-
|
43
|
-
/// Infeasibility - large is 0.5
|
44
|
-
virtual double infeasibility(const OsiBranchingInformation * info,
|
45
|
-
int &preferredWay) const;
|
46
|
-
|
47
|
-
/// Creates a branching object
|
48
|
-
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface * solver, const OsiBranchingInformation * info, int way) ;
|
49
|
-
|
50
|
-
/// Down pseudo cost
|
51
|
-
inline double downPseudoCost() const {
|
52
|
-
return downPseudoCost_;
|
53
|
-
}
|
54
|
-
/// Set down pseudo cost
|
55
|
-
inline void setDownPseudoCost(double value) {
|
56
|
-
downPseudoCost_ = value;
|
57
|
-
}
|
58
|
-
|
59
|
-
/// Up pseudo cost
|
60
|
-
inline double upPseudoCost() const {
|
61
|
-
return upPseudoCost_;
|
62
|
-
}
|
63
|
-
/// Set up pseudo cost
|
64
|
-
inline void setUpPseudoCost(double value) {
|
65
|
-
upPseudoCost_ = value;
|
66
|
-
}
|
67
|
-
|
68
|
-
/// Up down separator
|
69
|
-
inline double upDownSeparator() const {
|
70
|
-
return upDownSeparator_;
|
71
|
-
}
|
72
|
-
/// Set up down separator
|
73
|
-
inline void setUpDownSeparator(double value) {
|
74
|
-
upDownSeparator_ = value;
|
75
|
-
}
|
76
|
-
|
77
|
-
/// Return "up" estimate
|
78
|
-
virtual double upEstimate() const;
|
79
|
-
/// Return "down" estimate (default 1.0e-5)
|
80
|
-
virtual double downEstimate() const;
|
81
|
-
|
82
|
-
/// method - see below for details
|
83
|
-
inline int method() const {
|
84
|
-
return method_;
|
85
|
-
}
|
86
|
-
/// Set method
|
87
|
-
inline void setMethod(int value) {
|
88
|
-
method_ = value;
|
89
|
-
}
|
90
|
-
|
91
|
-
protected:
|
92
|
-
/// data
|
93
|
-
|
94
|
-
/// Down pseudo cost
|
95
|
-
double downPseudoCost_;
|
96
|
-
/// Up pseudo cost
|
97
|
-
double upPseudoCost_;
|
98
|
-
/** Up/down separator
|
99
|
-
If >0.0 then do first branch up if value-floor(value)
|
100
|
-
>= this value
|
101
|
-
*/
|
102
|
-
double upDownSeparator_;
|
103
|
-
/** Method -
|
104
|
-
0 - normal - return min (up,down)
|
105
|
-
1 - if before any solution return CoinMax(up,down)
|
106
|
-
2 - if before branched solution return CoinMax(up,down)
|
107
|
-
3 - always return CoinMax(up,down)
|
108
|
-
*/
|
109
|
-
int method_;
|
110
|
-
};
|
111
|
-
|
112
|
-
|
113
|
-
#endif
|
114
|
-
|
@@ -1,447 +0,0 @@
|
|
1
|
-
/* $Id: CbcSolver.hpp 1998 2013-12-19 18:11:05Z forrest $ */
|
2
|
-
// Copyright (C) 2007, International Business Machines
|
3
|
-
// Corporation and others. All Rights Reserved.
|
4
|
-
// This code is licensed under the terms of the Eclipse Public License (EPL).
|
5
|
-
|
6
|
-
|
7
|
-
/*! \file CbcSolver.hpp
|
8
|
-
\brief Defines CbcSolver, the proposed top-level class for the new-style
|
9
|
-
cbc solver.
|
10
|
-
|
11
|
-
This class is currently an orphan. With the removal of all code flagged
|
12
|
-
with the NEW_STYLE_SOLVER, this class is never instantiated (and cannot
|
13
|
-
be instantiated). It is available to be coopted as a top-level object
|
14
|
-
wrapping the current CbcMain0 and CbcMain1, should that appear to be a
|
15
|
-
desireable path forward. -- lh, 091211 --
|
16
|
-
*/
|
17
|
-
|
18
|
-
#ifndef CbcSolver_H
|
19
|
-
#define CbcSolver_H
|
20
|
-
|
21
|
-
#include <string>
|
22
|
-
#include <vector>
|
23
|
-
#include "CoinMessageHandler.hpp"
|
24
|
-
#include "OsiClpSolverInterface.hpp"
|
25
|
-
|
26
|
-
#if CBC_OTHER_SOLVER==1
|
27
|
-
#include "OsiCpxSolverInterface.hpp"
|
28
|
-
#endif
|
29
|
-
|
30
|
-
#include "CbcModel.hpp"
|
31
|
-
#include "CbcOrClpParam.hpp"
|
32
|
-
|
33
|
-
class CbcUser;
|
34
|
-
class CbcStopNow;
|
35
|
-
class CglCutGenerator;
|
36
|
-
|
37
|
-
//#############################################################################
|
38
|
-
|
39
|
-
/*! \brief This allows the use of the standalone solver in a flexible manner.
|
40
|
-
|
41
|
-
It has an original OsiClpSolverInterface and CbcModel which it can use
|
42
|
-
repeatedly, e.g., to get a heuristic solution and then start again.
|
43
|
-
|
44
|
-
So I [jjf] will need a primitive scripting language which can then call
|
45
|
-
solve and manipulate solution value and solution arrays.
|
46
|
-
|
47
|
-
Also provides for user callback functions. Currently two ideas in
|
48
|
-
gestation, CbcUser and CbcStopNow. The latter seems limited to deciding
|
49
|
-
whether or not to stop. The former seems completely general, with a notion
|
50
|
-
of importing and exporting, and a `solve', which should be interpreted as
|
51
|
-
`do whatever this user function does'.
|
52
|
-
|
53
|
-
Parameter initialisation is at last centralised in fillParameters().
|
54
|
-
*/
|
55
|
-
|
56
|
-
class CbcSolver {
|
57
|
-
|
58
|
-
public:
|
59
|
-
///@name Solve method
|
60
|
-
//@{
|
61
|
-
/** This takes a list of commands, does "stuff" and returns
|
62
|
-
returnMode -
|
63
|
-
0 model and solver untouched - babModel updated
|
64
|
-
1 model updated - just with solution basis etc
|
65
|
-
2 model updated i.e. as babModel (babModel NULL) (only use without preprocessing)
|
66
|
-
*/
|
67
|
-
int solve(int argc, const char * argv[], int returnMode);
|
68
|
-
/** This takes a list of commands, does "stuff" and returns
|
69
|
-
returnMode -
|
70
|
-
0 model and solver untouched - babModel updated
|
71
|
-
1 model updated - just with solution basis etc
|
72
|
-
2 model updated i.e. as babModel (babModel NULL) (only use without preprocessing)
|
73
|
-
*/
|
74
|
-
int solve(const char * input, int returnMode);
|
75
|
-
//@}
|
76
|
-
///@name Constructors and destructors etc
|
77
|
-
//@{
|
78
|
-
/// Default Constructor
|
79
|
-
CbcSolver();
|
80
|
-
|
81
|
-
/// Constructor from solver
|
82
|
-
CbcSolver(const OsiClpSolverInterface &);
|
83
|
-
|
84
|
-
/// Constructor from model
|
85
|
-
CbcSolver(const CbcModel &);
|
86
|
-
|
87
|
-
/** Copy constructor .
|
88
|
-
*/
|
89
|
-
CbcSolver(const CbcSolver & rhs);
|
90
|
-
|
91
|
-
/// Assignment operator
|
92
|
-
CbcSolver & operator=(const CbcSolver& rhs);
|
93
|
-
|
94
|
-
/// Destructor
|
95
|
-
~CbcSolver ();
|
96
|
-
/// Fill with standard parameters
|
97
|
-
void fillParameters();
|
98
|
-
/*! \brief Set default values in solvers from parameters
|
99
|
-
|
100
|
-
Misleading. The current code actually reads default values from
|
101
|
-
the underlying solvers and installs them as default values for a subset of
|
102
|
-
parameters in #parameters_.
|
103
|
-
*/
|
104
|
-
void fillValuesInSolver();
|
105
|
-
/// Add user function
|
106
|
-
void addUserFunction(CbcUser * function);
|
107
|
-
/// Set user call back
|
108
|
-
void setUserCallBack(CbcStopNow * function);
|
109
|
-
/// Add cut generator
|
110
|
-
void addCutGenerator(CglCutGenerator * generator);
|
111
|
-
//@}
|
112
|
-
///@name miscellaneous methods to line up with old
|
113
|
-
//@{
|
114
|
-
// analyze model
|
115
|
-
int * analyze(OsiClpSolverInterface * solverMod, int & numberChanged, double & increment,
|
116
|
-
bool changeInt, CoinMessageHandler * generalMessageHandler);
|
117
|
-
/** 1 - add heuristics to model
|
118
|
-
2 - do heuristics (and set cutoff and best solution)
|
119
|
-
3 - for miplib test so skip some
|
120
|
-
(out model later)
|
121
|
-
*/
|
122
|
-
//int doHeuristics(CbcModel * model, int type);
|
123
|
-
/** Updates model_ from babModel_ according to returnMode
|
124
|
-
returnMode -
|
125
|
-
0 model and solver untouched - babModel updated
|
126
|
-
1 model updated - just with solution basis etc
|
127
|
-
2 model updated i.e. as babModel (babModel NULL) (only use without preprocessing)
|
128
|
-
*/
|
129
|
-
void updateModel(ClpSimplex * model2, int returnMode);
|
130
|
-
//@}
|
131
|
-
///@name useful stuff
|
132
|
-
//@{
|
133
|
-
/// Get int value
|
134
|
-
int intValue(CbcOrClpParameterType type) const;
|
135
|
-
/// Set int value
|
136
|
-
void setIntValue(CbcOrClpParameterType type, int value);
|
137
|
-
/// Get double value
|
138
|
-
double doubleValue(CbcOrClpParameterType type) const;
|
139
|
-
/// Set double value
|
140
|
-
void setDoubleValue(CbcOrClpParameterType type, double value);
|
141
|
-
/// User function (NULL if no match)
|
142
|
-
CbcUser * userFunction(const char * name) const;
|
143
|
-
/// Return original Cbc model
|
144
|
-
inline CbcModel * model() {
|
145
|
-
return &model_;
|
146
|
-
}
|
147
|
-
/// Return updated Cbc model
|
148
|
-
inline CbcModel * babModel() {
|
149
|
-
return babModel_;
|
150
|
-
}
|
151
|
-
/// Number of userFunctions
|
152
|
-
inline int numberUserFunctions() const {
|
153
|
-
return numberUserFunctions_;
|
154
|
-
}
|
155
|
-
/// User function array
|
156
|
-
inline CbcUser ** userFunctionArray() const {
|
157
|
-
return userFunction_;
|
158
|
-
}
|
159
|
-
/// Copy of model on initial load (will contain output solutions)
|
160
|
-
inline OsiClpSolverInterface * originalSolver() const {
|
161
|
-
return originalSolver_;
|
162
|
-
}
|
163
|
-
/// Copy of model on initial load
|
164
|
-
inline CoinModel * originalCoinModel() const {
|
165
|
-
return originalCoinModel_;
|
166
|
-
}
|
167
|
-
/// Copy of model on initial load (will contain output solutions)
|
168
|
-
void setOriginalSolver(OsiClpSolverInterface * originalSolver);
|
169
|
-
/// Copy of model on initial load
|
170
|
-
void setOriginalCoinModel(CoinModel * originalCoinModel);
|
171
|
-
/// Number of cutgenerators
|
172
|
-
inline int numberCutGenerators() const {
|
173
|
-
return numberCutGenerators_;
|
174
|
-
}
|
175
|
-
/// Cut generator array
|
176
|
-
inline CglCutGenerator ** cutGeneratorArray() const {
|
177
|
-
return cutGenerator_;
|
178
|
-
}
|
179
|
-
/// Start time
|
180
|
-
inline double startTime() const {
|
181
|
-
return startTime_;
|
182
|
-
}
|
183
|
-
/// Whether to print to std::cout
|
184
|
-
inline void setPrinting(bool onOff) {
|
185
|
-
noPrinting_ = !onOff;
|
186
|
-
}
|
187
|
-
/// Where to start reading commands
|
188
|
-
inline void setReadMode(int value) {
|
189
|
-
readMode_ = value;
|
190
|
-
}
|
191
|
-
//@}
|
192
|
-
private:
|
193
|
-
///@name Private member data
|
194
|
-
//@{
|
195
|
-
|
196
|
-
/// Reference model
|
197
|
-
CbcModel model_;
|
198
|
-
|
199
|
-
/// Updated model
|
200
|
-
CbcModel * babModel_;
|
201
|
-
|
202
|
-
/// User functions
|
203
|
-
CbcUser ** userFunction_;
|
204
|
-
/** Status of user functions
|
205
|
-
0 - not used
|
206
|
-
1 - needs cbc_load
|
207
|
-
2 - available - data in coinModel
|
208
|
-
3 - data loaded - can do cbc_save
|
209
|
-
*/
|
210
|
-
int * statusUserFunction_;
|
211
|
-
/// Copy of model on initial load (will contain output solutions)
|
212
|
-
OsiClpSolverInterface * originalSolver_;
|
213
|
-
/// Copy of model on initial load
|
214
|
-
CoinModel * originalCoinModel_;
|
215
|
-
/// Cut generators
|
216
|
-
CglCutGenerator ** cutGenerator_;
|
217
|
-
/// Number of user functions
|
218
|
-
int numberUserFunctions_;
|
219
|
-
/// Number of cut generators
|
220
|
-
int numberCutGenerators_;
|
221
|
-
/// Stop now stuff
|
222
|
-
CbcStopNow * callBack_;
|
223
|
-
/// Cpu time at instantiation
|
224
|
-
double startTime_;
|
225
|
-
/// Parameters and values
|
226
|
-
CbcOrClpParam * parameters_;
|
227
|
-
/// Number of parameters
|
228
|
-
int numberParameters_ ;
|
229
|
-
/// Whether to do miplib test
|
230
|
-
bool doMiplib_;
|
231
|
-
/// Whether to print to std::cout
|
232
|
-
bool noPrinting_;
|
233
|
-
/// Where to start reading commands
|
234
|
-
int readMode_;
|
235
|
-
//@}
|
236
|
-
};
|
237
|
-
//#############################################################################
|
238
|
-
|
239
|
-
/// Structure to hold useful arrays
|
240
|
-
typedef struct {
|
241
|
-
// Priorities
|
242
|
-
int * priorities_;
|
243
|
-
// SOS priorities
|
244
|
-
int * sosPriority_;
|
245
|
-
// Direction to branch first
|
246
|
-
int * branchDirection_;
|
247
|
-
// Input solution
|
248
|
-
double * primalSolution_;
|
249
|
-
// Down pseudo costs
|
250
|
-
double * pseudoDown_;
|
251
|
-
// Up pseudo costs
|
252
|
-
double * pseudoUp_;
|
253
|
-
} CbcSolverUsefulData2;
|
254
|
-
|
255
|
-
//#############################################################################
|
256
|
-
|
257
|
-
/**
|
258
|
-
The CbcSolver class was taken out at a 9/12/09 meeting
|
259
|
-
This is a feeble replacement.
|
260
|
-
At present everything is public
|
261
|
-
*/
|
262
|
-
class CbcSolverUsefulData {
|
263
|
-
|
264
|
-
public:
|
265
|
-
///@name Constructors and destructors etc
|
266
|
-
//@{
|
267
|
-
/// Default Constructor
|
268
|
-
CbcSolverUsefulData();
|
269
|
-
|
270
|
-
/** Copy constructor .
|
271
|
-
*/
|
272
|
-
CbcSolverUsefulData(const CbcSolverUsefulData & rhs);
|
273
|
-
|
274
|
-
/// Assignment operator
|
275
|
-
CbcSolverUsefulData & operator=(const CbcSolverUsefulData& rhs);
|
276
|
-
|
277
|
-
/// Destructor
|
278
|
-
~CbcSolverUsefulData ();
|
279
|
-
//@}
|
280
|
-
|
281
|
-
///@name Member data
|
282
|
-
//@{
|
283
|
-
// For time
|
284
|
-
double totalTime_;
|
285
|
-
// Parameters
|
286
|
-
CbcOrClpParam parameters_[CBCMAXPARAMETERS];
|
287
|
-
// Printing
|
288
|
-
bool noPrinting_;
|
289
|
-
// Whether to use signal handler
|
290
|
-
bool useSignalHandler_;
|
291
|
-
// Number of Parameters
|
292
|
-
int numberParameters_;
|
293
|
-
// Default pump tuning
|
294
|
-
int initialPumpTune_;
|
295
|
-
//@}
|
296
|
-
};
|
297
|
-
/// And this uses it
|
298
|
-
// When we want to load up CbcModel with options first
|
299
|
-
void CbcMain0 (CbcModel & babSolver,CbcSolverUsefulData & solverData);
|
300
|
-
int CbcMain1 (int argc, const char *argv[], CbcModel & babSolver, int (CbcModel * currentSolver, int whereFrom),CbcSolverUsefulData & solverData);
|
301
|
-
|
302
|
-
//#############################################################################
|
303
|
-
|
304
|
-
/*! \brief A class to allow the use of unknown user functionality
|
305
|
-
|
306
|
-
For example, access to a modelling language (CbcAmpl).
|
307
|
-
*/
|
308
|
-
class CbcUser {
|
309
|
-
|
310
|
-
public:
|
311
|
-
///@name import/export methods
|
312
|
-
//@{
|
313
|
-
/*! \brief Import - gets full command arguments
|
314
|
-
|
315
|
-
\return
|
316
|
-
- -1 - no action
|
317
|
-
- 0 - data read in without error
|
318
|
-
- 1 - errors
|
319
|
-
*/
|
320
|
-
virtual int importData(CbcSolver * /*model*/, int & /*argc*/, char ** /*argv[]*/) {
|
321
|
-
return -1;
|
322
|
-
}
|
323
|
-
|
324
|
-
/*! \brief Export
|
325
|
-
|
326
|
-
Values for mode:
|
327
|
-
- 1 OsiClpSolver
|
328
|
-
- 2 CbcModel
|
329
|
-
- add 10 if infeasible from odd situation
|
330
|
-
*/
|
331
|
-
virtual void exportSolution(CbcSolver * /*model*/,
|
332
|
-
int /*mode*/, const char * /*message*/ = NULL) {}
|
333
|
-
|
334
|
-
/// Export Data (i.e. at very end)
|
335
|
-
virtual void exportData(CbcSolver * /*model*/) {}
|
336
|
-
|
337
|
-
/// Get useful stuff
|
338
|
-
virtual void fillInformation(CbcSolver * /*model*/,
|
339
|
-
CbcSolverUsefulData & /*info*/) {}
|
340
|
-
//@}
|
341
|
-
|
342
|
-
///@name usage methods
|
343
|
-
//@{
|
344
|
-
/// CoinModel if valid
|
345
|
-
inline CoinModel *coinModel() const {
|
346
|
-
return coinModel_;
|
347
|
-
}
|
348
|
-
/// Other info - needs expanding
|
349
|
-
virtual void * stuff() {
|
350
|
-
return NULL;
|
351
|
-
}
|
352
|
-
/// Name
|
353
|
-
inline std::string name() const {
|
354
|
-
return userName_;
|
355
|
-
}
|
356
|
-
/// Solve (whatever that means)
|
357
|
-
virtual void solve(CbcSolver * model, const char * options) = 0;
|
358
|
-
/// Returns true if function knows about option
|
359
|
-
virtual bool canDo(const char * options) = 0;
|
360
|
-
//@}
|
361
|
-
|
362
|
-
///@name Constructors and destructors etc
|
363
|
-
//@{
|
364
|
-
/// Default Constructor
|
365
|
-
CbcUser();
|
366
|
-
|
367
|
-
/// Copy constructor
|
368
|
-
CbcUser(const CbcUser & rhs);
|
369
|
-
|
370
|
-
/// Assignment operator
|
371
|
-
CbcUser & operator=(const CbcUser& rhs);
|
372
|
-
|
373
|
-
/// Clone
|
374
|
-
virtual CbcUser * clone() const = 0;
|
375
|
-
|
376
|
-
/// Destructor
|
377
|
-
virtual ~CbcUser ();
|
378
|
-
//@}
|
379
|
-
|
380
|
-
protected:
|
381
|
-
///@name Private member data
|
382
|
-
//@{
|
383
|
-
|
384
|
-
/// CoinModel
|
385
|
-
CoinModel * coinModel_;
|
386
|
-
|
387
|
-
/// Name of user function
|
388
|
-
std::string userName_;
|
389
|
-
|
390
|
-
//@}
|
391
|
-
};
|
392
|
-
//#############################################################################
|
393
|
-
|
394
|
-
/*! \brief Support the use of a call back class to decide whether to stop
|
395
|
-
|
396
|
-
Definitely under construction.
|
397
|
-
*/
|
398
|
-
|
399
|
-
class CbcStopNow {
|
400
|
-
|
401
|
-
public:
|
402
|
-
///@name Decision methods
|
403
|
-
//@{
|
404
|
-
/*! \brief Import
|
405
|
-
|
406
|
-
Values for whereFrom:
|
407
|
-
- 1 after initial solve by dualsimplex etc
|
408
|
-
- 2 after preprocessing
|
409
|
-
- 3 just before branchAndBound (so user can override)
|
410
|
-
- 4 just after branchAndBound (before postprocessing)
|
411
|
-
- 5 after postprocessing
|
412
|
-
- 6 after a user called heuristic phase
|
413
|
-
|
414
|
-
\return 0 if good
|
415
|
-
nonzero return code to stop
|
416
|
-
*/
|
417
|
-
virtual int callBack(CbcModel * /*currentSolver*/, int /*whereFrom*/) {
|
418
|
-
return 0;
|
419
|
-
}
|
420
|
-
//@}
|
421
|
-
|
422
|
-
///@name Constructors and destructors etc
|
423
|
-
//@{
|
424
|
-
/// Default Constructor
|
425
|
-
CbcStopNow();
|
426
|
-
|
427
|
-
/** Copy constructor .
|
428
|
-
*/
|
429
|
-
CbcStopNow(const CbcStopNow & rhs);
|
430
|
-
|
431
|
-
/// Assignment operator
|
432
|
-
CbcStopNow & operator=(const CbcStopNow& rhs);
|
433
|
-
|
434
|
-
/// Clone
|
435
|
-
virtual CbcStopNow * clone() const;
|
436
|
-
|
437
|
-
/// Destructor
|
438
|
-
virtual ~CbcStopNow ();
|
439
|
-
//@}
|
440
|
-
|
441
|
-
private:
|
442
|
-
///@name Private member data
|
443
|
-
//@{
|
444
|
-
//@}
|
445
|
-
};
|
446
|
-
#endif
|
447
|
-
|