casadi 3.6.3__cp35-none-manylinux2010_x86_64.whl → 3.6.5__cp35-none-manylinux2010_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- casadi/_casadi.so +0 -0
- casadi/casadi.py +415 -260
- casadi/cbc +0 -0
- casadi/clp +0 -0
- casadi/cmake/casadi-config-version.cmake +1 -1
- casadi/include/casadi/casadi.i +43 -18
- casadi/include/casadi/config.h +6 -6
- casadi/include/casadi/core/calculus.hpp +1 -1
- casadi/include/casadi/core/code_generator.hpp +29 -1
- casadi/include/casadi/core/core.hpp +1 -0
- casadi/include/casadi/core/fmu.hpp +29 -1
- casadi/include/casadi/core/generic_expression.hpp +1 -1
- casadi/include/casadi/core/generic_type.hpp +25 -1
- casadi/include/casadi/core/matrix_decl.hpp +15 -0
- casadi/include/casadi/core/nlpsol.hpp +0 -2
- casadi/include/casadi/core/runtime/casadi_nlp.hpp +131 -6
- casadi/include/casadi/core/runtime/casadi_sqpmethod.hpp +11 -1
- casadi/include/casadi/core/serializing_stream.hpp +12 -0
- casadi/include/casadi/core/sparsity.hpp +5 -3
- casadi/include/casadi/core/tools.hpp +67 -0
- casadi/include/casadi/doc.i +1457 -825
- casadi/include/casadi/doc_merged.i +1089 -570
- casadi/include/coin/BonArraysHelpers.hpp +52 -0
- casadi/include/coin/BonAuxInfos.hpp +110 -0
- casadi/include/coin/BonBabInfos.hpp +57 -0
- casadi/include/coin/BonBabSetupBase.hpp +386 -0
- casadi/include/coin/BonBonminSetup.hpp +95 -0
- casadi/include/coin/BonBranchingTQP.hpp +197 -0
- casadi/include/coin/BonCbc.hpp +127 -0
- casadi/include/coin/BonCbcLpStrategy.hpp +45 -0
- casadi/include/coin/BonCbcNlpStrategy.hpp +98 -0
- casadi/include/coin/BonCbcNode.hpp +133 -0
- casadi/include/coin/BonChooseVariable.hpp +345 -0
- casadi/include/coin/BonCurvBranchingSolver.hpp +77 -0
- casadi/include/coin/BonCutStrengthener.hpp +244 -0
- casadi/include/coin/BonDiver.hpp +424 -0
- casadi/include/coin/BonDummyHeuristic.hpp +53 -0
- casadi/include/coin/BonDummyPump.hpp +43 -0
- casadi/include/coin/BonEcpCuts.hpp +97 -0
- casadi/include/coin/BonExitCodes.hpp +12 -0
- casadi/include/coin/BonFixAndSolveHeuristic.hpp +43 -0
- casadi/include/coin/BonGuessHeuristic.hpp +46 -0
- casadi/include/coin/BonHeuristicDive.hpp +88 -0
- casadi/include/coin/BonHeuristicDiveFractional.hpp +67 -0
- casadi/include/coin/BonHeuristicDiveMIP.hpp +83 -0
- casadi/include/coin/BonHeuristicDiveMIPFractional.hpp +67 -0
- casadi/include/coin/BonHeuristicDiveMIPVectorLength.hpp +74 -0
- casadi/include/coin/BonHeuristicDiveVectorLength.hpp +74 -0
- casadi/include/coin/BonHeuristicFPump.hpp +111 -0
- casadi/include/coin/BonHeuristicLocalBranching.hpp +59 -0
- casadi/include/coin/BonHeuristicRINS.hpp +55 -0
- casadi/include/coin/BonIpoptInteriorWarmStarter.hpp +103 -0
- casadi/include/coin/BonIpoptSolver.hpp +188 -0
- casadi/include/coin/BonIpoptWarmStart.hpp +148 -0
- casadi/include/coin/BonLinearCutsGenerator.hpp +75 -0
- casadi/include/coin/BonLocalSolverBasedHeuristic.hpp +102 -0
- casadi/include/coin/BonLpBranchingSolver.hpp +80 -0
- casadi/include/coin/BonMilpRounding.hpp +74 -0
- casadi/include/coin/BonOACutGenerator2.hpp +56 -0
- casadi/include/coin/BonOAMessages.hpp +44 -0
- casadi/include/coin/BonOaDecBase.hpp +297 -0
- casadi/include/coin/BonOaFeasChecker.hpp +73 -0
- casadi/include/coin/BonOaNlpOptim.hpp +116 -0
- casadi/include/coin/BonOsiTMINLPInterface.hpp +1342 -0
- casadi/include/coin/BonOuterApprox.hpp +123 -0
- casadi/include/coin/BonPseudoCosts.hpp +91 -0
- casadi/include/coin/BonPumpForMinlp.hpp +45 -0
- casadi/include/coin/BonQuadCut.hpp +217 -0
- casadi/include/coin/BonQuadRow.hpp +122 -0
- casadi/include/coin/BonRegisteredOptions.hpp +225 -0
- casadi/include/coin/BonStrongBranchingSolver.hpp +69 -0
- casadi/include/coin/BonSubMipSolver.hpp +143 -0
- casadi/include/coin/BonTMINLP.hpp +420 -0
- casadi/include/coin/BonTMINLP2OsiLP.hpp +164 -0
- casadi/include/coin/BonTMINLP2Quad.hpp +191 -0
- casadi/include/coin/BonTMINLP2TNLP.hpp +509 -0
- casadi/include/coin/BonTMINLPLinObj.hpp +216 -0
- casadi/include/coin/BonTMatrix.hpp +167 -0
- casadi/include/coin/BonTNLP2FPNLP.hpp +264 -0
- casadi/include/coin/BonTNLPSolver.hpp +241 -0
- casadi/include/coin/BonTypes.hpp +95 -0
- casadi/include/coin/BonminConfig.h +19 -0
- casadi/include/coin/CbcBranchActual.hpp +26 -0
- casadi/include/coin/CbcBranchAllDifferent.hpp +61 -0
- casadi/include/coin/CbcBranchBase.hpp +79 -0
- casadi/include/coin/CbcBranchCut.hpp +182 -0
- casadi/include/coin/CbcBranchDecision.hpp +135 -0
- casadi/include/coin/CbcBranchDefaultDecision.hpp +101 -0
- casadi/include/coin/CbcBranchDynamic.hpp +210 -0
- casadi/include/coin/CbcBranchLotsize.hpp +249 -0
- casadi/include/coin/CbcBranchToFixLots.hpp +94 -0
- casadi/include/coin/CbcBranchingObject.hpp +245 -0
- casadi/include/coin/CbcClique.hpp +309 -0
- casadi/include/coin/CbcCompare.hpp +46 -0
- casadi/include/coin/CbcCompareActual.hpp +16 -0
- casadi/include/coin/CbcCompareBase.hpp +155 -0
- casadi/include/coin/CbcCompareDefault.hpp +129 -0
- casadi/include/coin/CbcCompareDepth.hpp +48 -0
- casadi/include/coin/CbcCompareEstimate.hpp +48 -0
- casadi/include/coin/CbcCompareObjective.hpp +50 -0
- casadi/include/coin/CbcConfig.h +18 -0
- casadi/include/coin/CbcConsequence.hpp +50 -0
- casadi/include/coin/CbcCountRowCut.hpp +176 -0
- casadi/include/coin/CbcCutGenerator.hpp +550 -0
- casadi/include/coin/CbcCutModifier.hpp +59 -0
- casadi/include/coin/CbcCutSubsetModifier.hpp +69 -0
- casadi/include/coin/CbcDummyBranchingObject.hpp +83 -0
- casadi/include/coin/CbcEventHandler.hpp +250 -0
- casadi/include/coin/CbcFathom.hpp +136 -0
- casadi/include/coin/CbcFathomDynamicProgramming.hpp +177 -0
- casadi/include/coin/CbcFeasibilityBase.hpp +60 -0
- casadi/include/coin/CbcFixVariable.hpp +68 -0
- casadi/include/coin/CbcFollowOn.hpp +207 -0
- casadi/include/coin/CbcFullNodeInfo.hpp +171 -0
- casadi/include/coin/CbcGeneral.hpp +60 -0
- casadi/include/coin/CbcGeneralDepth.hpp +289 -0
- casadi/include/coin/CbcHeuristic.hpp +735 -0
- casadi/include/coin/CbcHeuristicDINS.hpp +98 -0
- casadi/include/coin/CbcHeuristicDW.hpp +374 -0
- casadi/include/coin/CbcHeuristicDive.hpp +198 -0
- casadi/include/coin/CbcHeuristicDiveCoefficient.hpp +52 -0
- casadi/include/coin/CbcHeuristicDiveFractional.hpp +52 -0
- casadi/include/coin/CbcHeuristicDiveGuided.hpp +55 -0
- casadi/include/coin/CbcHeuristicDiveLineSearch.hpp +52 -0
- casadi/include/coin/CbcHeuristicDivePseudoCost.hpp +60 -0
- casadi/include/coin/CbcHeuristicDiveVectorLength.hpp +52 -0
- casadi/include/coin/CbcHeuristicFPump.hpp +375 -0
- casadi/include/coin/CbcHeuristicGreedy.hpp +289 -0
- casadi/include/coin/CbcHeuristicLocal.hpp +276 -0
- casadi/include/coin/CbcHeuristicPivotAndFix.hpp +58 -0
- casadi/include/coin/CbcHeuristicRENS.hpp +79 -0
- casadi/include/coin/CbcHeuristicRINS.hpp +106 -0
- casadi/include/coin/CbcHeuristicRandRound.hpp +58 -0
- casadi/include/coin/CbcHeuristicVND.hpp +95 -0
- casadi/include/coin/CbcLinked.hpp +1443 -0
- casadi/include/coin/CbcMessage.hpp +94 -0
- casadi/include/coin/CbcMipStartIO.hpp +29 -0
- casadi/include/coin/CbcModel.hpp +3296 -0
- casadi/include/coin/CbcNWay.hpp +171 -0
- casadi/include/coin/CbcNode.hpp +380 -0
- casadi/include/coin/CbcNodeInfo.hpp +377 -0
- casadi/include/coin/CbcObject.hpp +288 -0
- casadi/include/coin/CbcObjectUpdateData.hpp +63 -0
- casadi/include/coin/CbcOrClpParam.cpp +4321 -0
- casadi/include/coin/CbcOrClpParam.hpp +585 -0
- casadi/include/coin/CbcParam.hpp +338 -0
- casadi/include/coin/CbcPartialNodeInfo.hpp +116 -0
- casadi/include/coin/CbcSOS.hpp +290 -0
- casadi/include/coin/CbcSimpleInteger.hpp +299 -0
- casadi/include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp +619 -0
- casadi/include/coin/CbcSimpleIntegerPseudoCost.hpp +122 -0
- casadi/include/coin/CbcSolver.hpp +460 -0
- casadi/include/coin/CbcStrategy.hpp +269 -0
- casadi/include/coin/CbcSubProblem.hpp +84 -0
- casadi/include/coin/CbcTree.hpp +493 -0
- casadi/include/coin/CbcTreeLocal.hpp +393 -0
- casadi/include/coin/Cbc_C_Interface.h +904 -0
- casadi/include/coin/Cgl012cut.hpp +464 -0
- casadi/include/coin/CglAllDifferent.hpp +115 -0
- casadi/include/coin/CglClique.hpp +312 -0
- casadi/include/coin/CglConfig.h +19 -0
- casadi/include/coin/CglCutGenerator.hpp +133 -0
- casadi/include/coin/CglDuplicateRow.hpp +189 -0
- casadi/include/coin/CglFlowCover.hpp +371 -0
- casadi/include/coin/CglGMI.hpp +364 -0
- casadi/include/coin/CglGMIParam.hpp +313 -0
- casadi/include/coin/CglGomory.hpp +204 -0
- casadi/include/coin/CglKnapsackCover.hpp +310 -0
- casadi/include/coin/CglLandP.hpp +306 -0
- casadi/include/coin/CglLandPValidator.hpp +130 -0
- casadi/include/coin/CglLiftAndProject.hpp +104 -0
- casadi/include/coin/CglMessage.hpp +49 -0
- casadi/include/coin/CglMixedIntegerRounding.hpp +429 -0
- casadi/include/coin/CglMixedIntegerRounding2.hpp +427 -0
- casadi/include/coin/CglOddHole.hpp +160 -0
- casadi/include/coin/CglParam.hpp +93 -0
- casadi/include/coin/CglPreProcess.hpp +600 -0
- casadi/include/coin/CglProbing.hpp +543 -0
- casadi/include/coin/CglRedSplit.hpp +448 -0
- casadi/include/coin/CglRedSplit2.hpp +494 -0
- casadi/include/coin/CglRedSplit2Param.hpp +495 -0
- casadi/include/coin/CglRedSplitParam.hpp +272 -0
- casadi/include/coin/CglResidualCapacity.hpp +240 -0
- casadi/include/coin/CglSimpleRounding.hpp +174 -0
- casadi/include/coin/CglStored.hpp +140 -0
- casadi/include/coin/CglTreeInfo.hpp +216 -0
- casadi/include/coin/CglTwomir.hpp +562 -0
- casadi/include/coin/CglZeroHalf.hpp +133 -0
- casadi/include/coin/ClpAmplObjective.hpp +113 -0
- casadi/include/coin/ClpCholeskyBase.hpp +321 -0
- casadi/include/coin/ClpCholeskyDense.hpp +157 -0
- casadi/include/coin/ClpCholeskyMumps.hpp +65 -0
- casadi/include/coin/ClpCholeskyPardiso.hpp +67 -0
- casadi/include/coin/ClpConfig.h +17 -0
- casadi/include/coin/ClpConstraint.hpp +129 -0
- casadi/include/coin/ClpConstraintAmpl.hpp +109 -0
- casadi/include/coin/ClpConstraintLinear.hpp +113 -0
- casadi/include/coin/ClpConstraintQuadratic.hpp +123 -0
- casadi/include/coin/ClpDualRowDantzig.hpp +72 -0
- casadi/include/coin/ClpDualRowPivot.hpp +136 -0
- casadi/include/coin/ClpDualRowSteepest.hpp +160 -0
- casadi/include/coin/ClpDummyMatrix.hpp +186 -0
- casadi/include/coin/ClpDynamicExampleMatrix.hpp +199 -0
- casadi/include/coin/ClpDynamicMatrix.hpp +420 -0
- casadi/include/coin/ClpEventHandler.hpp +193 -0
- casadi/include/coin/ClpFactorization.hpp +556 -0
- casadi/include/coin/ClpGubDynamicMatrix.hpp +270 -0
- casadi/include/coin/ClpGubMatrix.hpp +373 -0
- casadi/include/coin/ClpInterior.hpp +622 -0
- casadi/include/coin/ClpLinearObjective.hpp +104 -0
- casadi/include/coin/ClpMatrixBase.hpp +561 -0
- casadi/include/coin/ClpMessage.hpp +131 -0
- casadi/include/coin/ClpModel.hpp +1442 -0
- casadi/include/coin/ClpNetworkMatrix.hpp +235 -0
- casadi/include/coin/ClpNode.hpp +364 -0
- casadi/include/coin/ClpNonLinearCost.hpp +432 -0
- casadi/include/coin/ClpObjective.hpp +142 -0
- casadi/include/coin/ClpPEDualRowDantzig.hpp +84 -0
- casadi/include/coin/ClpPEDualRowSteepest.hpp +100 -0
- casadi/include/coin/ClpPEPrimalColumnDantzig.hpp +71 -0
- casadi/include/coin/ClpPEPrimalColumnSteepest.hpp +107 -0
- casadi/include/coin/ClpPESimplex.hpp +231 -0
- casadi/include/coin/ClpPackedMatrix.hpp +778 -0
- casadi/include/coin/ClpParameters.hpp +132 -0
- casadi/include/coin/ClpPdcoBase.hpp +110 -0
- casadi/include/coin/ClpPlusMinusOneMatrix.hpp +565 -0
- casadi/include/coin/ClpPresolve.hpp +379 -0
- casadi/include/coin/ClpPrimalColumnDantzig.hpp +74 -0
- casadi/include/coin/ClpPrimalColumnPivot.hpp +163 -0
- casadi/include/coin/ClpPrimalColumnSteepest.hpp +281 -0
- casadi/include/coin/ClpQuadraticObjective.hpp +161 -0
- casadi/include/coin/ClpSimplex.hpp +2137 -0
- casadi/include/coin/ClpSimplexDual.hpp +304 -0
- casadi/include/coin/ClpSimplexNonlinear.hpp +117 -0
- casadi/include/coin/ClpSimplexOther.hpp +282 -0
- casadi/include/coin/ClpSimplexPrimal.hpp +244 -0
- casadi/include/coin/ClpSolve.hpp +505 -0
- casadi/include/coin/Clp_C_Interface.h +554 -0
- casadi/include/coin/CoinAlloc.hpp +179 -0
- casadi/include/coin/CoinBuild.hpp +159 -0
- casadi/include/coin/CoinDenseFactorization.hpp +452 -0
- casadi/include/coin/CoinDenseVector.hpp +401 -0
- casadi/include/coin/CoinDistance.hpp +51 -0
- casadi/include/coin/CoinError.hpp +274 -0
- casadi/include/coin/CoinFactorization.hpp +2178 -0
- casadi/include/coin/CoinFileIO.hpp +185 -0
- casadi/include/coin/CoinFinite.hpp +37 -0
- casadi/include/coin/CoinFloatEqual.hpp +204 -0
- casadi/include/coin/CoinHelperFunctions.hpp +1270 -0
- casadi/include/coin/CoinIndexedVector.hpp +1437 -0
- casadi/include/coin/CoinLpIO.hpp +836 -0
- casadi/include/coin/CoinMessage.hpp +95 -0
- casadi/include/coin/CoinMessageHandler.hpp +717 -0
- casadi/include/coin/CoinModel.hpp +1214 -0
- casadi/include/coin/CoinModelUseful.hpp +518 -0
- casadi/include/coin/CoinMpsIO.hpp +1142 -0
- casadi/include/coin/CoinOslFactorization.hpp +287 -0
- casadi/include/coin/CoinPackedMatrix.hpp +956 -0
- casadi/include/coin/CoinPackedVector.hpp +670 -0
- casadi/include/coin/CoinPackedVectorBase.hpp +274 -0
- casadi/include/coin/CoinParam.hpp +644 -0
- casadi/include/coin/CoinPragma.hpp +29 -0
- casadi/include/coin/CoinPresolveDoubleton.hpp +76 -0
- casadi/include/coin/CoinPresolveDual.hpp +84 -0
- casadi/include/coin/CoinPresolveDupcol.hpp +259 -0
- casadi/include/coin/CoinPresolveEmpty.hpp +120 -0
- casadi/include/coin/CoinPresolveFixed.hpp +185 -0
- casadi/include/coin/CoinPresolveForcing.hpp +69 -0
- casadi/include/coin/CoinPresolveImpliedFree.hpp +66 -0
- casadi/include/coin/CoinPresolveIsolated.hpp +59 -0
- casadi/include/coin/CoinPresolveMatrix.hpp +1996 -0
- casadi/include/coin/CoinPresolveMonitor.hpp +105 -0
- casadi/include/coin/CoinPresolvePsdebug.hpp +169 -0
- casadi/include/coin/CoinPresolveSingleton.hpp +115 -0
- casadi/include/coin/CoinPresolveSubst.hpp +103 -0
- casadi/include/coin/CoinPresolveTighten.hpp +58 -0
- casadi/include/coin/CoinPresolveTripleton.hpp +69 -0
- casadi/include/coin/CoinPresolveUseless.hpp +63 -0
- casadi/include/coin/CoinPresolveZeros.hpp +65 -0
- casadi/include/coin/CoinRational.hpp +43 -0
- casadi/include/coin/CoinSearchTree.hpp +523 -0
- casadi/include/coin/CoinShallowPackedVector.hpp +149 -0
- casadi/include/coin/CoinSignal.hpp +127 -0
- casadi/include/coin/CoinSimpFactorization.hpp +432 -0
- casadi/include/coin/CoinSmartPtr.hpp +548 -0
- casadi/include/coin/CoinSnapshot.hpp +572 -0
- casadi/include/coin/CoinSort.hpp +753 -0
- casadi/include/coin/CoinStructuredModel.hpp +270 -0
- casadi/include/coin/CoinTime.hpp +350 -0
- casadi/include/coin/CoinTypes.hpp +67 -0
- casadi/include/coin/CoinUtility.hpp +26 -0
- casadi/include/coin/CoinUtilsConfig.h +34 -0
- casadi/include/coin/CoinWarmStart.hpp +56 -0
- casadi/include/coin/CoinWarmStartBasis.hpp +468 -0
- casadi/include/coin/CoinWarmStartDual.hpp +180 -0
- casadi/include/coin/CoinWarmStartPrimalDual.hpp +233 -0
- casadi/include/coin/CoinWarmStartVector.hpp +523 -0
- casadi/include/coin/Coin_C_defines.h +149 -0
- casadi/include/coin/Idiot.hpp +327 -0
- casadi/include/coin/OsiAuxInfo.hpp +261 -0
- casadi/include/coin/OsiBranchingObject.hpp +1097 -0
- casadi/include/coin/OsiCbcSolverInterface.hpp +791 -0
- casadi/include/coin/OsiChooseVariable.hpp +645 -0
- casadi/include/coin/OsiClpSolverInterface.hpp +1604 -0
- casadi/include/coin/OsiColCut.hpp +322 -0
- casadi/include/coin/OsiCollections.hpp +34 -0
- casadi/include/coin/OsiConfig.h +19 -0
- casadi/include/coin/OsiCut.hpp +251 -0
- casadi/include/coin/OsiCuts.hpp +505 -0
- casadi/include/coin/OsiPresolve.hpp +272 -0
- casadi/include/coin/OsiRowCut.hpp +345 -0
- casadi/include/coin/OsiRowCutDebugger.hpp +190 -0
- casadi/include/coin/OsiSolverBranch.hpp +169 -0
- casadi/include/coin/OsiSolverInterface.hpp +2221 -0
- casadi/include/coin/OsiSolverParameters.hpp +144 -0
- casadi/include/coin/OsiUnitTests.hpp +390 -0
- casadi/include/coin-or/IpAlgBuilder.hpp +417 -0
- casadi/include/coin-or/IpAlgStrategy.hpp +201 -0
- casadi/include/coin-or/IpAlgTypes.hpp +64 -0
- casadi/include/coin-or/IpAugSystemSolver.hpp +212 -0
- casadi/include/coin-or/IpBlas.hpp +426 -0
- casadi/include/coin-or/IpCachedResults.hpp +897 -0
- casadi/include/coin-or/IpCompoundMatrix.hpp +423 -0
- casadi/include/coin-or/IpCompoundSymMatrix.hpp +348 -0
- casadi/include/coin-or/IpCompoundVector.hpp +395 -0
- casadi/include/coin-or/IpConvCheck.hpp +97 -0
- casadi/include/coin-or/IpDebug.hpp +167 -0
- casadi/include/coin-or/IpDenseVector.hpp +626 -0
- casadi/include/coin-or/IpDiagMatrix.hpp +158 -0
- casadi/include/coin-or/IpEqMultCalculator.hpp +76 -0
- casadi/include/coin-or/IpException.hpp +156 -0
- casadi/include/coin-or/IpExpansionMatrix.hpp +245 -0
- casadi/include/coin-or/IpGenTMatrix.hpp +290 -0
- casadi/include/coin-or/IpHessianUpdater.hpp +73 -0
- casadi/include/coin-or/IpIdentityMatrix.hpp +167 -0
- casadi/include/coin-or/IpIpoptAlg.hpp +257 -0
- casadi/include/coin-or/IpIpoptApplication.hpp +367 -0
- casadi/include/coin-or/IpIpoptCalculatedQuantities.hpp +1009 -0
- casadi/include/coin-or/IpIpoptData.hpp +966 -0
- casadi/include/coin-or/IpIpoptNLP.hpp +328 -0
- casadi/include/coin-or/IpIterateInitializer.hpp +68 -0
- casadi/include/coin-or/IpIteratesVector.hpp +840 -0
- casadi/include/coin-or/IpIterationOutput.hpp +78 -0
- casadi/include/coin-or/IpJournalist.hpp +573 -0
- casadi/include/coin-or/IpLapack.hpp +227 -0
- casadi/include/coin-or/IpLibraryLoader.hpp +76 -0
- casadi/include/coin-or/IpLineSearch.hpp +106 -0
- casadi/include/coin-or/IpLinearSolvers.h +46 -0
- casadi/include/coin-or/IpMatrix.hpp +434 -0
- casadi/include/coin-or/IpMuUpdate.hpp +77 -0
- casadi/include/coin-or/IpNLP.hpp +306 -0
- casadi/include/coin-or/IpNLPScaling.hpp +582 -0
- casadi/include/coin-or/IpObserver.hpp +422 -0
- casadi/include/coin-or/IpOptionsList.hpp +412 -0
- casadi/include/coin-or/IpOrigIpoptNLP.hpp +603 -0
- casadi/include/coin-or/IpPDSystemSolver.hpp +137 -0
- casadi/include/coin-or/IpReferenced.hpp +262 -0
- casadi/include/coin-or/IpRegOptions.hpp +1152 -0
- casadi/include/coin-or/IpReturnCodes.h +23 -0
- casadi/include/coin-or/IpReturnCodes.hpp +18 -0
- casadi/include/coin-or/IpReturnCodes.inc +71 -0
- casadi/include/coin-or/IpReturnCodes_inc.h +45 -0
- casadi/include/coin-or/IpScaledMatrix.hpp +291 -0
- casadi/include/coin-or/IpSearchDirCalculator.hpp +72 -0
- casadi/include/coin-or/IpSmartPtr.hpp +865 -0
- casadi/include/coin-or/IpSolveStatistics.hpp +210 -0
- casadi/include/coin-or/IpSparseSymLinearSolverInterface.hpp +260 -0
- casadi/include/coin-or/IpStdAugSystemSolver.cpp +555 -0
- casadi/include/coin-or/IpStdCInterface.h +428 -0
- casadi/include/coin-or/IpSumSymMatrix.hpp +186 -0
- casadi/include/coin-or/IpSymLinearSolver.hpp +141 -0
- casadi/include/coin-or/IpSymMatrix.hpp +167 -0
- casadi/include/coin-or/IpSymScaledMatrix.hpp +255 -0
- casadi/include/coin-or/IpSymTMatrix.hpp +275 -0
- casadi/include/coin-or/IpTNLP.hpp +820 -0
- casadi/include/coin-or/IpTNLPAdapter.hpp +648 -0
- casadi/include/coin-or/IpTNLPReducer.hpp +274 -0
- casadi/include/coin-or/IpTaggedObject.hpp +128 -0
- casadi/include/coin-or/IpTimedTask.hpp +218 -0
- casadi/include/coin-or/IpTimingStatistics.hpp +323 -0
- casadi/include/coin-or/IpTripletHelper.hpp +308 -0
- casadi/include/coin-or/IpTypes.h +81 -0
- casadi/include/coin-or/IpTypes.hpp +30 -0
- casadi/include/coin-or/IpUtils.hpp +166 -0
- casadi/include/coin-or/IpVector.hpp +892 -0
- casadi/include/coin-or/IpZeroSymMatrix.hpp +155 -0
- casadi/include/coin-or/IpoptConfig.h +45 -0
- casadi/include/coin-or/SensAlgorithm.hpp +114 -0
- casadi/include/coin-or/SensApplication.hpp +188 -0
- casadi/include/coin-or/SensBacksolver.hpp +36 -0
- casadi/include/coin-or/SensMeasurement.hpp +56 -0
- casadi/include/coin-or/SensPCalculator.hpp +137 -0
- casadi/include/coin-or/SensRegOp.hpp +21 -0
- casadi/include/coin-or/SensSchurData.hpp +182 -0
- casadi/include/coin-or/SensSchurDriver.hpp +118 -0
- casadi/include/coin-or/SensSimpleBacksolver.hpp +49 -0
- casadi/include/coin-or/SensStepCalc.hpp +85 -0
- casadi/include/coin-or/SensUtils.hpp +63 -0
- casadi/include/coin-or/metis/defs.h +161 -0
- casadi/include/coin-or/metis/macros.h +143 -0
- casadi/include/coin-or/metis/metis.h +37 -0
- casadi/include/coin-or/metis/proto.h +505 -0
- casadi/include/coin-or/metis/rename.h +418 -0
- casadi/include/coin-or/metis/struct.h +251 -0
- casadi/include/coin-or/mumps/dmumps_c.h +142 -0
- casadi/include/coin-or/mumps/mumps_c_types.h +72 -0
- casadi/include/coin-or/mumps/mumps_compat.h +27 -0
- casadi/include/coin-or/mumps/mumps_int_def.h +11 -0
- casadi/include/coin-or/mumps/mumps_mpi.h +67 -0
- casadi/include/d_blas.h +78 -0
- casadi/include/d_blas_64.h +73 -0
- casadi/include/openblas/cblas.h +411 -0
- casadi/include/openblas/f77blas.h +796 -0
- casadi/include/openblas/lapack.h +22997 -0
- casadi/include/openblas/lapacke.h +12665 -0
- casadi/include/openblas/lapacke_config.h +119 -0
- casadi/include/openblas/lapacke_example_aux.h +9 -0
- casadi/include/openblas/lapacke_mangling.h +17 -0
- casadi/include/openblas/lapacke_utils.h +582 -0
- casadi/include/openblas/openblas/lapacke_mangling.h +17 -0
- casadi/include/openblas/openblas_config.h +139 -0
- casadi/include/qdldl/qdldl.h +169 -0
- casadi/include/qdldl/qdldl_types.h +23 -0
- casadi/include/s_blas.h +78 -0
- casadi/include/s_blas_64.h +73 -0
- casadi/lib64/libtinyxml2.a +0 -0
- casadi/libCbc.la +3 -3
- casadi/libCbc.so +0 -0
- casadi/libCbc.so.3 +0 -0
- casadi/libCbc.so.3.10.11 +0 -0
- casadi/libCbcSolver.la +3 -3
- casadi/libCbcSolver.so +0 -0
- casadi/libCbcSolver.so.3 +0 -0
- casadi/libCbcSolver.so.3.10.11 +0 -0
- casadi/libCgl.la +2 -2
- casadi/libCgl.so +0 -0
- casadi/libCgl.so.1 +0 -0
- casadi/libCgl.so.1.10.8 +0 -0
- casadi/libClp.la +2 -2
- casadi/libClp.so +0 -0
- casadi/libClp.so.1 +0 -0
- casadi/libClp.so.1.14.9 +0 -0
- casadi/libClpSolver.la +2 -2
- casadi/libClpSolver.so +0 -0
- casadi/libClpSolver.so.1 +0 -0
- casadi/{libClpSolver.so.1.14.7 → libClpSolver.so.1.14.9} +0 -0
- casadi/libCoinUtils.la +2 -2
- casadi/libCoinUtils.so +0 -0
- casadi/libCoinUtils.so.3 +0 -0
- casadi/libCoinUtils.so.3.11.10 +0 -0
- casadi/libOsi.la +2 -2
- casadi/libOsiCbc.la +3 -3
- casadi/libOsiCbc.so +0 -0
- casadi/libOsiCbc.so.3 +0 -0
- casadi/{libOsiCbc.so.3.10.6 → libOsiCbc.so.3.10.11} +0 -0
- casadi/libOsiClp.la +2 -2
- casadi/libOsiClp.so +0 -0
- casadi/libOsiClp.so.1 +0 -0
- casadi/libOsiClp.so.1.14.9 +0 -0
- casadi/libOsiCommonTests.la +2 -2
- casadi/libOsiCommonTests.so +0 -0
- casadi/libOsiCommonTests.so.1 +0 -0
- casadi/{libOsiCommonTests.so.1.13.7 → libOsiCommonTests.so.1.13.9} +0 -0
- casadi/libbonmin.la +3 -3
- casadi/libbonmin.so +0 -0
- casadi/libbonmin.so.4 +0 -0
- casadi/libbonmin.so.4.8.9 +0 -0
- casadi/libcasadi.so +0 -0
- casadi/libcasadi.so.3.7 +0 -0
- casadi/libcasadi_conic_cbc.so +0 -0
- casadi/libcasadi_conic_cbc.so.3.7 +0 -0
- casadi/libcasadi_conic_clp.so +0 -0
- casadi/libcasadi_conic_clp.so.3.7 +0 -0
- casadi/libcasadi_conic_cplex.so +0 -0
- casadi/libcasadi_conic_cplex.so.3.7 +0 -0
- casadi/libcasadi_conic_gurobi.so +0 -0
- casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
- casadi/libcasadi_conic_hpipm.so +0 -0
- casadi/libcasadi_conic_hpipm.so.3.7 +0 -0
- casadi/libcasadi_conic_ipqp.so +0 -0
- casadi/libcasadi_conic_ipqp.so.3.7 +0 -0
- casadi/libcasadi_conic_nlpsol.so +0 -0
- casadi/libcasadi_conic_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_conic_osqp.so +0 -0
- casadi/libcasadi_conic_osqp.so.3.7 +0 -0
- casadi/libcasadi_conic_qpoases.so +0 -0
- casadi/libcasadi_conic_qpoases.so.3.7 +0 -0
- casadi/libcasadi_conic_qrqp.so +0 -0
- casadi/libcasadi_conic_qrqp.so.3.7 +0 -0
- casadi/libcasadi_conic_superscs.so +0 -0
- casadi/libcasadi_conic_superscs.so.3.7 +0 -0
- casadi/libcasadi_integrator_collocation.so +0 -0
- casadi/libcasadi_integrator_collocation.so.3.7 +0 -0
- casadi/libcasadi_integrator_cvodes.so +0 -0
- casadi/libcasadi_integrator_cvodes.so.3.7 +0 -0
- casadi/libcasadi_integrator_idas.so +0 -0
- casadi/libcasadi_integrator_idas.so.3.7 +0 -0
- casadi/libcasadi_interpolant_bspline.so +0 -0
- casadi/libcasadi_interpolant_bspline.so.3.7 +0 -0
- casadi/libcasadi_interpolant_linear.so +0 -0
- casadi/libcasadi_interpolant_linear.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapacklu.so +0 -0
- casadi/libcasadi_linsol_lapacklu.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapackqr.so +0 -0
- casadi/libcasadi_linsol_lapackqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ldl.so +0 -0
- casadi/libcasadi_linsol_ldl.so.3.7 +0 -0
- casadi/libcasadi_linsol_mumps.so +0 -0
- casadi/libcasadi_linsol_mumps.so.3.7 +0 -0
- casadi/libcasadi_linsol_qr.so +0 -0
- casadi/libcasadi_linsol_qr.so.3.7 +0 -0
- casadi/libcasadi_linsol_symbolicqr.so +0 -0
- casadi/libcasadi_linsol_symbolicqr.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ampl.so +0 -0
- casadi/libcasadi_nlpsol_ampl.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so +0 -0
- casadi/libcasadi_nlpsol_blocksqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_bonmin.so +0 -0
- casadi/libcasadi_nlpsol_bonmin.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_feasiblesqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_ipopt.so +0 -0
- casadi/libcasadi_nlpsol_ipopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_knitro.so +0 -0
- casadi/libcasadi_nlpsol_knitro.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so +0 -0
- casadi/libcasadi_nlpsol_qrsqp.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_scpgen.so +0 -0
- casadi/libcasadi_nlpsol_scpgen.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_snopt.so +0 -0
- casadi/libcasadi_nlpsol_snopt.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so +0 -0
- casadi/libcasadi_nlpsol_sqpmethod.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_worhp.so +0 -0
- casadi/libcasadi_nlpsol_worhp.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so +0 -0
- casadi/libcasadi_rootfinder_fast_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_newton.so +0 -0
- casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
- casadi/libcasadi_sundials_common.so +0 -0
- casadi/libcasadi_sundials_common.so.3.7 +0 -0
- casadi/libindirect.a +0 -0
- casadi/liblinsys.a +0 -0
- casadi/libosqp.a +0 -0
- casadi/libqdldl.a +0 -0
- casadi/libsuperscs.a +0 -0
- casadi/pkgconfig/blas.pc +11 -0
- casadi/pkgconfig/bonmin.pc +1 -1
- casadi/pkgconfig/casadi.pc +1 -1
- casadi/pkgconfig/cbc.pc +2 -2
- casadi/pkgconfig/cgl.pc +2 -2
- casadi/pkgconfig/clp.pc +1 -1
- casadi/pkgconfig/coinutils.pc +1 -1
- casadi/pkgconfig/lapack.pc +11 -0
- casadi/pkgconfig/openblas.pc +1 -1
- casadi/pkgconfig/osi-cbc.pc +1 -1
- casadi/pkgconfig/osi-clp.pc +1 -1
- casadi/pkgconfig/osi-unittests.pc +1 -1
- casadi/pkgconfig/osi.pc +1 -1
- {casadi-3.6.3.dist-info → casadi-3.6.5.dist-info}/METADATA +11 -3
- casadi-3.6.5.dist-info/RECORD +987 -0
- casadi/libCbc.so.3.10.6 +0 -0
- casadi/libCbcSolver.so.3.10.6 +0 -0
- casadi/libCgl.so.1.10.4 +0 -0
- casadi/libClp.so.1.14.7 +0 -0
- casadi/libCoinUtils.so.3.11.6 +0 -0
- casadi/libOsiClp.so.1.14.7 +0 -0
- casadi/libbonmin.so.4.8.8 +0 -0
- casadi-3.6.3.dist-info/RECORD +0 -581
- /casadi/{libOsi.so.1.13.7 → libOsi.so.1.13.9} +0 -0
- {casadi-3.6.3.dist-info → casadi-3.6.5.dist-info}/WHEEL +0 -0
@@ -0,0 +1,429 @@
|
|
1
|
+
// LAST EDIT:
|
2
|
+
//-----------------------------------------------------------------------------
|
3
|
+
// name: Mixed Integer Rounding Cut Generator
|
4
|
+
// authors: Joao Goncalves (jog7@lehigh.edu)
|
5
|
+
// Laszlo Ladanyi (ladanyi@us.ibm.com)
|
6
|
+
// date: August 11, 2004
|
7
|
+
//-----------------------------------------------------------------------------
|
8
|
+
// Copyright (C) 2004, International Business Machines Corporation and others.
|
9
|
+
// All Rights Reserved.
|
10
|
+
// This code is published under the Eclipse Public License.
|
11
|
+
|
12
|
+
#ifndef CglMixedIntegerRounding_H
|
13
|
+
#define CglMixedIntegerRounding_H
|
14
|
+
|
15
|
+
#include <iostream>
|
16
|
+
#include <fstream>
|
17
|
+
//#include <vector>
|
18
|
+
|
19
|
+
#include "CoinError.hpp"
|
20
|
+
|
21
|
+
#include "CglCutGenerator.hpp"
|
22
|
+
|
23
|
+
//=============================================================================
|
24
|
+
|
25
|
+
#ifndef CGL_DEBUG
|
26
|
+
#define CGL_DEBUG 0
|
27
|
+
#endif
|
28
|
+
|
29
|
+
//=============================================================================
|
30
|
+
|
31
|
+
// Class to store variable upper bounds (VUB)
|
32
|
+
class CglMixIntRoundVUB
|
33
|
+
{
|
34
|
+
// Variable upper bounds have the form x_j <= a y_j, where x_j is
|
35
|
+
// a continuous variable and y_j is an integer variable
|
36
|
+
|
37
|
+
protected:
|
38
|
+
int var_; // The index of y_j
|
39
|
+
double val_; // The value of a
|
40
|
+
|
41
|
+
public:
|
42
|
+
// Default constructor
|
43
|
+
CglMixIntRoundVUB() : var_(-1), val_(-1) {}
|
44
|
+
|
45
|
+
// Copy constructor
|
46
|
+
CglMixIntRoundVUB(const CglMixIntRoundVUB& source) {
|
47
|
+
var_ = source.var_;
|
48
|
+
val_ = source.val_;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Assignment operator
|
52
|
+
CglMixIntRoundVUB& operator=(const CglMixIntRoundVUB& rhs) {
|
53
|
+
if (this != &rhs) {
|
54
|
+
var_ = rhs.var_;
|
55
|
+
val_ = rhs.val_;
|
56
|
+
}
|
57
|
+
return *this;
|
58
|
+
}
|
59
|
+
|
60
|
+
// Destructor
|
61
|
+
~CglMixIntRoundVUB() {}
|
62
|
+
|
63
|
+
// Query and set functions
|
64
|
+
int getVar() const { return var_; }
|
65
|
+
double getVal() const { return val_; }
|
66
|
+
void setVar(const int v) { var_ = v; }
|
67
|
+
void setVal(const double v) { val_ = v; }
|
68
|
+
};
|
69
|
+
|
70
|
+
//=============================================================================
|
71
|
+
|
72
|
+
// Class to store variable lower bounds (VLB).
|
73
|
+
// It is the same as the class to store variable upper bounds
|
74
|
+
typedef CglMixIntRoundVUB CglMixIntRoundVLB;
|
75
|
+
|
76
|
+
//=============================================================================
|
77
|
+
|
78
|
+
/** Mixed Integer Rounding Cut Generator Class */
|
79
|
+
|
80
|
+
// Reference:
|
81
|
+
// Hugues Marchand and Laurence A. Wolsey
|
82
|
+
// Aggregation and Mixed Integer Rounding to Solve MIPs
|
83
|
+
// Operations Research, 49(3), May-June 2001.
|
84
|
+
// Also published as CORE Dicusion Paper 9839, June 1998.
|
85
|
+
|
86
|
+
class CglMixedIntegerRounding : public CglCutGenerator {
|
87
|
+
|
88
|
+
friend void CglMixedIntegerRoundingUnitTest(const OsiSolverInterface * siP,
|
89
|
+
const std::string mpdDir);
|
90
|
+
|
91
|
+
|
92
|
+
private:
|
93
|
+
//---------------------------------------------------------------------------
|
94
|
+
// Enumeration constants that describe the various types of rows
|
95
|
+
enum RowType {
|
96
|
+
// The row type of this row is NOT defined yet.
|
97
|
+
ROW_UNDEFINED,
|
98
|
+
/** After the row is flipped to 'L', the row has exactly two variables:
|
99
|
+
one is negative binary and the other is a continous,
|
100
|
+
and the RHS is zero.*/
|
101
|
+
ROW_VARUB,
|
102
|
+
/** After the row is flipped to 'L', the row has exactly two variables:
|
103
|
+
one is positive binary and the other is a continous,
|
104
|
+
and the RHS is zero.*/
|
105
|
+
ROW_VARLB,
|
106
|
+
/** The row sense is 'E', the row has exactly two variables:
|
107
|
+
one is binary and the other is a continous, and the RHS is zero.*/
|
108
|
+
ROW_VAREQ,
|
109
|
+
// The row contains continuous and integer variables;
|
110
|
+
// the total number of variables is at least 2
|
111
|
+
ROW_MIX,
|
112
|
+
// The row contains only continuous variables
|
113
|
+
ROW_CONT,
|
114
|
+
// The row contains only integer variables
|
115
|
+
ROW_INT,
|
116
|
+
// The row contains other types of rows
|
117
|
+
ROW_OTHER
|
118
|
+
};
|
119
|
+
|
120
|
+
|
121
|
+
public:
|
122
|
+
|
123
|
+
/**@name Generate Cuts */
|
124
|
+
//@{
|
125
|
+
/** Generate Mixed Integer Rounding cuts for the model data
|
126
|
+
contained in si. The generated cuts are inserted
|
127
|
+
in the collection of cuts cs.
|
128
|
+
*/
|
129
|
+
virtual void generateCuts(const OsiSolverInterface & si, OsiCuts & cs,
|
130
|
+
const CglTreeInfo info = CglTreeInfo());
|
131
|
+
//@}
|
132
|
+
|
133
|
+
//---------------------------------------------------------------------------
|
134
|
+
/**@name Constructors and destructors */
|
135
|
+
//@{
|
136
|
+
/// Default constructor
|
137
|
+
CglMixedIntegerRounding ();
|
138
|
+
|
139
|
+
/// Alternate Constructor
|
140
|
+
CglMixedIntegerRounding (const int maxaggr,
|
141
|
+
const bool multiply,
|
142
|
+
const int criterion,
|
143
|
+
const int preproc = -1);
|
144
|
+
|
145
|
+
/// Copy constructor
|
146
|
+
CglMixedIntegerRounding (
|
147
|
+
const CglMixedIntegerRounding &);
|
148
|
+
|
149
|
+
/// Clone
|
150
|
+
virtual CglCutGenerator * clone() const;
|
151
|
+
|
152
|
+
/// Assignment operator
|
153
|
+
CglMixedIntegerRounding &
|
154
|
+
operator=(
|
155
|
+
const CglMixedIntegerRounding& rhs);
|
156
|
+
|
157
|
+
/// Destructor
|
158
|
+
virtual
|
159
|
+
~CglMixedIntegerRounding ();
|
160
|
+
/// This can be used to refresh any inforamtion
|
161
|
+
virtual void refreshSolver(OsiSolverInterface * solver);
|
162
|
+
/// Create C++ lines to get to current state
|
163
|
+
virtual std::string generateCpp( FILE * fp);
|
164
|
+
//@}
|
165
|
+
|
166
|
+
//---------------------------------------------------------------------------
|
167
|
+
/**@name Set and get methods */
|
168
|
+
//@{
|
169
|
+
/// Set MAXAGGR_
|
170
|
+
inline void setMAXAGGR_ (int maxaggr) {
|
171
|
+
if (maxaggr > 0) {
|
172
|
+
MAXAGGR_ = maxaggr;
|
173
|
+
}
|
174
|
+
else {
|
175
|
+
throw CoinError("Unallowable value. maxaggr must be > 0",
|
176
|
+
"gutsOfConstruct","CglMixedIntegerRounding");
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
/// Get MAXAGGR_
|
181
|
+
inline int getMAXAGGR_ () const { return MAXAGGR_; }
|
182
|
+
|
183
|
+
/// Set MULTIPLY_
|
184
|
+
inline void setMULTIPLY_ (bool multiply) { MULTIPLY_ = multiply; }
|
185
|
+
|
186
|
+
/// Get MULTIPLY_
|
187
|
+
inline bool getMULTIPLY_ () const { return MULTIPLY_; }
|
188
|
+
|
189
|
+
/// Set CRITERION_
|
190
|
+
inline void setCRITERION_ (int criterion) {
|
191
|
+
if ((criterion >= 1) && (criterion <= 3)) {
|
192
|
+
CRITERION_ = criterion;
|
193
|
+
}
|
194
|
+
else {
|
195
|
+
throw CoinError("Unallowable value. criterion must be 1, 2 or 3",
|
196
|
+
"gutsOfConstruct","CglMixedIntegerRounding");
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
/// Get CRITERION_
|
201
|
+
inline int getCRITERION_ () const { return CRITERION_; }
|
202
|
+
|
203
|
+
|
204
|
+
/// Set doPreproc
|
205
|
+
void setDoPreproc(int value);
|
206
|
+
/// Get doPreproc
|
207
|
+
bool getDoPreproc() const;
|
208
|
+
|
209
|
+
//@}
|
210
|
+
|
211
|
+
private:
|
212
|
+
//--------------------------------------------------------------------------
|
213
|
+
// Private member methods
|
214
|
+
|
215
|
+
// Construct
|
216
|
+
void gutsOfConstruct (const int maxaggr,
|
217
|
+
const bool multiply,
|
218
|
+
const int criterion,
|
219
|
+
const int preproc);
|
220
|
+
|
221
|
+
// Delete
|
222
|
+
void gutsOfDelete();
|
223
|
+
|
224
|
+
// Copy
|
225
|
+
void gutsOfCopy (const CglMixedIntegerRounding& rhs);
|
226
|
+
|
227
|
+
// Do preprocessing.
|
228
|
+
// It determines the type of each row. It also identifies the variable
|
229
|
+
// upper bounds and variable lower bounds.
|
230
|
+
// It may change sense and RHS for ranged rows
|
231
|
+
void mixIntRoundPreprocess(const OsiSolverInterface& si);
|
232
|
+
|
233
|
+
// Determine the type of a given row.
|
234
|
+
RowType determineRowType(const OsiSolverInterface& si,
|
235
|
+
const int rowLen, const int* ind,
|
236
|
+
const double* coef, const char sense,
|
237
|
+
const double rhs) const;
|
238
|
+
|
239
|
+
// Generate MIR cuts
|
240
|
+
void generateMirCuts( const OsiSolverInterface& si,
|
241
|
+
const double* xlp,
|
242
|
+
const double* colUpperBound,
|
243
|
+
const double* colLowerBound,
|
244
|
+
const CoinPackedMatrix& matrixByRow,
|
245
|
+
const double* LHS,
|
246
|
+
const double* coefByRow,
|
247
|
+
const int* colInds,
|
248
|
+
const CoinBigIndex* rowStarts,
|
249
|
+
const int* rowLengths,
|
250
|
+
//const CoinPackedMatrix& matrixByCol,
|
251
|
+
const double* coefByCol,
|
252
|
+
const int* rowInds,
|
253
|
+
const CoinBigIndex* colStarts,
|
254
|
+
const int* colLengths,
|
255
|
+
OsiCuts& cs ) const;
|
256
|
+
|
257
|
+
// Copy row selected to CoinPackedVector
|
258
|
+
void copyRowSelected( const int iAggregate,
|
259
|
+
const int rowSelected,
|
260
|
+
std::set<int>& setRowsAggregated,
|
261
|
+
int* listRowsAggregated,
|
262
|
+
double* xlpExtra,
|
263
|
+
const char sen,
|
264
|
+
const double rhs,
|
265
|
+
const double lhs,
|
266
|
+
const CoinPackedMatrix& matrixByRow,
|
267
|
+
CoinPackedVector& rowToAggregate,
|
268
|
+
double& rhsToAggregate) const;
|
269
|
+
|
270
|
+
// Select a row to aggregate
|
271
|
+
bool selectRowToAggregate( const OsiSolverInterface& si,
|
272
|
+
const CoinPackedVector& rowAggregated,
|
273
|
+
const double* colUpperBound,
|
274
|
+
const double* colLowerBound,
|
275
|
+
const std::set<int>& setRowsAggregated,
|
276
|
+
const double* xlp, const double* coefByCol,
|
277
|
+
const int* rowInds, const CoinBigIndex* colStarts,
|
278
|
+
const int* colLengths,
|
279
|
+
int& rowSelected,
|
280
|
+
int& colSelected ) const;
|
281
|
+
|
282
|
+
// Aggregation heuristic.
|
283
|
+
// Combines one or more rows of the original matrix
|
284
|
+
void aggregateRow( const int colSelected,
|
285
|
+
CoinPackedVector& rowToAggregate, double rhs,
|
286
|
+
CoinPackedVector& rowAggregated,
|
287
|
+
double& rhsAggregated ) const;
|
288
|
+
|
289
|
+
// Choose the bound substitution based on the criteria defined by the user
|
290
|
+
inline bool isLowerSubst(const double inf,
|
291
|
+
const double aj,
|
292
|
+
const double xlp,
|
293
|
+
const double LB,
|
294
|
+
const double UB) const;
|
295
|
+
|
296
|
+
// Bound substitution heuristic
|
297
|
+
bool boundSubstitution( const OsiSolverInterface& si,
|
298
|
+
const CoinPackedVector& rowAggregated,
|
299
|
+
const double* xlp,
|
300
|
+
const double* xlpExtra,
|
301
|
+
const double* colUpperBound,
|
302
|
+
const double* colLowerBound,
|
303
|
+
CoinPackedVector& mixedKnapsack,
|
304
|
+
double& rhsMixedKnapsack, double& sStar,
|
305
|
+
CoinPackedVector& contVariablesInS ) const;
|
306
|
+
|
307
|
+
// c-MIR separation heuristic
|
308
|
+
bool cMirSeparation ( const OsiSolverInterface& si,
|
309
|
+
const CoinPackedMatrix& matrixByRow,
|
310
|
+
const CoinPackedVector& rowAggregated,
|
311
|
+
const int* listRowsAggregated,
|
312
|
+
const char* sense, const double* RHS,
|
313
|
+
//const double* coefByRow,
|
314
|
+
//const int* colInds, const int* rowStarts,
|
315
|
+
//const int* rowLengths,
|
316
|
+
const double* xlp, const double sStar,
|
317
|
+
const double* colUpperBound,
|
318
|
+
const double* colLowerBound,
|
319
|
+
const CoinPackedVector& mixedKnapsack,
|
320
|
+
const double& rhsMixedKnapsack,
|
321
|
+
const CoinPackedVector& contVariablesInS,
|
322
|
+
OsiRowCut& flowCut ) const;
|
323
|
+
|
324
|
+
// function to create one c-MIR inequality
|
325
|
+
void cMirInequality( const int numInt,
|
326
|
+
const double delta,
|
327
|
+
const double numeratorBeta,
|
328
|
+
const int *knapsackIndices,
|
329
|
+
const double* knapsackElements,
|
330
|
+
const double* xlp,
|
331
|
+
const double sStar,
|
332
|
+
const double* colUpperBound,
|
333
|
+
const std::set<int>& setC,
|
334
|
+
CoinPackedVector& cMIR,
|
335
|
+
double& rhscMIR,
|
336
|
+
double& sCoef,
|
337
|
+
double& violation) const;
|
338
|
+
|
339
|
+
// function to compute G
|
340
|
+
inline double functionG( const double d, const double f ) const;
|
341
|
+
|
342
|
+
// function to print statistics (used only in debug mode)
|
343
|
+
void printStats(
|
344
|
+
std::ofstream & fout,
|
345
|
+
const bool hasCut,
|
346
|
+
const OsiSolverInterface& si,
|
347
|
+
const CoinPackedVector& rowAggregated,
|
348
|
+
const double& rhsAggregated, const double* xlp,
|
349
|
+
const double* xlpExtra,
|
350
|
+
const int* listRowsAggregated,
|
351
|
+
const int* listColsSelected,
|
352
|
+
const int level,
|
353
|
+
const double* colUpperBound,
|
354
|
+
const double* colLowerBound ) const;
|
355
|
+
|
356
|
+
|
357
|
+
private:
|
358
|
+
//---------------------------------------------------------------------------
|
359
|
+
// Private member data
|
360
|
+
|
361
|
+
// Maximum number of rows to aggregate
|
362
|
+
int MAXAGGR_;
|
363
|
+
// Flag that indicates if an aggregated row is also multiplied by -1
|
364
|
+
bool MULTIPLY_;
|
365
|
+
// The criterion to use in the bound substitution
|
366
|
+
int CRITERION_;
|
367
|
+
// Tolerance used for numerical purposes
|
368
|
+
double EPSILON_;
|
369
|
+
/// There is no variable upper bound or variable lower bound defined
|
370
|
+
int UNDEFINED_;
|
371
|
+
// If violation of a cut is greater that this number, the cut is accepted
|
372
|
+
double TOLERANCE_;
|
373
|
+
/** Controls the preprocessing of the matrix to identify rows suitable for
|
374
|
+
cut generation.<UL>
|
375
|
+
<LI> -1: preprocess according to solver settings;
|
376
|
+
<LI> 0: Do preprocessing only if it has not yet been done;
|
377
|
+
<LI> 1: Do preprocessing.
|
378
|
+
</UL>
|
379
|
+
Default value: -1 **/
|
380
|
+
int doPreproc_;
|
381
|
+
// The number of rows of the problem.
|
382
|
+
int numRows_;
|
383
|
+
// The number columns of the problem.
|
384
|
+
int numCols_;
|
385
|
+
// Indicates whether preprocessing has been done.
|
386
|
+
bool doneInitPre_;
|
387
|
+
// The array of CglMixIntRoundVUBs.
|
388
|
+
CglMixIntRoundVUB* vubs_;
|
389
|
+
// The array of CglMixIntRoundVLBs.
|
390
|
+
CglMixIntRoundVLB* vlbs_;
|
391
|
+
// Array with the row types of the rows in the model.
|
392
|
+
RowType* rowTypes_;
|
393
|
+
// The indices of the rows of the initial matrix
|
394
|
+
int* indRows_;
|
395
|
+
// The number of rows of type ROW_MIX
|
396
|
+
int numRowMix_;
|
397
|
+
// The indices of the rows of type ROW_MIX
|
398
|
+
int* indRowMix_;
|
399
|
+
// The number of rows of type ROW_CONT
|
400
|
+
int numRowCont_;
|
401
|
+
// The indices of the rows of type ROW_CONT
|
402
|
+
int* indRowCont_;
|
403
|
+
// The number of rows of type ROW_INT
|
404
|
+
int numRowInt_;
|
405
|
+
// The indices of the rows of type ROW_INT
|
406
|
+
int* indRowInt_;
|
407
|
+
// The number of rows of type ROW_CONT that have at least one variable
|
408
|
+
// with variable upper or lower bound
|
409
|
+
int numRowContVB_;
|
410
|
+
// The indices of the rows of type ROW_CONT that have at least one variable
|
411
|
+
// with variable upper or lower bound
|
412
|
+
int* indRowContVB_;
|
413
|
+
// Sense of rows (modified if ranges)
|
414
|
+
char * sense_;
|
415
|
+
// RHS of rows (modified if ranges)
|
416
|
+
double * RHS_;
|
417
|
+
|
418
|
+
};
|
419
|
+
|
420
|
+
//#############################################################################
|
421
|
+
// A function that tests the methods in the CglMixedIntegerRounding class. The
|
422
|
+
// only reason for it not to be a member method is that this way it doesn't
|
423
|
+
// have to be compiled into the library. And that's a gain, because the
|
424
|
+
// library should be compiled with optimization on, but this method should be
|
425
|
+
// compiled with debugging.
|
426
|
+
void CglMixedIntegerRoundingUnitTest(const OsiSolverInterface * siP,
|
427
|
+
const std::string mpdDir);
|
428
|
+
|
429
|
+
#endif
|