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,603 @@
|
|
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 __IPORIGIPOPTNLP_HPP__
|
8
|
+
#define __IPORIGIPOPTNLP_HPP__
|
9
|
+
|
10
|
+
#include "IpIpoptNLP.hpp"
|
11
|
+
#include "IpException.hpp"
|
12
|
+
#include "IpTimingStatistics.hpp"
|
13
|
+
|
14
|
+
namespace Ipopt
|
15
|
+
{
|
16
|
+
|
17
|
+
/** enumeration for the Hessian information type. */
|
18
|
+
enum HessianApproximationType
|
19
|
+
{
|
20
|
+
EXACT = 0,
|
21
|
+
LIMITED_MEMORY
|
22
|
+
};
|
23
|
+
|
24
|
+
/** enumeration for the Hessian approximation space. */
|
25
|
+
enum HessianApproximationSpace
|
26
|
+
{
|
27
|
+
NONLINEAR_VARS = 0,
|
28
|
+
ALL_VARS
|
29
|
+
};
|
30
|
+
|
31
|
+
/** This class maps the traditional NLP into
|
32
|
+
* something that is more useful for %Ipopt.
|
33
|
+
*
|
34
|
+
* This class takes care of storing the
|
35
|
+
* calculated model results, handles caching, scaling,
|
36
|
+
* and (some day) takes care of addition of slacks.
|
37
|
+
*
|
38
|
+
* Given a NLP
|
39
|
+
* \f{eqnarray*}
|
40
|
+
* \mathrm{min} && f(x), \\
|
41
|
+
* \mathrm{s.t.} && c(x) = 0, &\qquad y_c\\
|
42
|
+
* && d_L \leq d(x) \leq d_U, &\qquad y_d \\
|
43
|
+
* && x_L \leq x \leq x_U, &\qquad z_L, z_U
|
44
|
+
* \f}
|
45
|
+
* and (invertible diagonal) scaling matrices \f$s_o\f$, \f$s_c\f$, \f$s_d\f$, \f$s_x\f$,
|
46
|
+
* this class represents the %NLP
|
47
|
+
* \f{eqnarray*}
|
48
|
+
* \mathrm{min} && s_o f(s_x^{-1} \tilde x), \\
|
49
|
+
* \mathrm{s.t.} && s_c c(s_x^{-1} \tilde x) = 0, &\qquad \tilde y_c \\
|
50
|
+
* && s_d d_L \leq s_d d(s_x^{-1} \tilde x) \leq s_d d_U, &\qquad \tilde y_d \\
|
51
|
+
* && s_x x_L \leq \tilde x \leq s_x x_U, &\qquad \tilde z_L, z_U
|
52
|
+
* \f}
|
53
|
+
* where \f$\tilde x\f$, \f$\tilde y_c\f$, \f$\tilde y_d\f$, \f$\tilde z_L\f$, \f$\tilde z_U\f$,
|
54
|
+
* are the primal and dual variables of the scaled problem (though, %Ipopt adds slack variables additionally).
|
55
|
+
*
|
56
|
+
* The correspondence between a scaled and its corresponding unscaled solution is
|
57
|
+
* \f{eqnarray*}
|
58
|
+
* x && = s_x^{-1} \tilde x \\
|
59
|
+
* y_c && = s_o^{-1} s_c \tilde y_c \\
|
60
|
+
* y_d && = s_o^{-1} s_d \tilde y_d \\
|
61
|
+
* z_L && = s_o^{-1} s_x \tilde z_L \\
|
62
|
+
* z_U && = s_o^{-1} s_x \tilde z_U
|
63
|
+
* \f}
|
64
|
+
*/
|
65
|
+
class IPOPTLIB_EXPORT OrigIpoptNLP: public IpoptNLP
|
66
|
+
{
|
67
|
+
public:
|
68
|
+
/**@name Constructors / Destructor */
|
69
|
+
///@{
|
70
|
+
/** Constructor */
|
71
|
+
OrigIpoptNLP(
|
72
|
+
const SmartPtr<const Journalist>& jnlst, ///< Journalist
|
73
|
+
const SmartPtr<NLP>& nlp, ///< NLP
|
74
|
+
const SmartPtr<NLPScalingObject>& nlp_scaling, ///< NLP scaling
|
75
|
+
TimingStatistics& timing_statistics ///< Timing statistics @since 3.14.0
|
76
|
+
);
|
77
|
+
|
78
|
+
/** Destructor */
|
79
|
+
virtual ~OrigIpoptNLP();
|
80
|
+
///@}
|
81
|
+
|
82
|
+
virtual bool Initialize(
|
83
|
+
const Journalist& jnlst,
|
84
|
+
const OptionsList& options,
|
85
|
+
const std::string& prefix
|
86
|
+
);
|
87
|
+
|
88
|
+
/** Initialize (create) structures for the iteration data */
|
89
|
+
virtual bool InitializeStructures(
|
90
|
+
SmartPtr<Vector>& x,
|
91
|
+
bool init_x,
|
92
|
+
SmartPtr<Vector>& y_c,
|
93
|
+
bool init_y_c,
|
94
|
+
SmartPtr<Vector>& y_d,
|
95
|
+
bool init_y_d,
|
96
|
+
SmartPtr<Vector>& z_L,
|
97
|
+
bool init_z_L,
|
98
|
+
SmartPtr<Vector>& z_U,
|
99
|
+
bool init_z_U,
|
100
|
+
SmartPtr<Vector>& v_L,
|
101
|
+
SmartPtr<Vector>& v_U
|
102
|
+
);
|
103
|
+
|
104
|
+
/** Method accessing the GetWarmStartIterate of the NLP */
|
105
|
+
virtual bool GetWarmStartIterate(
|
106
|
+
IteratesVector& warm_start_iterate
|
107
|
+
)
|
108
|
+
{
|
109
|
+
return nlp_->GetWarmStartIterate(warm_start_iterate);
|
110
|
+
}
|
111
|
+
|
112
|
+
/** Accessor methods for model data */
|
113
|
+
///@{
|
114
|
+
/** Objective value */
|
115
|
+
virtual Number f(
|
116
|
+
const Vector& x
|
117
|
+
);
|
118
|
+
|
119
|
+
/** Objective value (depending in mu) - incorrect version for
|
120
|
+
* OrigIpoptNLP
|
121
|
+
*/
|
122
|
+
virtual Number f(
|
123
|
+
const Vector& x,
|
124
|
+
Number mu
|
125
|
+
);
|
126
|
+
|
127
|
+
/** Gradient of the objective */
|
128
|
+
virtual SmartPtr<const Vector> grad_f(
|
129
|
+
const Vector& x
|
130
|
+
);
|
131
|
+
|
132
|
+
/** Gradient of the objective (depending in mu) - incorrect
|
133
|
+
* version for OrigIpoptNLP
|
134
|
+
*/
|
135
|
+
virtual SmartPtr<const Vector> grad_f(
|
136
|
+
const Vector& x,
|
137
|
+
Number mu
|
138
|
+
);
|
139
|
+
|
140
|
+
/** Equality constraint residual */
|
141
|
+
virtual SmartPtr<const Vector> c(
|
142
|
+
const Vector& x
|
143
|
+
);
|
144
|
+
|
145
|
+
/** Jacobian Matrix for equality constraints */
|
146
|
+
virtual SmartPtr<const Matrix> jac_c(
|
147
|
+
const Vector& x
|
148
|
+
);
|
149
|
+
|
150
|
+
/** Inequality constraint residual (reformulated
|
151
|
+
* as equalities with slacks)
|
152
|
+
*/
|
153
|
+
virtual SmartPtr<const Vector> d(
|
154
|
+
const Vector& x
|
155
|
+
);
|
156
|
+
|
157
|
+
/** Jacobian Matrix for inequality constraints */
|
158
|
+
virtual SmartPtr<const Matrix> jac_d(
|
159
|
+
const Vector& x
|
160
|
+
);
|
161
|
+
|
162
|
+
/** Hessian of the Lagrangian */
|
163
|
+
virtual SmartPtr<const SymMatrix> h(
|
164
|
+
const Vector& x,
|
165
|
+
Number obj_factor,
|
166
|
+
const Vector& yc,
|
167
|
+
const Vector& yd
|
168
|
+
);
|
169
|
+
|
170
|
+
/** Hessian of the Lagrangian (depending in mu) - incorrect
|
171
|
+
* version for OrigIpoptNLP
|
172
|
+
*/
|
173
|
+
virtual SmartPtr<const SymMatrix> h(
|
174
|
+
const Vector& x,
|
175
|
+
Number obj_factor,
|
176
|
+
const Vector& yc,
|
177
|
+
const Vector& yd,
|
178
|
+
Number mu
|
179
|
+
);
|
180
|
+
|
181
|
+
/** Provides a Hessian matrix from the correct matrix space with
|
182
|
+
* uninitialized values.
|
183
|
+
*
|
184
|
+
* This can be used in LeastSquareMults to obtain a "zero Hessian".
|
185
|
+
*/
|
186
|
+
virtual SmartPtr<const SymMatrix> uninitialized_h();
|
187
|
+
|
188
|
+
/** Scaled lower bounds on x */
|
189
|
+
virtual SmartPtr<const Vector> x_L() const
|
190
|
+
{
|
191
|
+
return x_L_;
|
192
|
+
}
|
193
|
+
|
194
|
+
/** Permutation matrix (x_L_ -> x) */
|
195
|
+
virtual SmartPtr<const Matrix> Px_L() const
|
196
|
+
{
|
197
|
+
return Px_L_;
|
198
|
+
}
|
199
|
+
|
200
|
+
/** Original unscaled lower bounds on x
|
201
|
+
*
|
202
|
+
* Returns NULL if bounds are not relaxed.
|
203
|
+
* @since 3.14.0
|
204
|
+
*/
|
205
|
+
virtual SmartPtr<const Vector> orig_x_L() const
|
206
|
+
{
|
207
|
+
return orig_x_L_;
|
208
|
+
}
|
209
|
+
|
210
|
+
/** Scaled upper bounds on x */
|
211
|
+
virtual SmartPtr<const Vector> x_U() const
|
212
|
+
{
|
213
|
+
return x_U_;
|
214
|
+
}
|
215
|
+
|
216
|
+
/** Permutation matrix (x_U_ -> x) */
|
217
|
+
virtual SmartPtr<const Matrix> Px_U() const
|
218
|
+
{
|
219
|
+
return Px_U_;
|
220
|
+
}
|
221
|
+
|
222
|
+
/** Original unscaled upper bounds on x
|
223
|
+
*
|
224
|
+
* Returns NULL if bounds are not relaxed.
|
225
|
+
* @since 3.14.0
|
226
|
+
*/
|
227
|
+
virtual SmartPtr<const Vector> orig_x_U() const
|
228
|
+
{
|
229
|
+
return orig_x_U_;
|
230
|
+
}
|
231
|
+
|
232
|
+
/** Scaled lower bounds on d */
|
233
|
+
virtual SmartPtr<const Vector> d_L() const
|
234
|
+
{
|
235
|
+
return d_L_;
|
236
|
+
}
|
237
|
+
|
238
|
+
/** Permutation matrix (d_L_ -> d) */
|
239
|
+
virtual SmartPtr<const Matrix> Pd_L() const
|
240
|
+
{
|
241
|
+
return Pd_L_;
|
242
|
+
}
|
243
|
+
|
244
|
+
/** Original unscaled lower bounds on d
|
245
|
+
*
|
246
|
+
* Returns NULL if bounds are not relaxed.
|
247
|
+
* @since 3.14.10
|
248
|
+
*/
|
249
|
+
virtual SmartPtr<const Vector> orig_d_L() const
|
250
|
+
{
|
251
|
+
return orig_d_L_;
|
252
|
+
}
|
253
|
+
|
254
|
+
/** Scaled upper bounds on d */
|
255
|
+
virtual SmartPtr<const Vector> d_U() const
|
256
|
+
{
|
257
|
+
return d_U_;
|
258
|
+
}
|
259
|
+
|
260
|
+
/** Permutation matrix (d_U_ -> d) */
|
261
|
+
virtual SmartPtr<const Matrix> Pd_U() const
|
262
|
+
{
|
263
|
+
return Pd_U_;
|
264
|
+
}
|
265
|
+
|
266
|
+
/** Original unscaled upper bounds on d
|
267
|
+
*
|
268
|
+
* Returns NULL if bounds are not relaxed.
|
269
|
+
* @since 3.14.10
|
270
|
+
*/
|
271
|
+
virtual SmartPtr<const Vector> orig_d_U() const
|
272
|
+
{
|
273
|
+
return orig_d_U_;
|
274
|
+
}
|
275
|
+
|
276
|
+
virtual SmartPtr<const SymMatrixSpace> HessianMatrixSpace() const
|
277
|
+
{
|
278
|
+
return h_space_;
|
279
|
+
}
|
280
|
+
|
281
|
+
virtual SmartPtr<const VectorSpace> x_space() const
|
282
|
+
{
|
283
|
+
return x_space_;
|
284
|
+
}
|
285
|
+
///@}
|
286
|
+
|
287
|
+
/** Accessor method for vector/matrix spaces pointers */
|
288
|
+
virtual void GetSpaces(
|
289
|
+
SmartPtr<const VectorSpace>& x_space,
|
290
|
+
SmartPtr<const VectorSpace>& c_space,
|
291
|
+
SmartPtr<const VectorSpace>& d_space,
|
292
|
+
SmartPtr<const VectorSpace>& x_l_space,
|
293
|
+
SmartPtr<const MatrixSpace>& px_l_space,
|
294
|
+
SmartPtr<const VectorSpace>& x_u_space,
|
295
|
+
SmartPtr<const MatrixSpace>& px_u_space,
|
296
|
+
SmartPtr<const VectorSpace>& d_l_space,
|
297
|
+
SmartPtr<const MatrixSpace>& pd_l_space,
|
298
|
+
SmartPtr<const VectorSpace>& d_u_space,
|
299
|
+
SmartPtr<const MatrixSpace>& pd_u_space,
|
300
|
+
SmartPtr<const MatrixSpace>& Jac_c_space,
|
301
|
+
SmartPtr<const MatrixSpace>& Jac_d_space,
|
302
|
+
SmartPtr<const SymMatrixSpace>& Hess_lagrangian_space
|
303
|
+
);
|
304
|
+
|
305
|
+
/** Method for adapting the variable bounds. This is called if
|
306
|
+
* slacks are becoming too small */
|
307
|
+
virtual void AdjustVariableBounds(
|
308
|
+
const Vector& new_x_L,
|
309
|
+
const Vector& new_x_U,
|
310
|
+
const Vector& new_d_L,
|
311
|
+
const Vector& new_d_U
|
312
|
+
);
|
313
|
+
|
314
|
+
/** @name Counters for the number of function evaluations. */
|
315
|
+
///@{
|
316
|
+
virtual Index f_evals() const
|
317
|
+
{
|
318
|
+
return f_evals_;
|
319
|
+
}
|
320
|
+
virtual Index grad_f_evals() const
|
321
|
+
{
|
322
|
+
return grad_f_evals_;
|
323
|
+
}
|
324
|
+
virtual Index c_evals() const
|
325
|
+
{
|
326
|
+
return c_evals_;
|
327
|
+
}
|
328
|
+
virtual Index jac_c_evals() const
|
329
|
+
{
|
330
|
+
return jac_c_evals_;
|
331
|
+
}
|
332
|
+
virtual Index d_evals() const
|
333
|
+
{
|
334
|
+
return d_evals_;
|
335
|
+
}
|
336
|
+
virtual Index jac_d_evals() const
|
337
|
+
{
|
338
|
+
return jac_d_evals_;
|
339
|
+
}
|
340
|
+
virtual Index h_evals() const
|
341
|
+
{
|
342
|
+
return h_evals_;
|
343
|
+
}
|
344
|
+
///@}
|
345
|
+
|
346
|
+
/** Solution Routines - overloaded from IpoptNLP */
|
347
|
+
///@{
|
348
|
+
void FinalizeSolution(
|
349
|
+
SolverReturn status,
|
350
|
+
const Vector& x,
|
351
|
+
const Vector& z_L,
|
352
|
+
const Vector& z_U,
|
353
|
+
const Vector& c,
|
354
|
+
const Vector& d,
|
355
|
+
const Vector& y_c,
|
356
|
+
const Vector& y_d,
|
357
|
+
Number obj_value,
|
358
|
+
const IpoptData* ip_data,
|
359
|
+
IpoptCalculatedQuantities* ip_cq
|
360
|
+
);
|
361
|
+
|
362
|
+
bool IntermediateCallBack(
|
363
|
+
AlgorithmMode mode,
|
364
|
+
Index iter,
|
365
|
+
Number obj_value,
|
366
|
+
Number inf_pr,
|
367
|
+
Number inf_du,
|
368
|
+
Number mu,
|
369
|
+
Number d_norm,
|
370
|
+
Number regularization_size,
|
371
|
+
Number alpha_du,
|
372
|
+
Number alpha_pr,
|
373
|
+
Index ls_trials,
|
374
|
+
SmartPtr<const IpoptData> ip_data,
|
375
|
+
SmartPtr<IpoptCalculatedQuantities> ip_cq
|
376
|
+
);
|
377
|
+
///@}
|
378
|
+
|
379
|
+
/** Called to register the options */
|
380
|
+
static void RegisterOptions(
|
381
|
+
SmartPtr<RegisteredOptions> roptions
|
382
|
+
);
|
383
|
+
|
384
|
+
/** Accessor method to the underlying NLP */
|
385
|
+
SmartPtr<NLP> nlp()
|
386
|
+
{
|
387
|
+
return nlp_;
|
388
|
+
}
|
389
|
+
|
390
|
+
private:
|
391
|
+
/** Journalist */
|
392
|
+
SmartPtr<const Journalist> jnlst_;
|
393
|
+
|
394
|
+
/** Pointer to the NLP */
|
395
|
+
SmartPtr<NLP> nlp_;
|
396
|
+
|
397
|
+
/** Necessary Vector/Matrix spaces */
|
398
|
+
///@{
|
399
|
+
SmartPtr<const VectorSpace> x_space_;
|
400
|
+
SmartPtr<const VectorSpace> c_space_;
|
401
|
+
SmartPtr<const VectorSpace> d_space_;
|
402
|
+
SmartPtr<const VectorSpace> x_l_space_;
|
403
|
+
SmartPtr<const MatrixSpace> px_l_space_;
|
404
|
+
SmartPtr<const VectorSpace> x_u_space_;
|
405
|
+
SmartPtr<const MatrixSpace> px_u_space_;
|
406
|
+
SmartPtr<const VectorSpace> d_l_space_;
|
407
|
+
SmartPtr<const MatrixSpace> pd_l_space_;
|
408
|
+
SmartPtr<const VectorSpace> d_u_space_;
|
409
|
+
SmartPtr<const MatrixSpace> pd_u_space_;
|
410
|
+
SmartPtr<const MatrixSpace> jac_c_space_;
|
411
|
+
SmartPtr<const MatrixSpace> jac_d_space_;
|
412
|
+
SmartPtr<const SymMatrixSpace> h_space_;
|
413
|
+
|
414
|
+
SmartPtr<const MatrixSpace> scaled_jac_c_space_;
|
415
|
+
SmartPtr<const MatrixSpace> scaled_jac_d_space_;
|
416
|
+
SmartPtr<const SymMatrixSpace> scaled_h_space_;
|
417
|
+
///@}
|
418
|
+
|
419
|
+
/**@name Storage for Model Quantities */
|
420
|
+
///@{
|
421
|
+
/** Objective function */
|
422
|
+
CachedResults<Number> f_cache_;
|
423
|
+
|
424
|
+
/** Gradient of the objective function */
|
425
|
+
CachedResults<SmartPtr<const Vector> > grad_f_cache_;
|
426
|
+
|
427
|
+
/** Equality constraint residuals */
|
428
|
+
CachedResults<SmartPtr<const Vector> > c_cache_;
|
429
|
+
|
430
|
+
/** Jacobian Matrix for equality constraints
|
431
|
+
* (current iteration)
|
432
|
+
*/
|
433
|
+
CachedResults<SmartPtr<const Matrix> > jac_c_cache_;
|
434
|
+
|
435
|
+
/** Inequality constraint residual (reformulated
|
436
|
+
* as equalities with slacks
|
437
|
+
*/
|
438
|
+
CachedResults<SmartPtr<const Vector> > d_cache_;
|
439
|
+
|
440
|
+
/** Jacobian Matrix for inequality constraints
|
441
|
+
* (current iteration)
|
442
|
+
*/
|
443
|
+
CachedResults<SmartPtr<const Matrix> > jac_d_cache_;
|
444
|
+
|
445
|
+
/** Hessian of the lagrangian
|
446
|
+
* (current iteration)
|
447
|
+
*/
|
448
|
+
CachedResults<SmartPtr<const SymMatrix> > h_cache_;
|
449
|
+
|
450
|
+
/** Unscaled version of x vector */
|
451
|
+
CachedResults<SmartPtr<const Vector> > unscaled_x_cache_;
|
452
|
+
|
453
|
+
/** Lower bounds on x */
|
454
|
+
SmartPtr<const Vector> x_L_;
|
455
|
+
|
456
|
+
/** Permutation matrix (x_L_ -> x) */
|
457
|
+
SmartPtr<const Matrix> Px_L_;
|
458
|
+
|
459
|
+
/** Upper bounds on x */
|
460
|
+
SmartPtr<const Vector> x_U_;
|
461
|
+
|
462
|
+
/** Permutation matrix (x_U_ -> x) */
|
463
|
+
SmartPtr<const Matrix> Px_U_;
|
464
|
+
|
465
|
+
/** Lower bounds on d */
|
466
|
+
SmartPtr<const Vector> d_L_;
|
467
|
+
|
468
|
+
/** Permutation matrix (d_L_ -> d) */
|
469
|
+
SmartPtr<const Matrix> Pd_L_;
|
470
|
+
|
471
|
+
/** Upper bounds on d */
|
472
|
+
SmartPtr<const Vector> d_U_;
|
473
|
+
|
474
|
+
/** Permutation matrix (d_U_ -> d) */
|
475
|
+
SmartPtr<const Matrix> Pd_U_;
|
476
|
+
|
477
|
+
/** Original unmodified lower bounds on x */
|
478
|
+
SmartPtr<const Vector> orig_x_L_;
|
479
|
+
|
480
|
+
/** Original unmodified upper bounds on x */
|
481
|
+
SmartPtr<const Vector> orig_x_U_;
|
482
|
+
|
483
|
+
/** Original unmodified lower bounds on d */
|
484
|
+
SmartPtr<const Vector> orig_d_L_;
|
485
|
+
|
486
|
+
/** Original unmodified upper bounds on d */
|
487
|
+
SmartPtr<const Vector> orig_d_U_;
|
488
|
+
///@}
|
489
|
+
|
490
|
+
/**@name Default Compiler Generated Methods
|
491
|
+
* (Hidden to avoid implicit creation/calling).
|
492
|
+
*
|
493
|
+
* These methods are not implemented and
|
494
|
+
* we do not want the compiler to implement
|
495
|
+
* them for us, so we declare them private
|
496
|
+
* and do not define them. This ensures that
|
497
|
+
* they will not be implicitly created/called.
|
498
|
+
*/
|
499
|
+
///@{
|
500
|
+
/** Default Constructor */
|
501
|
+
OrigIpoptNLP();
|
502
|
+
|
503
|
+
/** Copy Constructor */
|
504
|
+
OrigIpoptNLP(
|
505
|
+
const OrigIpoptNLP&
|
506
|
+
);
|
507
|
+
|
508
|
+
/** Overloaded Assignment Operator */
|
509
|
+
void operator=(
|
510
|
+
const OrigIpoptNLP&
|
511
|
+
);
|
512
|
+
///@}
|
513
|
+
|
514
|
+
/** @name auxiliary functions */
|
515
|
+
///@{
|
516
|
+
/** relax the bounds by a relative move of relax_bound_factor.
|
517
|
+
*
|
518
|
+
* Here, relax_bound_factor should be negative (or zero) for
|
519
|
+
* lower bounds, and positive (or zero) for upper bounds.
|
520
|
+
*/
|
521
|
+
void relax_bounds(
|
522
|
+
Number bound_relax_factor,
|
523
|
+
Vector& bounds
|
524
|
+
);
|
525
|
+
|
526
|
+
/** Method for getting the unscaled version of the x vector */
|
527
|
+
SmartPtr<const Vector> get_unscaled_x(
|
528
|
+
const Vector& x
|
529
|
+
);
|
530
|
+
///@}
|
531
|
+
|
532
|
+
/** @name Algorithmic parameters */
|
533
|
+
///@{
|
534
|
+
|
535
|
+
/** relaxation factor for the bounds */
|
536
|
+
Number bound_relax_factor_;
|
537
|
+
|
538
|
+
/** constraint violation tolerance (from OptimalityErrorConvergenceCheck) */
|
539
|
+
Number constr_viol_tol_;
|
540
|
+
|
541
|
+
/** Flag indicating whether the primal variables should be
|
542
|
+
* projected back into original bounds are optimization.
|
543
|
+
*/
|
544
|
+
bool honor_original_bounds_;
|
545
|
+
|
546
|
+
/** Flag indicating whether the TNLP with identical structure has
|
547
|
+
* already been solved before.
|
548
|
+
*/
|
549
|
+
bool warm_start_same_structure_;
|
550
|
+
|
551
|
+
/** Flag indicating what Hessian information is to be used. */
|
552
|
+
HessianApproximationType hessian_approximation_;
|
553
|
+
|
554
|
+
/** Flag indicating in which space Hessian is to be approximated. */
|
555
|
+
HessianApproximationSpace hessian_approximation_space_;
|
556
|
+
|
557
|
+
/** Flag indicating whether it is desired to check if there are
|
558
|
+
* Nan or Inf entries in first and second derivative matrices.
|
559
|
+
*/
|
560
|
+
bool check_derivatives_for_naninf_;
|
561
|
+
|
562
|
+
/** Flag indicating if we need to ask for objective
|
563
|
+
* Gradient only once
|
564
|
+
*/
|
565
|
+
bool grad_f_constant_;
|
566
|
+
|
567
|
+
/** Flag indicating if we need to ask for equality constraint
|
568
|
+
* Jacobians only once
|
569
|
+
*/
|
570
|
+
bool jac_c_constant_;
|
571
|
+
|
572
|
+
/** Flag indicating if we need to ask for inequality constraint
|
573
|
+
* Jacobians only once
|
574
|
+
*/
|
575
|
+
bool jac_d_constant_;
|
576
|
+
|
577
|
+
/** Flag indicating if we need to ask for Hessian only once */
|
578
|
+
bool hessian_constant_;
|
579
|
+
///@}
|
580
|
+
|
581
|
+
/** @name Counters for the function evaluations */
|
582
|
+
///@{
|
583
|
+
Index f_evals_;
|
584
|
+
Index grad_f_evals_;
|
585
|
+
Index c_evals_;
|
586
|
+
Index jac_c_evals_;
|
587
|
+
Index d_evals_;
|
588
|
+
Index jac_d_evals_;
|
589
|
+
Index h_evals_;
|
590
|
+
///@}
|
591
|
+
|
592
|
+
/** Flag indicating if initialization method has been called */
|
593
|
+
bool initialized_;
|
594
|
+
|
595
|
+
/**@name Timing statistics for the function evaluations. */
|
596
|
+
///@{
|
597
|
+
TimingStatistics& timing_statistics_;
|
598
|
+
///@}
|
599
|
+
};
|
600
|
+
|
601
|
+
} // namespace Ipopt
|
602
|
+
|
603
|
+
#endif
|