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.
Files changed (571) hide show
  1. casadi/_casadi.so +0 -0
  2. casadi/casadi.py +415 -260
  3. casadi/cbc +0 -0
  4. casadi/clp +0 -0
  5. casadi/cmake/casadi-config-version.cmake +1 -1
  6. casadi/include/casadi/casadi.i +43 -18
  7. casadi/include/casadi/config.h +6 -6
  8. casadi/include/casadi/core/calculus.hpp +1 -1
  9. casadi/include/casadi/core/code_generator.hpp +29 -1
  10. casadi/include/casadi/core/core.hpp +1 -0
  11. casadi/include/casadi/core/fmu.hpp +29 -1
  12. casadi/include/casadi/core/generic_expression.hpp +1 -1
  13. casadi/include/casadi/core/generic_type.hpp +25 -1
  14. casadi/include/casadi/core/matrix_decl.hpp +15 -0
  15. casadi/include/casadi/core/nlpsol.hpp +0 -2
  16. casadi/include/casadi/core/runtime/casadi_nlp.hpp +131 -6
  17. casadi/include/casadi/core/runtime/casadi_sqpmethod.hpp +11 -1
  18. casadi/include/casadi/core/serializing_stream.hpp +12 -0
  19. casadi/include/casadi/core/sparsity.hpp +5 -3
  20. casadi/include/casadi/core/tools.hpp +67 -0
  21. casadi/include/casadi/doc.i +1457 -825
  22. casadi/include/casadi/doc_merged.i +1089 -570
  23. casadi/include/coin/BonArraysHelpers.hpp +52 -0
  24. casadi/include/coin/BonAuxInfos.hpp +110 -0
  25. casadi/include/coin/BonBabInfos.hpp +57 -0
  26. casadi/include/coin/BonBabSetupBase.hpp +386 -0
  27. casadi/include/coin/BonBonminSetup.hpp +95 -0
  28. casadi/include/coin/BonBranchingTQP.hpp +197 -0
  29. casadi/include/coin/BonCbc.hpp +127 -0
  30. casadi/include/coin/BonCbcLpStrategy.hpp +45 -0
  31. casadi/include/coin/BonCbcNlpStrategy.hpp +98 -0
  32. casadi/include/coin/BonCbcNode.hpp +133 -0
  33. casadi/include/coin/BonChooseVariable.hpp +345 -0
  34. casadi/include/coin/BonCurvBranchingSolver.hpp +77 -0
  35. casadi/include/coin/BonCutStrengthener.hpp +244 -0
  36. casadi/include/coin/BonDiver.hpp +424 -0
  37. casadi/include/coin/BonDummyHeuristic.hpp +53 -0
  38. casadi/include/coin/BonDummyPump.hpp +43 -0
  39. casadi/include/coin/BonEcpCuts.hpp +97 -0
  40. casadi/include/coin/BonExitCodes.hpp +12 -0
  41. casadi/include/coin/BonFixAndSolveHeuristic.hpp +43 -0
  42. casadi/include/coin/BonGuessHeuristic.hpp +46 -0
  43. casadi/include/coin/BonHeuristicDive.hpp +88 -0
  44. casadi/include/coin/BonHeuristicDiveFractional.hpp +67 -0
  45. casadi/include/coin/BonHeuristicDiveMIP.hpp +83 -0
  46. casadi/include/coin/BonHeuristicDiveMIPFractional.hpp +67 -0
  47. casadi/include/coin/BonHeuristicDiveMIPVectorLength.hpp +74 -0
  48. casadi/include/coin/BonHeuristicDiveVectorLength.hpp +74 -0
  49. casadi/include/coin/BonHeuristicFPump.hpp +111 -0
  50. casadi/include/coin/BonHeuristicLocalBranching.hpp +59 -0
  51. casadi/include/coin/BonHeuristicRINS.hpp +55 -0
  52. casadi/include/coin/BonIpoptInteriorWarmStarter.hpp +103 -0
  53. casadi/include/coin/BonIpoptSolver.hpp +188 -0
  54. casadi/include/coin/BonIpoptWarmStart.hpp +148 -0
  55. casadi/include/coin/BonLinearCutsGenerator.hpp +75 -0
  56. casadi/include/coin/BonLocalSolverBasedHeuristic.hpp +102 -0
  57. casadi/include/coin/BonLpBranchingSolver.hpp +80 -0
  58. casadi/include/coin/BonMilpRounding.hpp +74 -0
  59. casadi/include/coin/BonOACutGenerator2.hpp +56 -0
  60. casadi/include/coin/BonOAMessages.hpp +44 -0
  61. casadi/include/coin/BonOaDecBase.hpp +297 -0
  62. casadi/include/coin/BonOaFeasChecker.hpp +73 -0
  63. casadi/include/coin/BonOaNlpOptim.hpp +116 -0
  64. casadi/include/coin/BonOsiTMINLPInterface.hpp +1342 -0
  65. casadi/include/coin/BonOuterApprox.hpp +123 -0
  66. casadi/include/coin/BonPseudoCosts.hpp +91 -0
  67. casadi/include/coin/BonPumpForMinlp.hpp +45 -0
  68. casadi/include/coin/BonQuadCut.hpp +217 -0
  69. casadi/include/coin/BonQuadRow.hpp +122 -0
  70. casadi/include/coin/BonRegisteredOptions.hpp +225 -0
  71. casadi/include/coin/BonStrongBranchingSolver.hpp +69 -0
  72. casadi/include/coin/BonSubMipSolver.hpp +143 -0
  73. casadi/include/coin/BonTMINLP.hpp +420 -0
  74. casadi/include/coin/BonTMINLP2OsiLP.hpp +164 -0
  75. casadi/include/coin/BonTMINLP2Quad.hpp +191 -0
  76. casadi/include/coin/BonTMINLP2TNLP.hpp +509 -0
  77. casadi/include/coin/BonTMINLPLinObj.hpp +216 -0
  78. casadi/include/coin/BonTMatrix.hpp +167 -0
  79. casadi/include/coin/BonTNLP2FPNLP.hpp +264 -0
  80. casadi/include/coin/BonTNLPSolver.hpp +241 -0
  81. casadi/include/coin/BonTypes.hpp +95 -0
  82. casadi/include/coin/BonminConfig.h +19 -0
  83. casadi/include/coin/CbcBranchActual.hpp +26 -0
  84. casadi/include/coin/CbcBranchAllDifferent.hpp +61 -0
  85. casadi/include/coin/CbcBranchBase.hpp +79 -0
  86. casadi/include/coin/CbcBranchCut.hpp +182 -0
  87. casadi/include/coin/CbcBranchDecision.hpp +135 -0
  88. casadi/include/coin/CbcBranchDefaultDecision.hpp +101 -0
  89. casadi/include/coin/CbcBranchDynamic.hpp +210 -0
  90. casadi/include/coin/CbcBranchLotsize.hpp +249 -0
  91. casadi/include/coin/CbcBranchToFixLots.hpp +94 -0
  92. casadi/include/coin/CbcBranchingObject.hpp +245 -0
  93. casadi/include/coin/CbcClique.hpp +309 -0
  94. casadi/include/coin/CbcCompare.hpp +46 -0
  95. casadi/include/coin/CbcCompareActual.hpp +16 -0
  96. casadi/include/coin/CbcCompareBase.hpp +155 -0
  97. casadi/include/coin/CbcCompareDefault.hpp +129 -0
  98. casadi/include/coin/CbcCompareDepth.hpp +48 -0
  99. casadi/include/coin/CbcCompareEstimate.hpp +48 -0
  100. casadi/include/coin/CbcCompareObjective.hpp +50 -0
  101. casadi/include/coin/CbcConfig.h +18 -0
  102. casadi/include/coin/CbcConsequence.hpp +50 -0
  103. casadi/include/coin/CbcCountRowCut.hpp +176 -0
  104. casadi/include/coin/CbcCutGenerator.hpp +550 -0
  105. casadi/include/coin/CbcCutModifier.hpp +59 -0
  106. casadi/include/coin/CbcCutSubsetModifier.hpp +69 -0
  107. casadi/include/coin/CbcDummyBranchingObject.hpp +83 -0
  108. casadi/include/coin/CbcEventHandler.hpp +250 -0
  109. casadi/include/coin/CbcFathom.hpp +136 -0
  110. casadi/include/coin/CbcFathomDynamicProgramming.hpp +177 -0
  111. casadi/include/coin/CbcFeasibilityBase.hpp +60 -0
  112. casadi/include/coin/CbcFixVariable.hpp +68 -0
  113. casadi/include/coin/CbcFollowOn.hpp +207 -0
  114. casadi/include/coin/CbcFullNodeInfo.hpp +171 -0
  115. casadi/include/coin/CbcGeneral.hpp +60 -0
  116. casadi/include/coin/CbcGeneralDepth.hpp +289 -0
  117. casadi/include/coin/CbcHeuristic.hpp +735 -0
  118. casadi/include/coin/CbcHeuristicDINS.hpp +98 -0
  119. casadi/include/coin/CbcHeuristicDW.hpp +374 -0
  120. casadi/include/coin/CbcHeuristicDive.hpp +198 -0
  121. casadi/include/coin/CbcHeuristicDiveCoefficient.hpp +52 -0
  122. casadi/include/coin/CbcHeuristicDiveFractional.hpp +52 -0
  123. casadi/include/coin/CbcHeuristicDiveGuided.hpp +55 -0
  124. casadi/include/coin/CbcHeuristicDiveLineSearch.hpp +52 -0
  125. casadi/include/coin/CbcHeuristicDivePseudoCost.hpp +60 -0
  126. casadi/include/coin/CbcHeuristicDiveVectorLength.hpp +52 -0
  127. casadi/include/coin/CbcHeuristicFPump.hpp +375 -0
  128. casadi/include/coin/CbcHeuristicGreedy.hpp +289 -0
  129. casadi/include/coin/CbcHeuristicLocal.hpp +276 -0
  130. casadi/include/coin/CbcHeuristicPivotAndFix.hpp +58 -0
  131. casadi/include/coin/CbcHeuristicRENS.hpp +79 -0
  132. casadi/include/coin/CbcHeuristicRINS.hpp +106 -0
  133. casadi/include/coin/CbcHeuristicRandRound.hpp +58 -0
  134. casadi/include/coin/CbcHeuristicVND.hpp +95 -0
  135. casadi/include/coin/CbcLinked.hpp +1443 -0
  136. casadi/include/coin/CbcMessage.hpp +94 -0
  137. casadi/include/coin/CbcMipStartIO.hpp +29 -0
  138. casadi/include/coin/CbcModel.hpp +3296 -0
  139. casadi/include/coin/CbcNWay.hpp +171 -0
  140. casadi/include/coin/CbcNode.hpp +380 -0
  141. casadi/include/coin/CbcNodeInfo.hpp +377 -0
  142. casadi/include/coin/CbcObject.hpp +288 -0
  143. casadi/include/coin/CbcObjectUpdateData.hpp +63 -0
  144. casadi/include/coin/CbcOrClpParam.cpp +4321 -0
  145. casadi/include/coin/CbcOrClpParam.hpp +585 -0
  146. casadi/include/coin/CbcParam.hpp +338 -0
  147. casadi/include/coin/CbcPartialNodeInfo.hpp +116 -0
  148. casadi/include/coin/CbcSOS.hpp +290 -0
  149. casadi/include/coin/CbcSimpleInteger.hpp +299 -0
  150. casadi/include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp +619 -0
  151. casadi/include/coin/CbcSimpleIntegerPseudoCost.hpp +122 -0
  152. casadi/include/coin/CbcSolver.hpp +460 -0
  153. casadi/include/coin/CbcStrategy.hpp +269 -0
  154. casadi/include/coin/CbcSubProblem.hpp +84 -0
  155. casadi/include/coin/CbcTree.hpp +493 -0
  156. casadi/include/coin/CbcTreeLocal.hpp +393 -0
  157. casadi/include/coin/Cbc_C_Interface.h +904 -0
  158. casadi/include/coin/Cgl012cut.hpp +464 -0
  159. casadi/include/coin/CglAllDifferent.hpp +115 -0
  160. casadi/include/coin/CglClique.hpp +312 -0
  161. casadi/include/coin/CglConfig.h +19 -0
  162. casadi/include/coin/CglCutGenerator.hpp +133 -0
  163. casadi/include/coin/CglDuplicateRow.hpp +189 -0
  164. casadi/include/coin/CglFlowCover.hpp +371 -0
  165. casadi/include/coin/CglGMI.hpp +364 -0
  166. casadi/include/coin/CglGMIParam.hpp +313 -0
  167. casadi/include/coin/CglGomory.hpp +204 -0
  168. casadi/include/coin/CglKnapsackCover.hpp +310 -0
  169. casadi/include/coin/CglLandP.hpp +306 -0
  170. casadi/include/coin/CglLandPValidator.hpp +130 -0
  171. casadi/include/coin/CglLiftAndProject.hpp +104 -0
  172. casadi/include/coin/CglMessage.hpp +49 -0
  173. casadi/include/coin/CglMixedIntegerRounding.hpp +429 -0
  174. casadi/include/coin/CglMixedIntegerRounding2.hpp +427 -0
  175. casadi/include/coin/CglOddHole.hpp +160 -0
  176. casadi/include/coin/CglParam.hpp +93 -0
  177. casadi/include/coin/CglPreProcess.hpp +600 -0
  178. casadi/include/coin/CglProbing.hpp +543 -0
  179. casadi/include/coin/CglRedSplit.hpp +448 -0
  180. casadi/include/coin/CglRedSplit2.hpp +494 -0
  181. casadi/include/coin/CglRedSplit2Param.hpp +495 -0
  182. casadi/include/coin/CglRedSplitParam.hpp +272 -0
  183. casadi/include/coin/CglResidualCapacity.hpp +240 -0
  184. casadi/include/coin/CglSimpleRounding.hpp +174 -0
  185. casadi/include/coin/CglStored.hpp +140 -0
  186. casadi/include/coin/CglTreeInfo.hpp +216 -0
  187. casadi/include/coin/CglTwomir.hpp +562 -0
  188. casadi/include/coin/CglZeroHalf.hpp +133 -0
  189. casadi/include/coin/ClpAmplObjective.hpp +113 -0
  190. casadi/include/coin/ClpCholeskyBase.hpp +321 -0
  191. casadi/include/coin/ClpCholeskyDense.hpp +157 -0
  192. casadi/include/coin/ClpCholeskyMumps.hpp +65 -0
  193. casadi/include/coin/ClpCholeskyPardiso.hpp +67 -0
  194. casadi/include/coin/ClpConfig.h +17 -0
  195. casadi/include/coin/ClpConstraint.hpp +129 -0
  196. casadi/include/coin/ClpConstraintAmpl.hpp +109 -0
  197. casadi/include/coin/ClpConstraintLinear.hpp +113 -0
  198. casadi/include/coin/ClpConstraintQuadratic.hpp +123 -0
  199. casadi/include/coin/ClpDualRowDantzig.hpp +72 -0
  200. casadi/include/coin/ClpDualRowPivot.hpp +136 -0
  201. casadi/include/coin/ClpDualRowSteepest.hpp +160 -0
  202. casadi/include/coin/ClpDummyMatrix.hpp +186 -0
  203. casadi/include/coin/ClpDynamicExampleMatrix.hpp +199 -0
  204. casadi/include/coin/ClpDynamicMatrix.hpp +420 -0
  205. casadi/include/coin/ClpEventHandler.hpp +193 -0
  206. casadi/include/coin/ClpFactorization.hpp +556 -0
  207. casadi/include/coin/ClpGubDynamicMatrix.hpp +270 -0
  208. casadi/include/coin/ClpGubMatrix.hpp +373 -0
  209. casadi/include/coin/ClpInterior.hpp +622 -0
  210. casadi/include/coin/ClpLinearObjective.hpp +104 -0
  211. casadi/include/coin/ClpMatrixBase.hpp +561 -0
  212. casadi/include/coin/ClpMessage.hpp +131 -0
  213. casadi/include/coin/ClpModel.hpp +1442 -0
  214. casadi/include/coin/ClpNetworkMatrix.hpp +235 -0
  215. casadi/include/coin/ClpNode.hpp +364 -0
  216. casadi/include/coin/ClpNonLinearCost.hpp +432 -0
  217. casadi/include/coin/ClpObjective.hpp +142 -0
  218. casadi/include/coin/ClpPEDualRowDantzig.hpp +84 -0
  219. casadi/include/coin/ClpPEDualRowSteepest.hpp +100 -0
  220. casadi/include/coin/ClpPEPrimalColumnDantzig.hpp +71 -0
  221. casadi/include/coin/ClpPEPrimalColumnSteepest.hpp +107 -0
  222. casadi/include/coin/ClpPESimplex.hpp +231 -0
  223. casadi/include/coin/ClpPackedMatrix.hpp +778 -0
  224. casadi/include/coin/ClpParameters.hpp +132 -0
  225. casadi/include/coin/ClpPdcoBase.hpp +110 -0
  226. casadi/include/coin/ClpPlusMinusOneMatrix.hpp +565 -0
  227. casadi/include/coin/ClpPresolve.hpp +379 -0
  228. casadi/include/coin/ClpPrimalColumnDantzig.hpp +74 -0
  229. casadi/include/coin/ClpPrimalColumnPivot.hpp +163 -0
  230. casadi/include/coin/ClpPrimalColumnSteepest.hpp +281 -0
  231. casadi/include/coin/ClpQuadraticObjective.hpp +161 -0
  232. casadi/include/coin/ClpSimplex.hpp +2137 -0
  233. casadi/include/coin/ClpSimplexDual.hpp +304 -0
  234. casadi/include/coin/ClpSimplexNonlinear.hpp +117 -0
  235. casadi/include/coin/ClpSimplexOther.hpp +282 -0
  236. casadi/include/coin/ClpSimplexPrimal.hpp +244 -0
  237. casadi/include/coin/ClpSolve.hpp +505 -0
  238. casadi/include/coin/Clp_C_Interface.h +554 -0
  239. casadi/include/coin/CoinAlloc.hpp +179 -0
  240. casadi/include/coin/CoinBuild.hpp +159 -0
  241. casadi/include/coin/CoinDenseFactorization.hpp +452 -0
  242. casadi/include/coin/CoinDenseVector.hpp +401 -0
  243. casadi/include/coin/CoinDistance.hpp +51 -0
  244. casadi/include/coin/CoinError.hpp +274 -0
  245. casadi/include/coin/CoinFactorization.hpp +2178 -0
  246. casadi/include/coin/CoinFileIO.hpp +185 -0
  247. casadi/include/coin/CoinFinite.hpp +37 -0
  248. casadi/include/coin/CoinFloatEqual.hpp +204 -0
  249. casadi/include/coin/CoinHelperFunctions.hpp +1270 -0
  250. casadi/include/coin/CoinIndexedVector.hpp +1437 -0
  251. casadi/include/coin/CoinLpIO.hpp +836 -0
  252. casadi/include/coin/CoinMessage.hpp +95 -0
  253. casadi/include/coin/CoinMessageHandler.hpp +717 -0
  254. casadi/include/coin/CoinModel.hpp +1214 -0
  255. casadi/include/coin/CoinModelUseful.hpp +518 -0
  256. casadi/include/coin/CoinMpsIO.hpp +1142 -0
  257. casadi/include/coin/CoinOslFactorization.hpp +287 -0
  258. casadi/include/coin/CoinPackedMatrix.hpp +956 -0
  259. casadi/include/coin/CoinPackedVector.hpp +670 -0
  260. casadi/include/coin/CoinPackedVectorBase.hpp +274 -0
  261. casadi/include/coin/CoinParam.hpp +644 -0
  262. casadi/include/coin/CoinPragma.hpp +29 -0
  263. casadi/include/coin/CoinPresolveDoubleton.hpp +76 -0
  264. casadi/include/coin/CoinPresolveDual.hpp +84 -0
  265. casadi/include/coin/CoinPresolveDupcol.hpp +259 -0
  266. casadi/include/coin/CoinPresolveEmpty.hpp +120 -0
  267. casadi/include/coin/CoinPresolveFixed.hpp +185 -0
  268. casadi/include/coin/CoinPresolveForcing.hpp +69 -0
  269. casadi/include/coin/CoinPresolveImpliedFree.hpp +66 -0
  270. casadi/include/coin/CoinPresolveIsolated.hpp +59 -0
  271. casadi/include/coin/CoinPresolveMatrix.hpp +1996 -0
  272. casadi/include/coin/CoinPresolveMonitor.hpp +105 -0
  273. casadi/include/coin/CoinPresolvePsdebug.hpp +169 -0
  274. casadi/include/coin/CoinPresolveSingleton.hpp +115 -0
  275. casadi/include/coin/CoinPresolveSubst.hpp +103 -0
  276. casadi/include/coin/CoinPresolveTighten.hpp +58 -0
  277. casadi/include/coin/CoinPresolveTripleton.hpp +69 -0
  278. casadi/include/coin/CoinPresolveUseless.hpp +63 -0
  279. casadi/include/coin/CoinPresolveZeros.hpp +65 -0
  280. casadi/include/coin/CoinRational.hpp +43 -0
  281. casadi/include/coin/CoinSearchTree.hpp +523 -0
  282. casadi/include/coin/CoinShallowPackedVector.hpp +149 -0
  283. casadi/include/coin/CoinSignal.hpp +127 -0
  284. casadi/include/coin/CoinSimpFactorization.hpp +432 -0
  285. casadi/include/coin/CoinSmartPtr.hpp +548 -0
  286. casadi/include/coin/CoinSnapshot.hpp +572 -0
  287. casadi/include/coin/CoinSort.hpp +753 -0
  288. casadi/include/coin/CoinStructuredModel.hpp +270 -0
  289. casadi/include/coin/CoinTime.hpp +350 -0
  290. casadi/include/coin/CoinTypes.hpp +67 -0
  291. casadi/include/coin/CoinUtility.hpp +26 -0
  292. casadi/include/coin/CoinUtilsConfig.h +34 -0
  293. casadi/include/coin/CoinWarmStart.hpp +56 -0
  294. casadi/include/coin/CoinWarmStartBasis.hpp +468 -0
  295. casadi/include/coin/CoinWarmStartDual.hpp +180 -0
  296. casadi/include/coin/CoinWarmStartPrimalDual.hpp +233 -0
  297. casadi/include/coin/CoinWarmStartVector.hpp +523 -0
  298. casadi/include/coin/Coin_C_defines.h +149 -0
  299. casadi/include/coin/Idiot.hpp +327 -0
  300. casadi/include/coin/OsiAuxInfo.hpp +261 -0
  301. casadi/include/coin/OsiBranchingObject.hpp +1097 -0
  302. casadi/include/coin/OsiCbcSolverInterface.hpp +791 -0
  303. casadi/include/coin/OsiChooseVariable.hpp +645 -0
  304. casadi/include/coin/OsiClpSolverInterface.hpp +1604 -0
  305. casadi/include/coin/OsiColCut.hpp +322 -0
  306. casadi/include/coin/OsiCollections.hpp +34 -0
  307. casadi/include/coin/OsiConfig.h +19 -0
  308. casadi/include/coin/OsiCut.hpp +251 -0
  309. casadi/include/coin/OsiCuts.hpp +505 -0
  310. casadi/include/coin/OsiPresolve.hpp +272 -0
  311. casadi/include/coin/OsiRowCut.hpp +345 -0
  312. casadi/include/coin/OsiRowCutDebugger.hpp +190 -0
  313. casadi/include/coin/OsiSolverBranch.hpp +169 -0
  314. casadi/include/coin/OsiSolverInterface.hpp +2221 -0
  315. casadi/include/coin/OsiSolverParameters.hpp +144 -0
  316. casadi/include/coin/OsiUnitTests.hpp +390 -0
  317. casadi/include/coin-or/IpAlgBuilder.hpp +417 -0
  318. casadi/include/coin-or/IpAlgStrategy.hpp +201 -0
  319. casadi/include/coin-or/IpAlgTypes.hpp +64 -0
  320. casadi/include/coin-or/IpAugSystemSolver.hpp +212 -0
  321. casadi/include/coin-or/IpBlas.hpp +426 -0
  322. casadi/include/coin-or/IpCachedResults.hpp +897 -0
  323. casadi/include/coin-or/IpCompoundMatrix.hpp +423 -0
  324. casadi/include/coin-or/IpCompoundSymMatrix.hpp +348 -0
  325. casadi/include/coin-or/IpCompoundVector.hpp +395 -0
  326. casadi/include/coin-or/IpConvCheck.hpp +97 -0
  327. casadi/include/coin-or/IpDebug.hpp +167 -0
  328. casadi/include/coin-or/IpDenseVector.hpp +626 -0
  329. casadi/include/coin-or/IpDiagMatrix.hpp +158 -0
  330. casadi/include/coin-or/IpEqMultCalculator.hpp +76 -0
  331. casadi/include/coin-or/IpException.hpp +156 -0
  332. casadi/include/coin-or/IpExpansionMatrix.hpp +245 -0
  333. casadi/include/coin-or/IpGenTMatrix.hpp +290 -0
  334. casadi/include/coin-or/IpHessianUpdater.hpp +73 -0
  335. casadi/include/coin-or/IpIdentityMatrix.hpp +167 -0
  336. casadi/include/coin-or/IpIpoptAlg.hpp +257 -0
  337. casadi/include/coin-or/IpIpoptApplication.hpp +367 -0
  338. casadi/include/coin-or/IpIpoptCalculatedQuantities.hpp +1009 -0
  339. casadi/include/coin-or/IpIpoptData.hpp +966 -0
  340. casadi/include/coin-or/IpIpoptNLP.hpp +328 -0
  341. casadi/include/coin-or/IpIterateInitializer.hpp +68 -0
  342. casadi/include/coin-or/IpIteratesVector.hpp +840 -0
  343. casadi/include/coin-or/IpIterationOutput.hpp +78 -0
  344. casadi/include/coin-or/IpJournalist.hpp +573 -0
  345. casadi/include/coin-or/IpLapack.hpp +227 -0
  346. casadi/include/coin-or/IpLibraryLoader.hpp +76 -0
  347. casadi/include/coin-or/IpLineSearch.hpp +106 -0
  348. casadi/include/coin-or/IpLinearSolvers.h +46 -0
  349. casadi/include/coin-or/IpMatrix.hpp +434 -0
  350. casadi/include/coin-or/IpMuUpdate.hpp +77 -0
  351. casadi/include/coin-or/IpNLP.hpp +306 -0
  352. casadi/include/coin-or/IpNLPScaling.hpp +582 -0
  353. casadi/include/coin-or/IpObserver.hpp +422 -0
  354. casadi/include/coin-or/IpOptionsList.hpp +412 -0
  355. casadi/include/coin-or/IpOrigIpoptNLP.hpp +603 -0
  356. casadi/include/coin-or/IpPDSystemSolver.hpp +137 -0
  357. casadi/include/coin-or/IpReferenced.hpp +262 -0
  358. casadi/include/coin-or/IpRegOptions.hpp +1152 -0
  359. casadi/include/coin-or/IpReturnCodes.h +23 -0
  360. casadi/include/coin-or/IpReturnCodes.hpp +18 -0
  361. casadi/include/coin-or/IpReturnCodes.inc +71 -0
  362. casadi/include/coin-or/IpReturnCodes_inc.h +45 -0
  363. casadi/include/coin-or/IpScaledMatrix.hpp +291 -0
  364. casadi/include/coin-or/IpSearchDirCalculator.hpp +72 -0
  365. casadi/include/coin-or/IpSmartPtr.hpp +865 -0
  366. casadi/include/coin-or/IpSolveStatistics.hpp +210 -0
  367. casadi/include/coin-or/IpSparseSymLinearSolverInterface.hpp +260 -0
  368. casadi/include/coin-or/IpStdAugSystemSolver.cpp +555 -0
  369. casadi/include/coin-or/IpStdCInterface.h +428 -0
  370. casadi/include/coin-or/IpSumSymMatrix.hpp +186 -0
  371. casadi/include/coin-or/IpSymLinearSolver.hpp +141 -0
  372. casadi/include/coin-or/IpSymMatrix.hpp +167 -0
  373. casadi/include/coin-or/IpSymScaledMatrix.hpp +255 -0
  374. casadi/include/coin-or/IpSymTMatrix.hpp +275 -0
  375. casadi/include/coin-or/IpTNLP.hpp +820 -0
  376. casadi/include/coin-or/IpTNLPAdapter.hpp +648 -0
  377. casadi/include/coin-or/IpTNLPReducer.hpp +274 -0
  378. casadi/include/coin-or/IpTaggedObject.hpp +128 -0
  379. casadi/include/coin-or/IpTimedTask.hpp +218 -0
  380. casadi/include/coin-or/IpTimingStatistics.hpp +323 -0
  381. casadi/include/coin-or/IpTripletHelper.hpp +308 -0
  382. casadi/include/coin-or/IpTypes.h +81 -0
  383. casadi/include/coin-or/IpTypes.hpp +30 -0
  384. casadi/include/coin-or/IpUtils.hpp +166 -0
  385. casadi/include/coin-or/IpVector.hpp +892 -0
  386. casadi/include/coin-or/IpZeroSymMatrix.hpp +155 -0
  387. casadi/include/coin-or/IpoptConfig.h +45 -0
  388. casadi/include/coin-or/SensAlgorithm.hpp +114 -0
  389. casadi/include/coin-or/SensApplication.hpp +188 -0
  390. casadi/include/coin-or/SensBacksolver.hpp +36 -0
  391. casadi/include/coin-or/SensMeasurement.hpp +56 -0
  392. casadi/include/coin-or/SensPCalculator.hpp +137 -0
  393. casadi/include/coin-or/SensRegOp.hpp +21 -0
  394. casadi/include/coin-or/SensSchurData.hpp +182 -0
  395. casadi/include/coin-or/SensSchurDriver.hpp +118 -0
  396. casadi/include/coin-or/SensSimpleBacksolver.hpp +49 -0
  397. casadi/include/coin-or/SensStepCalc.hpp +85 -0
  398. casadi/include/coin-or/SensUtils.hpp +63 -0
  399. casadi/include/coin-or/metis/defs.h +161 -0
  400. casadi/include/coin-or/metis/macros.h +143 -0
  401. casadi/include/coin-or/metis/metis.h +37 -0
  402. casadi/include/coin-or/metis/proto.h +505 -0
  403. casadi/include/coin-or/metis/rename.h +418 -0
  404. casadi/include/coin-or/metis/struct.h +251 -0
  405. casadi/include/coin-or/mumps/dmumps_c.h +142 -0
  406. casadi/include/coin-or/mumps/mumps_c_types.h +72 -0
  407. casadi/include/coin-or/mumps/mumps_compat.h +27 -0
  408. casadi/include/coin-or/mumps/mumps_int_def.h +11 -0
  409. casadi/include/coin-or/mumps/mumps_mpi.h +67 -0
  410. casadi/include/d_blas.h +78 -0
  411. casadi/include/d_blas_64.h +73 -0
  412. casadi/include/openblas/cblas.h +411 -0
  413. casadi/include/openblas/f77blas.h +796 -0
  414. casadi/include/openblas/lapack.h +22997 -0
  415. casadi/include/openblas/lapacke.h +12665 -0
  416. casadi/include/openblas/lapacke_config.h +119 -0
  417. casadi/include/openblas/lapacke_example_aux.h +9 -0
  418. casadi/include/openblas/lapacke_mangling.h +17 -0
  419. casadi/include/openblas/lapacke_utils.h +582 -0
  420. casadi/include/openblas/openblas/lapacke_mangling.h +17 -0
  421. casadi/include/openblas/openblas_config.h +139 -0
  422. casadi/include/qdldl/qdldl.h +169 -0
  423. casadi/include/qdldl/qdldl_types.h +23 -0
  424. casadi/include/s_blas.h +78 -0
  425. casadi/include/s_blas_64.h +73 -0
  426. casadi/lib64/libtinyxml2.a +0 -0
  427. casadi/libCbc.la +3 -3
  428. casadi/libCbc.so +0 -0
  429. casadi/libCbc.so.3 +0 -0
  430. casadi/libCbc.so.3.10.11 +0 -0
  431. casadi/libCbcSolver.la +3 -3
  432. casadi/libCbcSolver.so +0 -0
  433. casadi/libCbcSolver.so.3 +0 -0
  434. casadi/libCbcSolver.so.3.10.11 +0 -0
  435. casadi/libCgl.la +2 -2
  436. casadi/libCgl.so +0 -0
  437. casadi/libCgl.so.1 +0 -0
  438. casadi/libCgl.so.1.10.8 +0 -0
  439. casadi/libClp.la +2 -2
  440. casadi/libClp.so +0 -0
  441. casadi/libClp.so.1 +0 -0
  442. casadi/libClp.so.1.14.9 +0 -0
  443. casadi/libClpSolver.la +2 -2
  444. casadi/libClpSolver.so +0 -0
  445. casadi/libClpSolver.so.1 +0 -0
  446. casadi/{libClpSolver.so.1.14.7 → libClpSolver.so.1.14.9} +0 -0
  447. casadi/libCoinUtils.la +2 -2
  448. casadi/libCoinUtils.so +0 -0
  449. casadi/libCoinUtils.so.3 +0 -0
  450. casadi/libCoinUtils.so.3.11.10 +0 -0
  451. casadi/libOsi.la +2 -2
  452. casadi/libOsiCbc.la +3 -3
  453. casadi/libOsiCbc.so +0 -0
  454. casadi/libOsiCbc.so.3 +0 -0
  455. casadi/{libOsiCbc.so.3.10.6 → libOsiCbc.so.3.10.11} +0 -0
  456. casadi/libOsiClp.la +2 -2
  457. casadi/libOsiClp.so +0 -0
  458. casadi/libOsiClp.so.1 +0 -0
  459. casadi/libOsiClp.so.1.14.9 +0 -0
  460. casadi/libOsiCommonTests.la +2 -2
  461. casadi/libOsiCommonTests.so +0 -0
  462. casadi/libOsiCommonTests.so.1 +0 -0
  463. casadi/{libOsiCommonTests.so.1.13.7 → libOsiCommonTests.so.1.13.9} +0 -0
  464. casadi/libbonmin.la +3 -3
  465. casadi/libbonmin.so +0 -0
  466. casadi/libbonmin.so.4 +0 -0
  467. casadi/libbonmin.so.4.8.9 +0 -0
  468. casadi/libcasadi.so +0 -0
  469. casadi/libcasadi.so.3.7 +0 -0
  470. casadi/libcasadi_conic_cbc.so +0 -0
  471. casadi/libcasadi_conic_cbc.so.3.7 +0 -0
  472. casadi/libcasadi_conic_clp.so +0 -0
  473. casadi/libcasadi_conic_clp.so.3.7 +0 -0
  474. casadi/libcasadi_conic_cplex.so +0 -0
  475. casadi/libcasadi_conic_cplex.so.3.7 +0 -0
  476. casadi/libcasadi_conic_gurobi.so +0 -0
  477. casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
  478. casadi/libcasadi_conic_hpipm.so +0 -0
  479. casadi/libcasadi_conic_hpipm.so.3.7 +0 -0
  480. casadi/libcasadi_conic_ipqp.so +0 -0
  481. casadi/libcasadi_conic_ipqp.so.3.7 +0 -0
  482. casadi/libcasadi_conic_nlpsol.so +0 -0
  483. casadi/libcasadi_conic_nlpsol.so.3.7 +0 -0
  484. casadi/libcasadi_conic_osqp.so +0 -0
  485. casadi/libcasadi_conic_osqp.so.3.7 +0 -0
  486. casadi/libcasadi_conic_qpoases.so +0 -0
  487. casadi/libcasadi_conic_qpoases.so.3.7 +0 -0
  488. casadi/libcasadi_conic_qrqp.so +0 -0
  489. casadi/libcasadi_conic_qrqp.so.3.7 +0 -0
  490. casadi/libcasadi_conic_superscs.so +0 -0
  491. casadi/libcasadi_conic_superscs.so.3.7 +0 -0
  492. casadi/libcasadi_integrator_collocation.so +0 -0
  493. casadi/libcasadi_integrator_collocation.so.3.7 +0 -0
  494. casadi/libcasadi_integrator_cvodes.so +0 -0
  495. casadi/libcasadi_integrator_cvodes.so.3.7 +0 -0
  496. casadi/libcasadi_integrator_idas.so +0 -0
  497. casadi/libcasadi_integrator_idas.so.3.7 +0 -0
  498. casadi/libcasadi_interpolant_bspline.so +0 -0
  499. casadi/libcasadi_interpolant_bspline.so.3.7 +0 -0
  500. casadi/libcasadi_interpolant_linear.so +0 -0
  501. casadi/libcasadi_interpolant_linear.so.3.7 +0 -0
  502. casadi/libcasadi_linsol_lapacklu.so +0 -0
  503. casadi/libcasadi_linsol_lapacklu.so.3.7 +0 -0
  504. casadi/libcasadi_linsol_lapackqr.so +0 -0
  505. casadi/libcasadi_linsol_lapackqr.so.3.7 +0 -0
  506. casadi/libcasadi_linsol_ldl.so +0 -0
  507. casadi/libcasadi_linsol_ldl.so.3.7 +0 -0
  508. casadi/libcasadi_linsol_mumps.so +0 -0
  509. casadi/libcasadi_linsol_mumps.so.3.7 +0 -0
  510. casadi/libcasadi_linsol_qr.so +0 -0
  511. casadi/libcasadi_linsol_qr.so.3.7 +0 -0
  512. casadi/libcasadi_linsol_symbolicqr.so +0 -0
  513. casadi/libcasadi_linsol_symbolicqr.so.3.7 +0 -0
  514. casadi/libcasadi_nlpsol_ampl.so +0 -0
  515. casadi/libcasadi_nlpsol_ampl.so.3.7 +0 -0
  516. casadi/libcasadi_nlpsol_blocksqp.so +0 -0
  517. casadi/libcasadi_nlpsol_blocksqp.so.3.7 +0 -0
  518. casadi/libcasadi_nlpsol_bonmin.so +0 -0
  519. casadi/libcasadi_nlpsol_bonmin.so.3.7 +0 -0
  520. casadi/libcasadi_nlpsol_feasiblesqpmethod.so +0 -0
  521. casadi/libcasadi_nlpsol_feasiblesqpmethod.so.3.7 +0 -0
  522. casadi/libcasadi_nlpsol_ipopt.so +0 -0
  523. casadi/libcasadi_nlpsol_ipopt.so.3.7 +0 -0
  524. casadi/libcasadi_nlpsol_knitro.so +0 -0
  525. casadi/libcasadi_nlpsol_knitro.so.3.7 +0 -0
  526. casadi/libcasadi_nlpsol_qrsqp.so +0 -0
  527. casadi/libcasadi_nlpsol_qrsqp.so.3.7 +0 -0
  528. casadi/libcasadi_nlpsol_scpgen.so +0 -0
  529. casadi/libcasadi_nlpsol_scpgen.so.3.7 +0 -0
  530. casadi/libcasadi_nlpsol_snopt.so +0 -0
  531. casadi/libcasadi_nlpsol_snopt.so.3.7 +0 -0
  532. casadi/libcasadi_nlpsol_sqpmethod.so +0 -0
  533. casadi/libcasadi_nlpsol_sqpmethod.so.3.7 +0 -0
  534. casadi/libcasadi_nlpsol_worhp.so +0 -0
  535. casadi/libcasadi_nlpsol_worhp.so.3.7 +0 -0
  536. casadi/libcasadi_rootfinder_fast_newton.so +0 -0
  537. casadi/libcasadi_rootfinder_fast_newton.so.3.7 +0 -0
  538. casadi/libcasadi_rootfinder_newton.so +0 -0
  539. casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
  540. casadi/libcasadi_sundials_common.so +0 -0
  541. casadi/libcasadi_sundials_common.so.3.7 +0 -0
  542. casadi/libindirect.a +0 -0
  543. casadi/liblinsys.a +0 -0
  544. casadi/libosqp.a +0 -0
  545. casadi/libqdldl.a +0 -0
  546. casadi/libsuperscs.a +0 -0
  547. casadi/pkgconfig/blas.pc +11 -0
  548. casadi/pkgconfig/bonmin.pc +1 -1
  549. casadi/pkgconfig/casadi.pc +1 -1
  550. casadi/pkgconfig/cbc.pc +2 -2
  551. casadi/pkgconfig/cgl.pc +2 -2
  552. casadi/pkgconfig/clp.pc +1 -1
  553. casadi/pkgconfig/coinutils.pc +1 -1
  554. casadi/pkgconfig/lapack.pc +11 -0
  555. casadi/pkgconfig/openblas.pc +1 -1
  556. casadi/pkgconfig/osi-cbc.pc +1 -1
  557. casadi/pkgconfig/osi-clp.pc +1 -1
  558. casadi/pkgconfig/osi-unittests.pc +1 -1
  559. casadi/pkgconfig/osi.pc +1 -1
  560. {casadi-3.6.3.dist-info → casadi-3.6.5.dist-info}/METADATA +11 -3
  561. casadi-3.6.5.dist-info/RECORD +987 -0
  562. casadi/libCbc.so.3.10.6 +0 -0
  563. casadi/libCbcSolver.so.3.10.6 +0 -0
  564. casadi/libCgl.so.1.10.4 +0 -0
  565. casadi/libClp.so.1.14.7 +0 -0
  566. casadi/libCoinUtils.so.3.11.6 +0 -0
  567. casadi/libOsiClp.so.1.14.7 +0 -0
  568. casadi/libbonmin.so.4.8.8 +0 -0
  569. casadi-3.6.3.dist-info/RECORD +0 -581
  570. /casadi/{libOsi.so.1.13.7 → libOsi.so.1.13.9} +0 -0
  571. {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