casadi 3.6.4__cp39-none-manylinux2014_i686.whl → 3.6.6__cp39-none-manylinux2014_i686.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 +984 -500
- casadi/cbc +0 -0
- casadi/clp +0 -0
- casadi/cmake/casadi-config-version.cmake +1 -1
- casadi/cmake/highs/highs-config.cmake +6 -13
- casadi/cmake/highs/highs-targets-release.cmake +13 -13
- casadi/cmake/highs/highs-targets.cmake +13 -10
- casadi/highs +0 -0
- casadi/include/casadi/casadi.i +33 -15
- casadi/include/casadi/casadi_c.h +2 -0
- casadi/include/casadi/config.h +8 -8
- casadi/include/casadi/core/casadi_common.hpp +1 -0
- casadi/include/casadi/core/casadi_misc.hpp +13 -0
- casadi/include/casadi/core/casadi_types.hpp +3 -2
- casadi/include/casadi/core/code_generator.hpp +59 -2
- casadi/include/casadi/core/core.hpp +1 -0
- casadi/include/casadi/core/generic_expression.hpp +1 -1
- casadi/include/casadi/core/generic_type.hpp +25 -1
- casadi/include/casadi/core/global_options.hpp +2 -0
- casadi/include/casadi/core/matrix_decl.hpp +15 -0
- casadi/include/casadi/core/mx.hpp +13 -3
- casadi/include/casadi/core/optistack.hpp +23 -0
- casadi/include/casadi/core/runtime/casadi_nlp.hpp +133 -6
- casadi/include/casadi/core/runtime/casadi_ocp_block.hpp +55 -0
- casadi/include/casadi/core/runtime/casadi_oracle.hpp +44 -0
- casadi/include/casadi/core/runtime/casadi_oracle_callback.hpp +39 -0
- casadi/include/casadi/core/runtime/casadi_runtime.hpp +4 -1
- casadi/include/casadi/core/runtime/casadi_scaled_copy.hpp +31 -0
- casadi/include/casadi/core/runtime/casadi_sqpmethod.hpp +11 -1
- casadi/include/casadi/core/serializing_stream.hpp +2 -2
- casadi/include/casadi/core/sparsity.hpp +12 -3
- casadi/include/casadi/core/tools.hpp +67 -0
- casadi/include/casadi/doc.i +2283 -1491
- casadi/include/casadi/doc_merged.i +1522 -1065
- casadi/include/casadi/mem.h +1 -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/daqp/api.h +46 -0
- casadi/include/daqp/auxiliary.h +29 -0
- casadi/include/daqp/bnb.h +32 -0
- casadi/include/daqp/codegen.h +18 -0
- casadi/include/daqp/constants.h +92 -0
- casadi/include/daqp/daqp.h +22 -0
- casadi/include/daqp/daqp_prox.h +18 -0
- casadi/include/daqp/factorization.h +18 -0
- casadi/include/daqp/types.h +161 -0
- casadi/include/daqp/utils.h +44 -0
- casadi/include/highs/HConfig.h +6 -5
- casadi/include/highs/Highs.h +93 -23
- casadi/include/highs/filereaderlp/def.hpp +19 -0
- casadi/include/highs/interfaces/highs_c_api.h +200 -24
- casadi/include/highs/io/Filereader.h +1 -1
- casadi/include/highs/io/FilereaderEms.h +1 -1
- casadi/include/highs/io/FilereaderLp.h +1 -1
- casadi/include/highs/io/FilereaderMps.h +1 -1
- casadi/include/highs/io/HMPSIO.h +1 -1
- casadi/include/highs/io/HMpsFF.h +5 -3
- casadi/include/highs/io/HighsIO.h +18 -8
- casadi/include/highs/io/LoadOptions.h +1 -1
- casadi/include/highs/ipm/IpxSolution.h +35 -0
- casadi/include/highs/ipm/IpxWrapper.h +1 -1
- casadi/include/highs/ipm/basiclu/basiclu.h +161 -0
- casadi/include/highs/ipm/basiclu/basiclu_factorize.h +247 -0
- casadi/include/highs/ipm/basiclu/basiclu_get_factors.h +108 -0
- casadi/include/highs/ipm/basiclu/basiclu_initialize.h +119 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_factorize.h +34 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_free.h +19 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_get_factors.h +34 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_initialize.h +46 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_dense.h +29 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_for_update.h +42 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_solve_sparse.h +32 -0
- casadi/include/highs/ipm/basiclu/basiclu_obj_update.h +31 -0
- casadi/include/highs/ipm/basiclu/basiclu_object.h +30 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_dense.h +75 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_for_update.h +169 -0
- casadi/include/highs/ipm/basiclu/basiclu_solve_sparse.h +112 -0
- casadi/include/highs/ipm/basiclu/basiclu_update.h +125 -0
- casadi/include/highs/ipm/basiclu/lu_def.h +39 -0
- casadi/include/highs/ipm/basiclu/lu_file.h +21 -0
- casadi/include/highs/ipm/basiclu/lu_internal.h +220 -0
- casadi/include/highs/ipm/basiclu/lu_list.h +168 -0
- casadi/include/highs/ipm/ipx/basiclu_kernel.h +20 -0
- casadi/include/highs/ipm/ipx/basiclu_wrapper.h +47 -0
- casadi/include/highs/ipm/ipx/basis.h +351 -0
- casadi/include/highs/ipm/ipx/conjugate_residuals.h +74 -0
- casadi/include/highs/ipm/ipx/control.h +163 -0
- casadi/include/highs/ipm/ipx/crossover.h +157 -0
- casadi/include/highs/ipm/ipx/diagonal_precond.h +45 -0
- casadi/include/highs/ipm/ipx/forrest_tomlin.h +102 -0
- casadi/include/highs/ipm/ipx/guess_basis.h +21 -0
- casadi/include/highs/ipm/ipx/indexed_vector.h +113 -0
- casadi/include/highs/ipm/ipx/info.h +27 -0
- casadi/include/highs/ipm/ipx/ipm.h +94 -0
- casadi/include/highs/ipm/ipx/ipx_c.h +47 -0
- casadi/include/highs/ipm/ipx/ipx_config.h +9 -0
- casadi/include/highs/ipm/ipx/ipx_info.h +111 -0
- casadi/include/highs/ipm/ipx/ipx_internal.h +88 -0
- casadi/include/highs/ipm/ipx/ipx_parameters.h +75 -0
- casadi/include/highs/ipm/ipx/ipx_status.h +57 -0
- casadi/include/highs/ipm/ipx/iterate.h +328 -0
- casadi/include/highs/ipm/ipx/kkt_solver.h +70 -0
- casadi/include/highs/ipm/ipx/kkt_solver_basis.h +66 -0
- casadi/include/highs/ipm/ipx/kkt_solver_diag.h +48 -0
- casadi/include/highs/ipm/ipx/linear_operator.h +26 -0
- casadi/include/highs/ipm/ipx/lp_solver.h +201 -0
- casadi/include/highs/ipm/ipx/lu_factorization.h +79 -0
- casadi/include/highs/ipm/ipx/lu_update.h +129 -0
- casadi/include/highs/ipm/ipx/maxvolume.h +54 -0
- casadi/include/highs/ipm/ipx/model.h +409 -0
- casadi/include/highs/ipm/ipx/multistream.h +52 -0
- casadi/include/highs/ipm/ipx/normal_matrix.h +44 -0
- casadi/include/highs/ipm/ipx/power_method.h +44 -0
- casadi/include/highs/ipm/ipx/sparse_matrix.h +195 -0
- casadi/include/highs/ipm/ipx/sparse_utils.h +58 -0
- casadi/include/highs/ipm/ipx/splitted_normal_matrix.h +63 -0
- casadi/include/highs/ipm/ipx/starting_basis.h +39 -0
- casadi/include/highs/ipm/ipx/symbolic_invert.h +29 -0
- casadi/include/highs/ipm/ipx/timer.h +24 -0
- casadi/include/highs/ipm/ipx/utils.h +39 -0
- casadi/include/highs/lp_data/HConst.h +20 -10
- casadi/include/highs/lp_data/HStruct.h +23 -1
- casadi/include/highs/lp_data/HighsAnalysis.h +1 -1
- casadi/include/highs/lp_data/HighsCallback.h +10 -3
- casadi/include/highs/lp_data/HighsCallbackStruct.h +31 -5
- casadi/include/highs/lp_data/HighsDebug.h +1 -1
- casadi/include/highs/lp_data/HighsInfo.h +20 -2
- casadi/include/highs/lp_data/HighsInfoDebug.h +1 -1
- casadi/include/highs/lp_data/HighsLp.h +17 -1
- casadi/include/highs/lp_data/HighsLpSolverObject.h +1 -1
- casadi/include/highs/lp_data/HighsLpUtils.h +19 -19
- casadi/include/highs/lp_data/HighsModelUtils.h +1 -1
- casadi/include/highs/lp_data/HighsOptions.h +237 -10
- casadi/include/highs/lp_data/HighsRanging.h +1 -1
- casadi/include/highs/lp_data/HighsRuntimeOptions.h +2 -2
- casadi/include/highs/lp_data/HighsSolution.h +2 -2
- casadi/include/highs/lp_data/HighsSolutionDebug.h +1 -1
- casadi/include/highs/lp_data/HighsSolve.h +3 -1
- casadi/include/highs/lp_data/HighsStatus.h +1 -1
- casadi/include/highs/mip/HighsCliqueTable.h +4 -4
- casadi/include/highs/mip/HighsConflictPool.h +1 -1
- casadi/include/highs/mip/HighsCutGeneration.h +1 -1
- casadi/include/highs/mip/HighsCutPool.h +2 -2
- casadi/include/highs/mip/HighsDebugSol.h +22 -29
- casadi/include/highs/mip/HighsDomain.h +10 -2
- casadi/include/highs/mip/HighsDomainChange.h +1 -1
- casadi/include/highs/mip/HighsDynamicRowMatrix.h +5 -3
- casadi/include/highs/mip/HighsGFkSolve.h +3 -3
- casadi/include/highs/mip/HighsImplications.h +3 -3
- casadi/include/highs/mip/HighsLpAggregator.h +1 -1
- casadi/include/highs/mip/HighsLpRelaxation.h +6 -1
- casadi/include/highs/mip/HighsMipSolver.h +4 -2
- casadi/include/highs/mip/HighsMipSolverData.h +47 -4
- casadi/include/highs/mip/HighsModkSeparator.h +2 -2
- casadi/include/highs/mip/HighsNodeQueue.h +5 -3
- casadi/include/highs/mip/HighsObjectiveFunction.h +1 -1
- casadi/include/highs/mip/HighsPathSeparator.h +2 -2
- casadi/include/highs/mip/HighsPrimalHeuristics.h +1 -1
- casadi/include/highs/mip/HighsPseudocost.h +35 -23
- casadi/include/highs/mip/HighsRedcostFixing.h +1 -1
- casadi/include/highs/mip/HighsSearch.h +2 -1
- casadi/include/highs/mip/HighsSeparation.h +1 -1
- casadi/include/highs/mip/HighsSeparator.h +1 -1
- casadi/include/highs/mip/HighsTableauSeparator.h +1 -1
- casadi/include/highs/mip/HighsTransformedLp.h +1 -1
- casadi/include/highs/model/HighsHessian.h +5 -0
- casadi/include/highs/model/HighsHessianUtils.h +2 -0
- casadi/include/highs/model/HighsModel.h +10 -1
- casadi/include/highs/parallel/HighsMutex.h +2 -1
- casadi/include/highs/parallel/HighsParallel.h +7 -2
- casadi/include/highs/parallel/HighsTask.h +1 -2
- casadi/include/highs/pdlp/CupdlpWrapper.h +93 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_cs.h +41 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_defs.h +423 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_linalg.h +183 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_proj.h +19 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_restart.h +31 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_scaling_cuda.h +28 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_solver.h +98 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_step.h +33 -0
- casadi/include/highs/pdlp/cupdlp/cupdlp_utils.c +1726 -0
- casadi/include/highs/pdqsort/pdqsort.h +532 -0
- casadi/include/highs/presolve/HPresolve.h +27 -14
- casadi/include/highs/presolve/HPresolveAnalysis.h +1 -1
- casadi/include/highs/presolve/HighsPostsolveStack.h +92 -68
- casadi/include/highs/presolve/HighsSymmetry.h +6 -5
- casadi/include/highs/presolve/ICrash.h +8 -2
- casadi/include/highs/presolve/ICrashUtil.h +1 -1
- casadi/include/highs/presolve/ICrashX.h +1 -1
- casadi/include/highs/presolve/PresolveComponent.h +1 -1
- casadi/include/highs/qpsolver/a_asm.hpp +23 -12
- casadi/include/highs/qpsolver/a_quass.hpp +8 -1
- casadi/include/highs/qpsolver/basis.hpp +150 -0
- casadi/include/highs/qpsolver/crashsolution.hpp +12 -0
- casadi/include/highs/qpsolver/dantzigpricing.hpp +72 -0
- casadi/include/highs/qpsolver/devexpricing.hpp +99 -0
- casadi/include/highs/qpsolver/eventhandler.hpp +23 -0
- casadi/include/highs/qpsolver/factor.hpp +400 -0
- casadi/include/highs/qpsolver/feasibility_bounded.hpp +105 -0
- casadi/include/highs/qpsolver/feasibility_highs.hpp +270 -0
- casadi/include/highs/qpsolver/gradient.hpp +39 -0
- casadi/include/highs/qpsolver/instance.hpp +63 -0
- casadi/include/highs/qpsolver/matrix.hpp +335 -0
- casadi/include/highs/qpsolver/pricing.hpp +15 -0
- casadi/include/highs/qpsolver/qpconst.hpp +27 -0
- casadi/include/highs/qpsolver/{vector.hpp → qpvector.hpp} +25 -25
- casadi/include/highs/qpsolver/quass.hpp +1 -1
- casadi/include/highs/qpsolver/ratiotest.hpp +19 -0
- casadi/include/highs/qpsolver/runtime.hpp +38 -0
- casadi/include/highs/qpsolver/settings.hpp +57 -0
- casadi/include/highs/qpsolver/snippets.hpp +29 -0
- casadi/include/highs/qpsolver/statistics.hpp +23 -0
- casadi/include/highs/qpsolver/steepestedgepricing.hpp +167 -0
- casadi/include/highs/simplex/HApp.h +1 -1
- casadi/include/highs/simplex/HEkk.h +52 -18
- casadi/include/highs/simplex/HEkkDual.h +1 -1
- casadi/include/highs/simplex/HEkkDualRHS.h +6 -7
- casadi/include/highs/simplex/HEkkDualRow.h +2 -2
- casadi/include/highs/simplex/HEkkPrimal.h +6 -1
- casadi/include/highs/simplex/HSimplex.h +1 -3
- casadi/include/highs/simplex/HSimplexDebug.h +1 -1
- casadi/include/highs/simplex/HSimplexNla.h +1 -1
- casadi/include/highs/simplex/HSimplexReport.h +1 -1
- casadi/include/highs/simplex/HighsSimplexAnalysis.h +228 -100
- casadi/include/highs/simplex/SimplexConst.h +1 -1
- casadi/include/highs/simplex/SimplexStruct.h +2 -2
- casadi/include/highs/simplex/SimplexTimer.h +1 -1
- casadi/include/highs/test/DevKkt.h +1 -1
- casadi/include/highs/test/KktCh2.h +1 -1
- casadi/include/highs/util/FactorTimer.h +1 -1
- casadi/include/highs/util/HFactor.h +35 -6
- casadi/include/highs/util/HFactorConst.h +1 -1
- casadi/include/highs/util/HFactorDebug.h +1 -1
- casadi/include/highs/util/HSet.h +1 -1
- casadi/include/highs/util/HVector.h +1 -1
- casadi/include/highs/util/HVectorBase.h +1 -1
- casadi/include/highs/util/HighsCDouble.h +3 -3
- casadi/include/highs/util/HighsComponent.h +1 -1
- casadi/include/highs/util/HighsDataStack.h +4 -4
- casadi/include/highs/util/HighsDisjointSets.h +1 -1
- casadi/include/highs/util/HighsHash.h +28 -21
- casadi/include/highs/util/HighsHashTree.h +63 -63
- casadi/include/highs/util/HighsInt.h +1 -1
- casadi/include/highs/util/HighsIntegers.h +8 -9
- casadi/include/highs/util/HighsLinearSumBounds.h +1 -1
- casadi/include/highs/util/HighsMatrixPic.h +1 -1
- casadi/include/highs/util/HighsMatrixSlice.h +9 -6
- casadi/include/highs/util/HighsMatrixUtils.h +1 -1
- casadi/include/highs/util/HighsMemoryAllocation.h +55 -0
- casadi/include/highs/util/HighsRandom.h +27 -15
- casadi/include/highs/util/HighsRbTree.h +2 -2
- casadi/include/highs/util/HighsSort.h +7 -7
- casadi/include/highs/util/HighsSparseMatrix.h +5 -2
- casadi/include/highs/util/HighsSparseVectorSum.h +2 -2
- casadi/include/highs/util/HighsSplay.h +1 -1
- casadi/include/highs/util/HighsTimer.h +18 -9
- casadi/include/highs/util/HighsUtils.h +15 -8
- casadi/include/highs/util/stringutil.h +9 -4
- casadi/include/highs/zstr/strict_fstream.hpp +237 -0
- casadi/include/highs/zstr/zstr.hpp +472 -0
- casadi/include/licenses/daqp-external/LICENSE +21 -0
- casadi/include/licenses/highs-external/{LICENSE → LICENSE.txt} +1 -1
- casadi/include/osqp/constants.h +2 -3
- casadi/include/osqp/version.h +9 -0
- casadi/lib/libtinyxml2.a +0 -0
- casadi/libCbc.so +0 -0
- casadi/libCbc.so.3 +0 -0
- casadi/libCbc.so.3.10.11 +0 -0
- casadi/libCbcSolver.so +0 -0
- casadi/libCbcSolver.so.3 +0 -0
- casadi/libCbcSolver.so.3.10.11 +0 -0
- casadi/libCgl.so +0 -0
- casadi/libCgl.so.1 +0 -0
- casadi/libCgl.so.1.10.8 +0 -0
- casadi/libClp.so +0 -0
- casadi/libClp.so.1 +0 -0
- casadi/libClp.so.1.14.9 +0 -0
- casadi/libClpSolver.so +0 -0
- casadi/libClpSolver.so.1 +0 -0
- casadi/libClpSolver.so.1.14.9 +0 -0
- casadi/libCoinUtils.so +0 -0
- casadi/libCoinUtils.so.3 +0 -0
- casadi/libCoinUtils.so.3.11.10 +0 -0
- casadi/libOsi.so +0 -0
- casadi/libOsi.so.1 +0 -0
- casadi/libOsi.so.1.13.9 +0 -0
- casadi/libOsiCbc.so +0 -0
- casadi/libOsiCbc.so.3 +0 -0
- casadi/libOsiCbc.so.3.10.11 +0 -0
- casadi/libOsiClp.so +0 -0
- casadi/libOsiClp.so.1 +0 -0
- casadi/libOsiClp.so.1.14.9 +0 -0
- casadi/libOsiCommonTests.so +0 -0
- casadi/libOsiCommonTests.so.1 +0 -0
- casadi/libOsiCommonTests.so.1.13.9 +0 -0
- 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_daqp.so +0 -0
- casadi/libcasadi_conic_daqp.so.3.7 +0 -0
- casadi/libcasadi_conic_gurobi.so +0 -0
- casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
- casadi/libcasadi_conic_highs.so +0 -0
- casadi/libcasadi_conic_highs.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_proxqp.so +0 -0
- casadi/libcasadi_conic_proxqp.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_integrator_rk.so +0 -0
- casadi/libcasadi_integrator_rk.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_alpaqa.so +0 -0
- casadi/libcasadi_nlpsol_alpaqa.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_madnlp.so +0 -0
- casadi/libcasadi_nlpsol_madnlp.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_sleqp.so +0 -0
- casadi/libcasadi_nlpsol_sleqp.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_kinsol.so +0 -0
- casadi/libcasadi_rootfinder_kinsol.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_newton.so +0 -0
- casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so +0 -0
- casadi/libcasadi_rootfinder_nlpsol.so.3.7 +0 -0
- casadi/libcasadi_sundials_common.so +0 -0
- casadi/libcasadi_sundials_common.so.3.7 +0 -0
- casadi/libdaqp.so +0 -0
- casadi/libdaqpstat.a +0 -0
- casadi/libhighs.so +0 -0
- casadi/libhighs.so.1 +0 -0
- casadi/libhighs.so.1.7.2 +0 -0
- casadi/libindirect.a +0 -0
- casadi/libipopt.so +0 -0
- casadi/libipopt.so.3 +0 -0
- casadi/libipopt.so.3.14.11 +0 -0
- casadi/liblinsys.a +0 -0
- casadi/libmatlab_ipc.so +0 -0
- casadi/libosqp.a +0 -0
- casadi/libosqp.so +0 -0
- casadi/libqdldl.a +0 -0
- casadi/libsipopt.so +0 -0
- casadi/libsipopt.so.3 +0 -0
- casadi/libsipopt.so.3.14.11 +0 -0
- casadi/libsleqp.so +0 -0
- casadi/libsleqp.so.1.0.1 +0 -0
- casadi/libspral.a +0 -0
- casadi/libsuperscs.a +0 -0
- casadi/pkgconfig/casadi.pc +1 -1
- casadi/pkgconfig/highs.pc +1 -1
- casadi/tools/__init__.py +4 -0
- casadi/tools/bounds.py +3 -3
- {casadi-3.6.4.dist-info → casadi-3.6.6.dist-info}/METADATA +12 -4
- {casadi-3.6.4.dist-info → casadi-3.6.6.dist-info}/RECORD +490 -281
- casadi/include/highs/fortran/highs_fortran_api.mod +0 -0
- casadi/libFortranHighs.so +0 -0
- casadi/libhighs.so.1.6 +0 -0
- casadi/libhighs.so.1.6.0 +0 -0
- {casadi-3.6.4.dist-info → casadi-3.6.6.dist-info}/WHEEL +0 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
// Copyright (C) 2004, 2010 International Business Machines and others.
|
2
|
+
// All Rights Reserved.
|
3
|
+
// This code is published under the Eclipse Public License.
|
4
|
+
//
|
5
|
+
// Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
|
6
|
+
|
7
|
+
#ifndef __IPIPOPTALG_HPP__
|
8
|
+
#define __IPIPOPTALG_HPP__
|
9
|
+
|
10
|
+
#include "IpIpoptNLP.hpp"
|
11
|
+
#include "IpAlgStrategy.hpp"
|
12
|
+
#include "IpSearchDirCalculator.hpp"
|
13
|
+
#include "IpLineSearch.hpp"
|
14
|
+
#include "IpMuUpdate.hpp"
|
15
|
+
#include "IpConvCheck.hpp"
|
16
|
+
#include "IpOptionsList.hpp"
|
17
|
+
#include "IpIterateInitializer.hpp"
|
18
|
+
#include "IpIterationOutput.hpp"
|
19
|
+
#include "IpAlgTypes.hpp"
|
20
|
+
#include "IpHessianUpdater.hpp"
|
21
|
+
#include "IpEqMultCalculator.hpp"
|
22
|
+
|
23
|
+
namespace Ipopt
|
24
|
+
{
|
25
|
+
|
26
|
+
/** The main ipopt algorithm class.
|
27
|
+
*
|
28
|
+
* Main Ipopt algorithm class, contains the main optimize method,
|
29
|
+
* handles the execution of the optimization.
|
30
|
+
* The constructor initializes the data structures through the nlp,
|
31
|
+
* and the Optimize method then assumes that everything is
|
32
|
+
* initialized and ready to go.
|
33
|
+
* After an optimization is complete, the user can access the
|
34
|
+
* solution through the passed in ip_data structure.
|
35
|
+
* Multiple calls to the Optimize method are allowed as long as the
|
36
|
+
* structure of the problem remains the same (i.e. starting point
|
37
|
+
* or nlp parameter changes only).
|
38
|
+
*/
|
39
|
+
class IPOPTLIB_EXPORT IpoptAlgorithm: public AlgorithmStrategyObject
|
40
|
+
{
|
41
|
+
public:
|
42
|
+
|
43
|
+
/**@name Constructors/Destructors */
|
44
|
+
///@{
|
45
|
+
/** Constructor.
|
46
|
+
*
|
47
|
+
* The IpoptAlgorithm uses smart pointers for these
|
48
|
+
* passed-in pieces to make sure that a user of IpoptAlgoroithm
|
49
|
+
* cannot pass in an object created on the stack!
|
50
|
+
*
|
51
|
+
* The optional linear_solver_name is used for printing.
|
52
|
+
*/
|
53
|
+
IpoptAlgorithm(
|
54
|
+
const SmartPtr<SearchDirectionCalculator>& search_dir_calculator, ///< search direction calculator
|
55
|
+
const SmartPtr<LineSearch>& line_search, ///< line search
|
56
|
+
const SmartPtr<MuUpdate>& mu_update, ///< mu updater
|
57
|
+
const SmartPtr<ConvergenceCheck>& conv_check, ///< convergence check
|
58
|
+
const SmartPtr<IterateInitializer>& iterate_initializer, ///< iterate initializer
|
59
|
+
const SmartPtr<IterationOutput>& iter_output, ///< iteration output
|
60
|
+
const SmartPtr<HessianUpdater>& hessian_updater, ///< hessian updater
|
61
|
+
const SmartPtr<EqMultiplierCalculator>& eq_multiplier_calculator = NULL, ///< calculator for multipliers
|
62
|
+
const std::string& linear_solver_name = "" ///< name of linear solver @since 3.14.0
|
63
|
+
);
|
64
|
+
|
65
|
+
/** Destructor */
|
66
|
+
virtual ~IpoptAlgorithm();
|
67
|
+
///@}
|
68
|
+
|
69
|
+
/** overloaded from AlgorithmStrategyObject */
|
70
|
+
virtual bool InitializeImpl(
|
71
|
+
const OptionsList& options,
|
72
|
+
const std::string& prefix
|
73
|
+
);
|
74
|
+
|
75
|
+
/** Main solve method. */
|
76
|
+
SolverReturn Optimize(
|
77
|
+
bool isResto = false
|
78
|
+
);
|
79
|
+
|
80
|
+
/** Methods for IpoptType */
|
81
|
+
///@{
|
82
|
+
static void RegisterOptions(
|
83
|
+
SmartPtr<RegisteredOptions> roptions
|
84
|
+
);
|
85
|
+
///@}
|
86
|
+
|
87
|
+
/**@name Access to internal strategy objects */
|
88
|
+
///@{
|
89
|
+
SmartPtr<SearchDirectionCalculator> SearchDirCalc()
|
90
|
+
{
|
91
|
+
return search_dir_calculator_;
|
92
|
+
}
|
93
|
+
///@}
|
94
|
+
|
95
|
+
static void print_copyright_message(
|
96
|
+
const Journalist& jnlst
|
97
|
+
);
|
98
|
+
|
99
|
+
private:
|
100
|
+
/**@name Default Compiler Generated Methods
|
101
|
+
* (Hidden to avoid implicit creation/calling).
|
102
|
+
*
|
103
|
+
* These methods are not implemented and
|
104
|
+
* we do not want the compiler to implement
|
105
|
+
* them for us, so we declare them private
|
106
|
+
* and do not define them. This ensures that
|
107
|
+
* they will not be implicitly created/called.
|
108
|
+
*/
|
109
|
+
///@{
|
110
|
+
/** Default Constructor */
|
111
|
+
IpoptAlgorithm();
|
112
|
+
|
113
|
+
/** Copy Constructor */
|
114
|
+
IpoptAlgorithm(
|
115
|
+
const IpoptAlgorithm&
|
116
|
+
);
|
117
|
+
|
118
|
+
/** Default Assignment Operator */
|
119
|
+
void operator=(
|
120
|
+
const IpoptAlgorithm&
|
121
|
+
);
|
122
|
+
///@}
|
123
|
+
|
124
|
+
/** @name Strategy objects */
|
125
|
+
///@{
|
126
|
+
SmartPtr<SearchDirectionCalculator> search_dir_calculator_;
|
127
|
+
SmartPtr<LineSearch> line_search_;
|
128
|
+
SmartPtr<MuUpdate> mu_update_;
|
129
|
+
SmartPtr<ConvergenceCheck> conv_check_;
|
130
|
+
SmartPtr<IterateInitializer> iterate_initializer_;
|
131
|
+
SmartPtr<IterationOutput> iter_output_;
|
132
|
+
SmartPtr<HessianUpdater> hessian_updater_;
|
133
|
+
/** The multiplier calculator (for y_c and y_d) has to be set only
|
134
|
+
* if option recalc_y is set to true
|
135
|
+
*/
|
136
|
+
SmartPtr<EqMultiplierCalculator> eq_multiplier_calculator_;
|
137
|
+
///@}
|
138
|
+
|
139
|
+
/** @name Main steps of the algorithm */
|
140
|
+
///@{
|
141
|
+
/** Method for updating the current Hessian.
|
142
|
+
*
|
143
|
+
* This can either just evaluate the exact Hessian (based on
|
144
|
+
* the current iterate), or perform a quasi-Newton update.
|
145
|
+
*/
|
146
|
+
void UpdateHessian();
|
147
|
+
|
148
|
+
/** Method to update the barrier parameter.
|
149
|
+
*
|
150
|
+
* @return false, if the algorithm can't continue with the
|
151
|
+
* regular procedure and needs to revert to a fallback
|
152
|
+
* mechanism in the line search (such as restoration phase)
|
153
|
+
*/
|
154
|
+
bool UpdateBarrierParameter();
|
155
|
+
|
156
|
+
/** Method to setup the call to the PDSystemSolver.
|
157
|
+
*
|
158
|
+
* @return false, if the algorithm can't continue with the regular
|
159
|
+
* procedure and needs to revert to a fallback mechanism in the
|
160
|
+
* line search (such as restoration phase)
|
161
|
+
*/
|
162
|
+
bool ComputeSearchDirection();
|
163
|
+
|
164
|
+
/** Method computing the new iterate (usually vialine search).
|
165
|
+
*
|
166
|
+
* The acceptable point is the one in trial after return.
|
167
|
+
*/
|
168
|
+
void ComputeAcceptableTrialPoint();
|
169
|
+
|
170
|
+
/** Method for accepting the trial point as the new iteration,
|
171
|
+
* possibly after adjusting the variable bounds in the NLP.
|
172
|
+
*/
|
173
|
+
void AcceptTrialPoint();
|
174
|
+
|
175
|
+
/** Do all the output for one iteration */
|
176
|
+
void OutputIteration();
|
177
|
+
|
178
|
+
/** Sets up initial values for the iterates.
|
179
|
+
*
|
180
|
+
* Corrects the initial values for x and s (force in bounds)
|
181
|
+
*/
|
182
|
+
void InitializeIterates();
|
183
|
+
|
184
|
+
/** Print the problem size statistics */
|
185
|
+
void PrintProblemStatistics();
|
186
|
+
|
187
|
+
/** Compute the Lagrangian multipliers for a feasibility problem */
|
188
|
+
void ComputeFeasibilityMultipliers();
|
189
|
+
///@}
|
190
|
+
|
191
|
+
/** @name internal flags */
|
192
|
+
///@{
|
193
|
+
/** Flag indicating if the statistic should not be printed */
|
194
|
+
bool skip_print_problem_stats_;
|
195
|
+
///@}
|
196
|
+
|
197
|
+
/** @name Algorithmic parameters */
|
198
|
+
///@{
|
199
|
+
/** safeguard factor for bound multipliers.
|
200
|
+
*
|
201
|
+
* If value >= 1, then
|
202
|
+
* the dual variables will never deviate from the primal estimate
|
203
|
+
* by more than the factors kappa_sigma and 1./kappa_sigma.
|
204
|
+
*/
|
205
|
+
Number kappa_sigma_;
|
206
|
+
/** Flag indicating whether the y multipliers should be
|
207
|
+
* recalculated with the eq_mutliplier_calculator object for each
|
208
|
+
* new point.
|
209
|
+
*/
|
210
|
+
bool recalc_y_;
|
211
|
+
/** Feasibility threshold for recalc_y */
|
212
|
+
Number recalc_y_feas_tol_;
|
213
|
+
/** Flag indicating if we want to do Mehrotras's algorithm.
|
214
|
+
*
|
215
|
+
* This means that a number of options are ignored, or have to be set
|
216
|
+
* (or are automatically set) to certain values.
|
217
|
+
*/
|
218
|
+
bool mehrotra_algorithm_;
|
219
|
+
/** String specifying linear solver */
|
220
|
+
std::string linear_solver_name_;
|
221
|
+
///@}
|
222
|
+
|
223
|
+
/** @name auxiliary functions */
|
224
|
+
///@{
|
225
|
+
void calc_number_of_bounds(
|
226
|
+
const Vector& x,
|
227
|
+
const Vector& x_L,
|
228
|
+
const Vector& x_U,
|
229
|
+
const Matrix& Px_L,
|
230
|
+
const Matrix& Px_U,
|
231
|
+
Index& n_tot,
|
232
|
+
Index& n_only_lower,
|
233
|
+
Index& n_both,
|
234
|
+
Index& n_only_upper
|
235
|
+
);
|
236
|
+
|
237
|
+
/** Method for ensuring that the trial multipliers are not too far
|
238
|
+
* from the primal estime.
|
239
|
+
*
|
240
|
+
* If a correction is made, new_trial_z
|
241
|
+
* is a pointer to the corrected multiplier, and the return value
|
242
|
+
* of this method give the magnitutde of the largest correction
|
243
|
+
* that we done. If no correction was made, new_trial_z is just
|
244
|
+
* a pointer to trial_z, and the return value is zero.
|
245
|
+
*/
|
246
|
+
Number correct_bound_multiplier(
|
247
|
+
const Vector& trial_z,
|
248
|
+
const Vector& trial_slack,
|
249
|
+
const Vector& trial_compl,
|
250
|
+
SmartPtr<const Vector>& new_trial_z
|
251
|
+
);
|
252
|
+
///@}
|
253
|
+
};
|
254
|
+
|
255
|
+
} // namespace Ipopt
|
256
|
+
|
257
|
+
#endif
|
@@ -0,0 +1,367 @@
|
|
1
|
+
// Copyright (C) 2004, 2010 International Business Machines and others.
|
2
|
+
// All Rights Reserved.
|
3
|
+
// This code is published under the Eclipse Public License.
|
4
|
+
//
|
5
|
+
// Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
|
6
|
+
|
7
|
+
#ifndef __IPIPOPTAPPLICATION_HPP__
|
8
|
+
#define __IPIPOPTAPPLICATION_HPP__
|
9
|
+
|
10
|
+
#include <iostream>
|
11
|
+
|
12
|
+
#include "IpJournalist.hpp"
|
13
|
+
#include "IpTNLP.hpp"
|
14
|
+
#include "IpNLP.hpp"
|
15
|
+
#include "IpReturnCodes.hpp"
|
16
|
+
|
17
|
+
namespace Ipopt
|
18
|
+
{
|
19
|
+
DECLARE_STD_EXCEPTION(IPOPT_APPLICATION_ERROR);
|
20
|
+
|
21
|
+
/* forward declarations */
|
22
|
+
class IpoptAlgorithm;
|
23
|
+
class IpoptNLP;
|
24
|
+
class IpoptData;
|
25
|
+
class IpoptCalculatedQuantities;
|
26
|
+
class AlgorithmBuilder;
|
27
|
+
class RegisteredOptions;
|
28
|
+
class OptionsList;
|
29
|
+
class SolveStatistics;
|
30
|
+
|
31
|
+
/** This is the main application class for making calls to Ipopt. */
|
32
|
+
class IPOPTLIB_EXPORT IpoptApplication: public ReferencedObject
|
33
|
+
{
|
34
|
+
public:
|
35
|
+
IpoptApplication(
|
36
|
+
bool create_console_out = true,
|
37
|
+
bool create_empty = false
|
38
|
+
);
|
39
|
+
|
40
|
+
/** Another constructor that assumes that the code in the
|
41
|
+
* (default) constructor has already been executed
|
42
|
+
*/
|
43
|
+
IpoptApplication(
|
44
|
+
SmartPtr<RegisteredOptions> reg_options,
|
45
|
+
SmartPtr<OptionsList> options,
|
46
|
+
SmartPtr<Journalist> jnlst
|
47
|
+
);
|
48
|
+
|
49
|
+
virtual ~IpoptApplication();
|
50
|
+
|
51
|
+
/** Method for creating a new IpoptApplication that uses the same
|
52
|
+
* journalist and registered options, and a copy of the options list.
|
53
|
+
*/
|
54
|
+
virtual SmartPtr<IpoptApplication> clone();
|
55
|
+
|
56
|
+
/** Initialization method.
|
57
|
+
*
|
58
|
+
* This method reads options from the
|
59
|
+
* input stream and initializes the journalists.
|
60
|
+
*
|
61
|
+
* @return Solve_Succeeded or something else if there was a
|
62
|
+
* problem in the initialization (such as an invalid option).
|
63
|
+
*
|
64
|
+
* You should call one of the initialization methods at some
|
65
|
+
* point before the first optimize call.
|
66
|
+
* Set @par allow_clobber to true if you want to allow
|
67
|
+
* overwriting options that are set by the input stream.
|
68
|
+
*/
|
69
|
+
virtual ApplicationReturnStatus Initialize(
|
70
|
+
std::istream& is,
|
71
|
+
bool allow_clobber = false
|
72
|
+
);
|
73
|
+
|
74
|
+
/** Initialization method.
|
75
|
+
*
|
76
|
+
* This method reads options from the
|
77
|
+
* params file and initializes the journalists.
|
78
|
+
|
79
|
+
* @return Solve_Succeeded or something else if there was a
|
80
|
+
* problem in the initialization (such as an invalid option).
|
81
|
+
|
82
|
+
* You should call one of the initialization methods at some
|
83
|
+
* point before the first optimize call.
|
84
|
+
*
|
85
|
+
* @note You can skip the processing of a params file by
|
86
|
+
* setting params_file to "".
|
87
|
+
*
|
88
|
+
* Set @par allow_clobber to true if you want to allow
|
89
|
+
* overwriting options that are set by the params file.
|
90
|
+
*/
|
91
|
+
virtual ApplicationReturnStatus Initialize(
|
92
|
+
std::string params_file,
|
93
|
+
bool allow_clobber = false
|
94
|
+
);
|
95
|
+
|
96
|
+
/** Initialization method.
|
97
|
+
*
|
98
|
+
* This method reads options from the
|
99
|
+
* params file and initializes the journalists.
|
100
|
+
|
101
|
+
* @return Solve_Succeeded or something else if there was a
|
102
|
+
* problem in the initialization (such as an invalid option).
|
103
|
+
*
|
104
|
+
* You should call one of the initialization methods at some
|
105
|
+
* point before the first optimize call.
|
106
|
+
*
|
107
|
+
* @note You can skip the processing of a params file by
|
108
|
+
* setting params_file to "".
|
109
|
+
*
|
110
|
+
* Set @par allow_clobber to true if you want to allow
|
111
|
+
* overwriting options that are set by the params file.
|
112
|
+
*/
|
113
|
+
virtual ApplicationReturnStatus Initialize(
|
114
|
+
const char* params_file,
|
115
|
+
bool allow_clobber = false
|
116
|
+
)
|
117
|
+
{
|
118
|
+
return Initialize(std::string(params_file), allow_clobber);
|
119
|
+
}
|
120
|
+
|
121
|
+
/** Initialize method.
|
122
|
+
*
|
123
|
+
* This method reads the options file specified
|
124
|
+
* by the option_file_name option and initializes the journalists.
|
125
|
+
|
126
|
+
* @return Solve_Succeeded or something else if there was a
|
127
|
+
* problem in the initialization (such as an invalid option).
|
128
|
+
|
129
|
+
* You should call this method at some point before the first optimize
|
130
|
+
* call.
|
131
|
+
|
132
|
+
* Set @par allow_clobber to true if you want to allow
|
133
|
+
* overwriting options that are set by the options file.
|
134
|
+
*/
|
135
|
+
virtual ApplicationReturnStatus Initialize(
|
136
|
+
bool allow_clobber = false
|
137
|
+
);
|
138
|
+
|
139
|
+
/**@name Solve methods */
|
140
|
+
///@{
|
141
|
+
/** Solve a problem that inherits from TNLP */
|
142
|
+
virtual ApplicationReturnStatus OptimizeTNLP(
|
143
|
+
const SmartPtr<TNLP>& tnlp
|
144
|
+
);
|
145
|
+
|
146
|
+
/** Solve a problem that inherits from NLP */
|
147
|
+
virtual ApplicationReturnStatus OptimizeNLP(
|
148
|
+
const SmartPtr<NLP>& nlp
|
149
|
+
);
|
150
|
+
|
151
|
+
/** Solve a problem that inherits from NLP */
|
152
|
+
virtual ApplicationReturnStatus OptimizeNLP(
|
153
|
+
const SmartPtr<NLP>& nlp,
|
154
|
+
SmartPtr<AlgorithmBuilder>& alg_builder
|
155
|
+
);
|
156
|
+
|
157
|
+
/** Solve a problem (that inherits from TNLP) for a repeated time.
|
158
|
+
*
|
159
|
+
* The OptimizeTNLP method must have been called before. The
|
160
|
+
* TNLP must be the same object. The IpoptAlgorithm object from the
|
161
|
+
* previous solve will be reused.
|
162
|
+
*/
|
163
|
+
virtual ApplicationReturnStatus ReOptimizeTNLP(
|
164
|
+
const SmartPtr<TNLP>& tnlp
|
165
|
+
);
|
166
|
+
|
167
|
+
/** Solve a problem (that inherits from NLP) for a repeated time.
|
168
|
+
*
|
169
|
+
* The OptimizeNLP method must have been called before. The
|
170
|
+
* NLP must be the same object. The IpoptAlgorithm object from the
|
171
|
+
* previous solve will be reused.
|
172
|
+
*/
|
173
|
+
virtual ApplicationReturnStatus ReOptimizeNLP(
|
174
|
+
const SmartPtr<NLP>& nlp
|
175
|
+
);
|
176
|
+
///@}
|
177
|
+
|
178
|
+
/** Method for opening an output file with given print_level.
|
179
|
+
*
|
180
|
+
* @return false if there was a problem
|
181
|
+
*/
|
182
|
+
virtual bool OpenOutputFile(
|
183
|
+
std::string file_name,
|
184
|
+
EJournalLevel print_level
|
185
|
+
);
|
186
|
+
|
187
|
+
/**@name Accessor methods */
|
188
|
+
///@{
|
189
|
+
/** Get the Journalist for printing output */
|
190
|
+
virtual SmartPtr<Journalist> Jnlst()
|
191
|
+
{
|
192
|
+
return jnlst_;
|
193
|
+
}
|
194
|
+
|
195
|
+
/** Get a pointer to RegisteredOptions object to add new options */
|
196
|
+
virtual SmartPtr<RegisteredOptions> RegOptions()
|
197
|
+
{
|
198
|
+
return reg_options_;
|
199
|
+
}
|
200
|
+
|
201
|
+
/** Get the options list for setting options */
|
202
|
+
virtual SmartPtr<OptionsList> Options()
|
203
|
+
{
|
204
|
+
return options_;
|
205
|
+
}
|
206
|
+
|
207
|
+
/** Get the options list for setting options (const version) */
|
208
|
+
virtual SmartPtr<const OptionsList> Options() const
|
209
|
+
{
|
210
|
+
return ConstPtr(options_);
|
211
|
+
}
|
212
|
+
|
213
|
+
/** Get the object with the statistics about the most recent
|
214
|
+
* optimization run.
|
215
|
+
*
|
216
|
+
* @note Statistics are not available if optimization terminated
|
217
|
+
* with a serious problem, that is, an ApplicationReturnStatus of
|
218
|
+
* Not_Enough_Degrees_Of_Freedom or lower.
|
219
|
+
*/
|
220
|
+
virtual SmartPtr<SolveStatistics> Statistics();
|
221
|
+
|
222
|
+
/** Get the IpoptNLP Object */
|
223
|
+
virtual SmartPtr<IpoptNLP> IpoptNLPObject();
|
224
|
+
|
225
|
+
/** Get the IpoptData Object */
|
226
|
+
SmartPtr<IpoptData> IpoptDataObject();
|
227
|
+
|
228
|
+
/** Get the IpoptCQ Object */
|
229
|
+
virtual SmartPtr<IpoptCalculatedQuantities> IpoptCQObject();
|
230
|
+
|
231
|
+
/** Get the Algorithm Object */
|
232
|
+
SmartPtr<IpoptAlgorithm> AlgorithmObject();
|
233
|
+
///@}
|
234
|
+
|
235
|
+
/** Method for printing Ipopt copyright message now instead of
|
236
|
+
* just before the optimization.
|
237
|
+
*
|
238
|
+
* If you want to have the copy right message printed earlier
|
239
|
+
* than by default, call this method at the convenient time.
|
240
|
+
*/
|
241
|
+
void PrintCopyrightMessage();
|
242
|
+
|
243
|
+
/** Method to set whether non-ipopt non-bad_alloc non-overflow_error exceptions
|
244
|
+
* are rethrown by Ipopt.
|
245
|
+
*
|
246
|
+
* By default, non-Ipopt and non-bad_alloc and non-overflow_error exceptions are
|
247
|
+
* caught by Ipopts initialization and optimization methods
|
248
|
+
* and the status NonIpopt_Exception_Thrown is returned.
|
249
|
+
* This function allows to enable rethrowing of such exceptions.
|
250
|
+
*
|
251
|
+
* @return Returns whether non-ipopt exceptions were rethrown before.
|
252
|
+
*/
|
253
|
+
bool RethrowNonIpoptException(
|
254
|
+
bool dorethrow
|
255
|
+
)
|
256
|
+
{
|
257
|
+
bool oldval = rethrow_nonipoptexception_;
|
258
|
+
rethrow_nonipoptexception_ = dorethrow;
|
259
|
+
return oldval;
|
260
|
+
}
|
261
|
+
|
262
|
+
static void RegisterOptions(
|
263
|
+
SmartPtr<RegisteredOptions> roptions
|
264
|
+
);
|
265
|
+
|
266
|
+
/** Method to register all Ipopt options. */
|
267
|
+
static void
|
268
|
+
RegisterAllIpoptOptions(
|
269
|
+
const SmartPtr<RegisteredOptions>& roptions
|
270
|
+
);
|
271
|
+
|
272
|
+
private:
|
273
|
+
/**@name Default Compiler Generated Methods
|
274
|
+
* (Hidden to avoid implicit creation/calling).
|
275
|
+
* These methods are not implemented and
|
276
|
+
* we do not want the compiler to implement
|
277
|
+
* them for us, so we declare them private
|
278
|
+
* and do not define them. This ensures that
|
279
|
+
* they will not be implicitly created/called. */
|
280
|
+
///@{
|
281
|
+
/** Copy Constructor */
|
282
|
+
IpoptApplication(
|
283
|
+
const IpoptApplication&
|
284
|
+
);
|
285
|
+
|
286
|
+
/** Default Assignment Operator */
|
287
|
+
void operator=(
|
288
|
+
const IpoptApplication&
|
289
|
+
);
|
290
|
+
///@}
|
291
|
+
|
292
|
+
/** Method for the actual optimize call of the Ipopt algorithm.
|
293
|
+
*
|
294
|
+
* This is used both for Optimize and ReOptimize
|
295
|
+
*/
|
296
|
+
ApplicationReturnStatus call_optimize();
|
297
|
+
|
298
|
+
/**@name Variables that customize the application behavior */
|
299
|
+
///@{
|
300
|
+
/** Decide whether or not the ipopt.opt file should be read */
|
301
|
+
bool read_params_dat_;
|
302
|
+
|
303
|
+
/** Decide whether non-ipopt non-bad_alloc non-overflow_error exceptions should be rethrown */
|
304
|
+
bool rethrow_nonipoptexception_;
|
305
|
+
///@}
|
306
|
+
|
307
|
+
/** Journalist for reporting output */
|
308
|
+
SmartPtr<Journalist> jnlst_;
|
309
|
+
|
310
|
+
/** RegisteredOptions */
|
311
|
+
SmartPtr<RegisteredOptions> reg_options_;
|
312
|
+
|
313
|
+
/** OptionsList used for the application */
|
314
|
+
SmartPtr<OptionsList> options_;
|
315
|
+
|
316
|
+
/** Object for storing statistics about the most recent
|
317
|
+
* optimization run.
|
318
|
+
*/
|
319
|
+
SmartPtr<SolveStatistics> statistics_;
|
320
|
+
|
321
|
+
/** Object with the algorithm skeleton.
|
322
|
+
*/
|
323
|
+
SmartPtr<IpoptAlgorithm> alg_;
|
324
|
+
|
325
|
+
/** IpoptNLP Object for the NLP.
|
326
|
+
*
|
327
|
+
* We keep this around for a ReOptimize warm start.
|
328
|
+
*/
|
329
|
+
SmartPtr<IpoptNLP> ip_nlp_;
|
330
|
+
|
331
|
+
/** IpoptData Object for the NLP.
|
332
|
+
*
|
333
|
+
* We keep this around for a ReOptimize warm start.
|
334
|
+
*/
|
335
|
+
SmartPtr<IpoptData> ip_data_;
|
336
|
+
|
337
|
+
/** IpoptCalculatedQuantities Object for the NLP.
|
338
|
+
*
|
339
|
+
* We keep this around for a ReOptimize warm start.
|
340
|
+
*/
|
341
|
+
SmartPtr<IpoptCalculatedQuantities> ip_cq_;
|
342
|
+
|
343
|
+
/** Pointer to the TNLPAdapter used to convert the TNLP to an NLP.
|
344
|
+
*
|
345
|
+
* We keep this around for the ReOptimizerTNLP call.
|
346
|
+
*/
|
347
|
+
SmartPtr<NLP> nlp_adapter_;
|
348
|
+
|
349
|
+
/** @name Algorithmic parameters */
|
350
|
+
///@{
|
351
|
+
/** Flag indicating if we are to use the inexact linear solver option */
|
352
|
+
bool inexact_algorithm_;
|
353
|
+
|
354
|
+
/** Flag indicating if all bounds should be replaced by inequality
|
355
|
+
* constraints.
|
356
|
+
*
|
357
|
+
* This is necessary for the inexact algorithm.
|
358
|
+
*/
|
359
|
+
bool replace_bounds_;
|
360
|
+
///@}
|
361
|
+
};
|
362
|
+
|
363
|
+
} // namespace Ipopt
|
364
|
+
|
365
|
+
extern "C" IPOPTLIB_EXPORT class Ipopt::IpoptApplication* IPOPT_CALLCONV IpoptApplicationFactory();
|
366
|
+
|
367
|
+
#endif
|