casadi 3.6.3__cp311-none-manylinux2014_i686.whl → 3.6.4__cp311-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 +87 -10
- casadi/cbc +0 -0
- casadi/clp +0 -0
- casadi/cmake/alpaqa/alpaqaConfig.cmake +24 -0
- casadi/cmake/alpaqa/alpaqaConfigVersion.cmake +70 -0
- casadi/cmake/alpaqa/alpaqaTargets-release.cmake +29 -0
- casadi/cmake/alpaqa/alpaqaTargets.cmake +131 -0
- casadi/cmake/casadi-config-version.cmake +1 -1
- casadi/cmake/highs/highs-config.cmake +18 -4
- casadi/cmake/highs/highs-targets-release.cmake +3 -3
- casadi/cmake/highs/highs-targets.cmake +1 -1
- casadi/cmake/sleqp/sleqp-config-version.cmake +70 -0
- casadi/cmake/sleqp/sleqp-config.cmake +1 -0
- casadi/cmake/sleqp/sleqp-targets-release.cmake +20 -0
- casadi/cmake/sleqp/sleqp-targets.cmake +102 -0
- casadi/cmake/trlib/trlib-config-release.cmake +19 -0
- casadi/cmake/trlib/trlib-config-version.cmake +88 -0
- casadi/cmake/trlib/trlib-config.cmake +107 -0
- casadi/highs +0 -0
- casadi/include/casadi/casadi.i +13 -3
- casadi/include/casadi/config.h +8 -8
- casadi/include/casadi/core/calculus.hpp +1 -1
- casadi/include/casadi/core/fmu.hpp +29 -1
- casadi/include/casadi/core/nlpsol.hpp +0 -2
- casadi/include/casadi/core/serializing_stream.hpp +12 -0
- casadi/include/casadi/doc.i +407 -125
- casadi/include/casadi/doc_merged.i +324 -70
- casadi/include/highs/HConfig.h +4 -7
- casadi/include/highs/Highs.h +240 -51
- casadi/include/highs/filereaderlp/builder.hpp +12 -13
- casadi/include/highs/filereaderlp/model.hpp +32 -35
- casadi/include/highs/fortran/highs_fortran_api.mod +0 -0
- casadi/include/highs/interfaces/highs_c_api.h +964 -577
- casadi/include/highs/io/Filereader.h +2 -4
- casadi/include/highs/io/FilereaderEms.h +2 -4
- casadi/include/highs/io/FilereaderLp.h +2 -4
- casadi/include/highs/io/FilereaderMps.h +2 -4
- casadi/include/highs/io/HMPSIO.h +2 -4
- casadi/include/highs/io/HMpsFF.h +2 -4
- casadi/include/highs/io/HighsIO.h +19 -13
- casadi/include/highs/io/LoadOptions.h +7 -6
- casadi/include/highs/ipm/IpxWrapper.h +4 -5
- casadi/include/highs/lp_data/HConst.h +60 -15
- casadi/include/highs/lp_data/HStruct.h +32 -8
- casadi/include/highs/lp_data/HighsAnalysis.h +2 -4
- casadi/include/highs/lp_data/HighsCallback.h +33 -0
- casadi/include/highs/lp_data/HighsCallbackStruct.h +36 -0
- casadi/include/highs/lp_data/HighsDebug.h +2 -4
- casadi/include/highs/lp_data/HighsInfo.h +22 -23
- casadi/include/highs/lp_data/HighsInfoDebug.h +2 -4
- casadi/include/highs/lp_data/HighsLp.h +14 -6
- casadi/include/highs/lp_data/HighsLpSolverObject.h +6 -5
- casadi/include/highs/lp_data/HighsLpUtils.h +23 -12
- casadi/include/highs/lp_data/HighsModelUtils.h +22 -8
- casadi/include/highs/lp_data/HighsOptions.h +175 -106
- casadi/include/highs/lp_data/HighsRanging.h +2 -4
- casadi/include/highs/lp_data/HighsRuntimeOptions.h +21 -6
- casadi/include/highs/lp_data/HighsSolution.h +4 -4
- casadi/include/highs/lp_data/HighsSolutionDebug.h +2 -4
- casadi/include/highs/lp_data/HighsSolve.h +2 -4
- casadi/include/highs/lp_data/HighsStatus.h +2 -4
- casadi/include/highs/mip/HighsCliqueTable.h +18 -20
- casadi/include/highs/mip/HighsConflictPool.h +2 -4
- casadi/include/highs/mip/HighsCutGeneration.h +2 -4
- casadi/include/highs/mip/HighsCutPool.h +2 -4
- casadi/include/highs/mip/HighsDebugSol.h +2 -4
- casadi/include/highs/mip/HighsDomain.h +5 -5
- casadi/include/highs/mip/HighsDomainChange.h +2 -4
- casadi/include/highs/mip/HighsDynamicRowMatrix.h +2 -4
- casadi/include/highs/mip/HighsGFkSolve.h +2 -4
- casadi/include/highs/mip/HighsImplications.h +2 -4
- casadi/include/highs/mip/HighsLpAggregator.h +2 -4
- casadi/include/highs/mip/HighsLpRelaxation.h +2 -4
- casadi/include/highs/mip/HighsMipSolver.h +18 -6
- casadi/include/highs/mip/HighsMipSolverData.h +8 -4
- casadi/include/highs/mip/HighsModkSeparator.h +2 -4
- casadi/include/highs/mip/HighsNodeQueue.h +3 -9
- casadi/include/highs/mip/HighsObjectiveFunction.h +2 -4
- casadi/include/highs/mip/HighsPathSeparator.h +2 -4
- casadi/include/highs/mip/HighsPrimalHeuristics.h +2 -4
- casadi/include/highs/mip/HighsPseudocost.h +2 -4
- casadi/include/highs/mip/HighsRedcostFixing.h +2 -4
- casadi/include/highs/mip/HighsSearch.h +2 -4
- casadi/include/highs/mip/HighsSeparation.h +2 -4
- casadi/include/highs/mip/HighsSeparator.h +2 -4
- casadi/include/highs/mip/HighsTableauSeparator.h +2 -4
- casadi/include/highs/mip/HighsTransformedLp.h +2 -4
- casadi/include/highs/model/HighsHessian.h +3 -1
- casadi/include/highs/model/HighsModel.h +2 -0
- casadi/include/highs/parallel/HighsSpinMutex.h +2 -1
- casadi/include/highs/parallel/HighsSplitDeque.h +1 -1
- casadi/include/highs/parallel/HighsTaskExecutor.h +10 -2
- casadi/include/highs/presolve/HPresolve.h +9 -6
- casadi/include/highs/presolve/HPresolveAnalysis.h +5 -4
- casadi/include/highs/presolve/HighsPostsolveStack.h +50 -13
- casadi/include/highs/presolve/HighsSymmetry.h +2 -4
- casadi/include/highs/presolve/ICrash.h +4 -3
- casadi/include/highs/presolve/ICrashUtil.h +2 -2
- casadi/include/highs/presolve/ICrashX.h +4 -6
- casadi/include/highs/presolve/PresolveComponent.h +4 -42
- casadi/include/highs/qpsolver/a_asm.hpp +56 -0
- casadi/include/highs/qpsolver/a_quass.hpp +12 -0
- casadi/include/highs/qpsolver/quass.hpp +1 -4
- casadi/include/highs/simplex/HApp.h +14 -16
- casadi/include/highs/simplex/HEkk.h +12 -11
- casadi/include/highs/simplex/HEkkDual.h +2 -4
- casadi/include/highs/simplex/HEkkDualRHS.h +5 -6
- casadi/include/highs/simplex/HEkkDualRow.h +2 -4
- casadi/include/highs/simplex/HEkkPrimal.h +2 -4
- casadi/include/highs/simplex/HSimplex.h +2 -4
- casadi/include/highs/simplex/HSimplexDebug.h +2 -4
- casadi/include/highs/simplex/HSimplexNla.h +2 -4
- casadi/include/highs/simplex/HSimplexReport.h +3 -5
- casadi/include/highs/simplex/HighsSimplexAnalysis.h +2 -4
- casadi/include/highs/simplex/SimplexConst.h +7 -5
- casadi/include/highs/simplex/SimplexStruct.h +11 -5
- casadi/include/highs/simplex/SimplexTimer.h +2 -4
- casadi/include/highs/test/DevKkt.h +2 -4
- casadi/include/highs/test/KktCh2.h +2 -4
- casadi/include/highs/util/FactorTimer.h +2 -4
- casadi/include/highs/util/HFactor.h +2 -4
- casadi/include/highs/util/HFactorConst.h +2 -4
- casadi/include/highs/util/HFactorDebug.h +2 -4
- casadi/include/highs/util/HSet.h +3 -5
- casadi/include/highs/util/HVector.h +2 -4
- casadi/include/highs/util/HVectorBase.h +2 -4
- casadi/include/highs/util/HighsCDouble.h +2 -4
- casadi/include/highs/util/HighsComponent.h +2 -4
- casadi/include/highs/util/HighsDataStack.h +3 -5
- casadi/include/highs/util/HighsDisjointSets.h +8 -10
- casadi/include/highs/util/HighsHash.h +22 -7
- casadi/include/highs/util/HighsHashTree.h +25 -7
- casadi/include/highs/util/HighsInt.h +2 -4
- casadi/include/highs/util/HighsIntegers.h +2 -4
- casadi/include/highs/util/HighsLinearSumBounds.h +2 -4
- casadi/include/highs/util/HighsMatrixPic.h +2 -4
- casadi/include/highs/util/HighsMatrixSlice.h +2 -4
- casadi/include/highs/util/HighsMatrixUtils.h +2 -4
- casadi/include/highs/util/HighsRandom.h +2 -4
- casadi/include/highs/util/HighsRbTree.h +2 -4
- casadi/include/highs/util/HighsSort.h +2 -4
- casadi/include/highs/util/HighsSparseMatrix.h +11 -7
- casadi/include/highs/util/HighsSparseVectorSum.h +2 -4
- casadi/include/highs/util/HighsSplay.h +2 -4
- casadi/include/highs/util/HighsTimer.h +3 -4
- casadi/include/highs/util/HighsUtils.h +14 -4
- casadi/include/highs/util/stringutil.h +2 -4
- casadi/include/licenses/alpaqa-external/LICENSE +165 -0
- casadi/include/licenses/highs-external/LICENSE +1 -1
- casadi/include/licenses/sleqp-external/LICENSE +165 -0
- casadi/include/licenses/trlib-external/LICENSE +21 -0
- casadi/include/trlib/trlib_eigen_inverse.h +118 -0
- casadi/include/trlib/trlib_krylov.h +493 -0
- casadi/include/trlib/trlib_leftmost.h +181 -0
- casadi/include/trlib/trlib_private.h +109 -0
- casadi/include/trlib/trlib_quadratic_zero.h +57 -0
- casadi/include/trlib/trlib_tri_factor.h +409 -0
- casadi/include/trlib/trlib_types.h +36 -0
- casadi/lib/libtinyxml2.a +0 -0
- casadi/libCbc.la +3 -3
- casadi/libCbc.so +0 -0
- casadi/libCbc.so.3 +0 -0
- casadi/libCbc.so.3.10.11 +0 -0
- casadi/libCbcSolver.la +3 -3
- casadi/libCbcSolver.so +0 -0
- casadi/libCbcSolver.so.3 +0 -0
- casadi/libCbcSolver.so.3.10.11 +0 -0
- casadi/libCgl.la +2 -2
- casadi/libCgl.so +0 -0
- casadi/libCgl.so.1 +0 -0
- casadi/libCgl.so.1.10.8 +0 -0
- casadi/libClp.la +2 -2
- casadi/libClp.so +0 -0
- casadi/libClp.so.1 +0 -0
- casadi/{libClp.so.1.14.7 → libClp.so.1.14.9} +0 -0
- casadi/libClpSolver.la +2 -2
- casadi/libClpSolver.so +0 -0
- casadi/libClpSolver.so.1 +0 -0
- casadi/{libClpSolver.so.1.14.7 → libClpSolver.so.1.14.9} +0 -0
- casadi/libCoinUtils.la +2 -2
- casadi/libCoinUtils.so +0 -0
- casadi/libCoinUtils.so.3 +0 -0
- casadi/libCoinUtils.so.3.11.10 +0 -0
- casadi/libFortranHighs.so +0 -0
- casadi/libOsi.la +2 -2
- casadi/libOsiCbc.la +3 -3
- casadi/libOsiCbc.so +0 -0
- casadi/libOsiCbc.so.3 +0 -0
- casadi/{libOsiCbc.so.3.10.6 → libOsiCbc.so.3.10.11} +0 -0
- casadi/libOsiClp.la +2 -2
- casadi/libOsiClp.so +0 -0
- casadi/libOsiClp.so.1 +0 -0
- casadi/libOsiClp.so.1.14.9 +0 -0
- casadi/libOsiCommonTests.la +2 -2
- casadi/libOsiCommonTests.so +0 -0
- casadi/libOsiCommonTests.so.1 +0 -0
- casadi/{libOsiCommonTests.so.1.13.7 → libOsiCommonTests.so.1.13.9} +0 -0
- casadi/libalpaqa-dl-loader.so +0 -0
- casadi/libalpaqa-dl-loader.so.1.0.0 +0 -0
- casadi/libalpaqa.so +0 -0
- casadi/libalpaqa.so.1.0.0 +0 -0
- casadi/libbonmin.la +3 -3
- casadi/libbonmin.so +0 -0
- casadi/libbonmin.so.4 +0 -0
- casadi/libbonmin.so.4.8.9 +0 -0
- casadi/libcasadi.so +0 -0
- casadi/libcasadi.so.3.7 +0 -0
- casadi/libcasadi_conic_cbc.so +0 -0
- casadi/libcasadi_conic_cbc.so.3.7 +0 -0
- casadi/libcasadi_conic_clp.so +0 -0
- casadi/libcasadi_conic_clp.so.3.7 +0 -0
- casadi/libcasadi_conic_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_interpolant_bspline.so +0 -0
- casadi/libcasadi_interpolant_bspline.so.3.7 +0 -0
- casadi/libcasadi_interpolant_linear.so +0 -0
- casadi/libcasadi_interpolant_linear.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapacklu.so +0 -0
- casadi/libcasadi_linsol_lapacklu.so.3.7 +0 -0
- casadi/libcasadi_linsol_lapackqr.so +0 -0
- casadi/libcasadi_linsol_lapackqr.so.3.7 +0 -0
- casadi/libcasadi_linsol_ldl.so +0 -0
- casadi/libcasadi_linsol_ldl.so.3.7 +0 -0
- casadi/libcasadi_linsol_mumps.so +0 -0
- casadi/libcasadi_linsol_mumps.so.3.7 +0 -0
- casadi/libcasadi_linsol_qr.so +0 -0
- casadi/libcasadi_linsol_qr.so.3.7 +0 -0
- casadi/libcasadi_linsol_symbolicqr.so +0 -0
- casadi/libcasadi_linsol_symbolicqr.so.3.7 +0 -0
- casadi/libcasadi_nlpsol_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_qrsqp.so +0 -0
- casadi/libcasadi_nlpsol_qrsqp.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_newton.so +0 -0
- casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
- casadi/libcasadi_sundials_common.so +0 -0
- casadi/libcasadi_sundials_common.so.3.7 +0 -0
- casadi/libhighs.so +0 -0
- casadi/libhighs.so.1.6 +0 -0
- casadi/libhighs.so.1.6.0 +0 -0
- casadi/libindirect.a +0 -0
- casadi/liblinsys.a +0 -0
- casadi/libosqp.a +0 -0
- casadi/libqdldl.a +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/libtrlib.so +0 -0
- casadi/libtrlib.so.0.4 +0 -0
- casadi/pkgconfig/blas.pc +11 -0
- casadi/pkgconfig/bonmin.pc +1 -1
- casadi/pkgconfig/casadi.pc +1 -1
- casadi/pkgconfig/cbc.pc +2 -2
- casadi/pkgconfig/cgl.pc +2 -2
- casadi/pkgconfig/clp.pc +1 -1
- casadi/pkgconfig/coinutils.pc +1 -1
- casadi/pkgconfig/highs.pc +3 -3
- casadi/pkgconfig/lapack.pc +11 -0
- casadi/pkgconfig/openblas.pc +1 -1
- casadi/pkgconfig/osi-cbc.pc +1 -1
- casadi/pkgconfig/osi-clp.pc +1 -1
- casadi/pkgconfig/osi-unittests.pc +1 -1
- casadi/pkgconfig/osi.pc +1 -1
- casadi/pkgconfig/sleqp.pc +10 -0
- {casadi-3.6.3.dist-info → casadi-3.6.4.dist-info}/METADATA +1 -1
- {casadi-3.6.3.dist-info → casadi-3.6.4.dist-info}/RECORD +314 -274
- casadi/libCbc.so.3.10.6 +0 -0
- casadi/libCbcSolver.so.3.10.6 +0 -0
- casadi/libCgl.so.1.10.4 +0 -0
- casadi/libCoinUtils.so.3.11.6 +0 -0
- casadi/libOsiClp.so.1.14.7 +0 -0
- casadi/libbonmin.so.4.8.8 +0 -0
- casadi/libhighs.so.1.4 +0 -0
- casadi/libhighs.so.1.4.0 +0 -0
- /casadi/{libOsi.so.1.13.7 → libOsi.so.1.13.9} +0 -0
- {casadi-3.6.3.dist-info → casadi-3.6.4.dist-info}/WHEEL +0 -0
casadi/_casadi.so
CHANGED
Binary file
|
casadi/casadi.py
CHANGED
@@ -10971,7 +10971,7 @@ class DM(MatrixCommon, GenericExpressionCommon, GenDM, PrintableCommon):
|
|
10971
10971
|
if "vectorized" in name:
|
10972
10972
|
name = name[:-len(" (vectorized)")]
|
10973
10973
|
|
10974
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
10974
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
10975
10975
|
if name in conversion:
|
10976
10976
|
name = conversion[name]
|
10977
10977
|
if len(context[1])==2 and context[1][1] is self and not(context[1][0] is self):
|
@@ -10983,7 +10983,7 @@ class DM(MatrixCommon, GenericExpressionCommon, GenDM, PrintableCommon):
|
|
10983
10983
|
return fun(*args[1:])
|
10984
10984
|
|
10985
10985
|
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
|
10986
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
10986
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
10987
10987
|
name = ufunc.__name__
|
10988
10988
|
inputs = list(inputs)
|
10989
10989
|
if len(inputs)==3:
|
@@ -11003,7 +11003,13 @@ class DM(MatrixCommon, GenericExpressionCommon, GenDM, PrintableCommon):
|
|
11003
11003
|
assert method=="__call__"
|
11004
11004
|
fun=getattr(self, name)
|
11005
11005
|
return fun(*inputs[1:])
|
11006
|
-
except:
|
11006
|
+
except Exception as e:
|
11007
|
+
if "Dimension mismatch" in str(e):
|
11008
|
+
import sys
|
11009
|
+
if sys.version_info[0] < 3:
|
11010
|
+
raise RuntimeError(str(e))
|
11011
|
+
else:
|
11012
|
+
raise e
|
11007
11013
|
#Fall back to numpy conversion
|
11008
11014
|
new_inputs = list(inputs)
|
11009
11015
|
try:
|
@@ -13338,7 +13344,7 @@ class SX(MatrixCommon, GenericExpressionCommon, GenSX, PrintableCommon):
|
|
13338
13344
|
if "vectorized" in name:
|
13339
13345
|
name = name[:-len(" (vectorized)")]
|
13340
13346
|
|
13341
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
13347
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
13342
13348
|
if name in conversion:
|
13343
13349
|
name = conversion[name]
|
13344
13350
|
if len(context[1])==2 and context[1][1] is self and not(context[1][0] is self):
|
@@ -13350,7 +13356,7 @@ class SX(MatrixCommon, GenericExpressionCommon, GenSX, PrintableCommon):
|
|
13350
13356
|
return fun(*args[1:])
|
13351
13357
|
|
13352
13358
|
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
|
13353
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
13359
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
13354
13360
|
name = ufunc.__name__
|
13355
13361
|
inputs = list(inputs)
|
13356
13362
|
if len(inputs)==3:
|
@@ -13370,7 +13376,13 @@ class SX(MatrixCommon, GenericExpressionCommon, GenSX, PrintableCommon):
|
|
13370
13376
|
assert method=="__call__"
|
13371
13377
|
fun=getattr(self, name)
|
13372
13378
|
return fun(*inputs[1:])
|
13373
|
-
except:
|
13379
|
+
except Exception as e:
|
13380
|
+
if "Dimension mismatch" in str(e):
|
13381
|
+
import sys
|
13382
|
+
if sys.version_info[0] < 3:
|
13383
|
+
raise RuntimeError(str(e))
|
13384
|
+
else:
|
13385
|
+
raise e
|
13374
13386
|
#Fall back to numpy conversion
|
13375
13387
|
new_inputs = list(inputs)
|
13376
13388
|
try:
|
@@ -16329,7 +16341,7 @@ class MX(GenericExpressionCommon, PrintableCommon, GenMX, SharedObject):
|
|
16329
16341
|
if "vectorized" in name:
|
16330
16342
|
name = name[:-len(" (vectorized)")]
|
16331
16343
|
|
16332
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
16344
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
16333
16345
|
if name in conversion:
|
16334
16346
|
name = conversion[name]
|
16335
16347
|
if len(context[1])==2 and context[1][1] is self and not(context[1][0] is self):
|
@@ -16341,7 +16353,7 @@ class MX(GenericExpressionCommon, PrintableCommon, GenMX, SharedObject):
|
|
16341
16353
|
return fun(*args[1:])
|
16342
16354
|
|
16343
16355
|
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
|
16344
|
-
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt"}
|
16356
|
+
conversion = {"multiply": "mul", "divide": "div", "true_divide": "div", "subtract":"sub","power":"pow","greater_equal":"ge","less_equal": "le", "less": "lt", "greater": "gt", "equal": "eq", "not_equal": "ne"}
|
16345
16357
|
name = ufunc.__name__
|
16346
16358
|
inputs = list(inputs)
|
16347
16359
|
if len(inputs)==3:
|
@@ -16361,7 +16373,13 @@ class MX(GenericExpressionCommon, PrintableCommon, GenMX, SharedObject):
|
|
16361
16373
|
assert method=="__call__"
|
16362
16374
|
fun=getattr(self, name)
|
16363
16375
|
return fun(*inputs[1:])
|
16364
|
-
except:
|
16376
|
+
except Exception as e:
|
16377
|
+
if "Dimension mismatch" in str(e):
|
16378
|
+
import sys
|
16379
|
+
if sys.version_info[0] < 3:
|
16380
|
+
raise RuntimeError(str(e))
|
16381
|
+
else:
|
16382
|
+
raise e
|
16365
16383
|
#Fall back to numpy conversion
|
16366
16384
|
new_inputs = list(inputs)
|
16367
16385
|
try:
|
@@ -26151,6 +26169,8 @@ def conic(*args) -> "casadi::Function":
|
|
26151
26169
|
|
26152
26170
|
- cplex
|
26153
26171
|
|
26172
|
+
- fatrop
|
26173
|
+
|
26154
26174
|
- gurobi
|
26155
26175
|
|
26156
26176
|
- highs
|
@@ -26309,6 +26329,61 @@ def conic(*args) -> "casadi::Function":
|
|
26309
26329
|
|
26310
26330
|
|
26311
26331
|
|
26332
|
+
--------------------------------------------------------------------------------
|
26333
|
+
|
26334
|
+
fatrop
|
26335
|
+
------
|
26336
|
+
|
26337
|
+
|
26338
|
+
|
26339
|
+
Interface to Fatrop Solver
|
26340
|
+
|
26341
|
+
In order to use this interface, you must:
|
26342
|
+
|
26343
|
+
Decision variables must only by state and control, and the variable
|
26344
|
+
|
26345
|
+
ordering must be [x0 u0 x1 u1 ...]
|
26346
|
+
|
26347
|
+
The constraints must be in order: [ gap0 lincon0 gap1 lincon1 ]
|
26348
|
+
|
26349
|
+
gap: Ak+1 = Ak xk + Bk uk lincon: yk= Ck xk + Dk uk
|
26350
|
+
|
26351
|
+
|
26352
|
+
|
26353
|
+
::
|
26354
|
+
|
26355
|
+
A0 B0 -I
|
26356
|
+
C0 D0
|
26357
|
+
A1 B1 -I
|
26358
|
+
C1 D1
|
26359
|
+
|
26360
|
+
|
26361
|
+
|
26362
|
+
where I must be a diagonal sparse matrix
|
26363
|
+
Either supply all of N, nx, ng, nu
|
26364
|
+
options or rely on automatic
|
26365
|
+
detection
|
26366
|
+
|
26367
|
+
Extra doc: https://github.com/casadi/casadi/wiki/L_27g
|
26368
|
+
|
26369
|
+
>List of available options
|
26370
|
+
|
26371
|
+
+--------+--------------+-----------------------------------------------+
|
26372
|
+
| Id | Type | Description |
|
26373
|
+
+========+==============+===============================================+
|
26374
|
+
| N | OT_INT | OCP horizon |
|
26375
|
+
+--------+--------------+-----------------------------------------------+
|
26376
|
+
| fatrop | OT_DICT | Options to be passed to fatrop |
|
26377
|
+
+--------+--------------+-----------------------------------------------+
|
26378
|
+
| ng | OT_INTVECTOR | Number of non-dynamic constraints, length N+1 |
|
26379
|
+
+--------+--------------+-----------------------------------------------+
|
26380
|
+
| nu | OT_INTVECTOR | Number of controls, length N |
|
26381
|
+
+--------+--------------+-----------------------------------------------+
|
26382
|
+
| nx | OT_INTVECTOR | Number of states, length N+1 |
|
26383
|
+
+--------+--------------+-----------------------------------------------+
|
26384
|
+
|
26385
|
+
|
26386
|
+
|
26312
26387
|
--------------------------------------------------------------------------------
|
26313
26388
|
|
26314
26389
|
gurobi
|
@@ -26372,7 +26447,7 @@ def conic(*args) -> "casadi::Function":
|
|
26372
26447
|
|
26373
26448
|
|
26374
26449
|
|
26375
|
-
Interface to
|
26450
|
+
Interface to HPIPM Solver
|
26376
26451
|
|
26377
26452
|
In order to use this interface, you must:
|
26378
26453
|
|
@@ -27321,6 +27396,7 @@ def nlpsol(*args) -> "casadi::Function":
|
|
27321
27396
|
nlpsol(str name, str solver, dict:SX nlp, dict opts) -> Function
|
27322
27397
|
nlpsol(str name, str solver, dict:MX nlp, dict opts) -> Function
|
27323
27398
|
nlpsol(str name, str solver, str fname, dict opts) -> Function
|
27399
|
+
nlpsol(str name, str solver, Function nlp, dict opts) -> Function
|
27324
27400
|
|
27325
27401
|
|
27326
27402
|
.......
|
@@ -28943,6 +29019,7 @@ def nlpsol(*args) -> "casadi::Function":
|
|
28943
29019
|
nlpsol(str name, str solver, NlpBuilder nl, dict opts)
|
28944
29020
|
nlpsol(str name, str solver, dict:MX nlp, dict opts)
|
28945
29021
|
nlpsol(str name, str solver, str fname, dict opts)
|
29022
|
+
nlpsol(str name, str solver, Function nlp, dict opts)
|
28946
29023
|
|
28947
29024
|
|
28948
29025
|
|
casadi/cbc
CHANGED
Binary file
|
casadi/clp
CHANGED
Binary file
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
3
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
4
|
+
####### The input file was Config.cmake.in ########
|
5
|
+
|
6
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
7
|
+
|
8
|
+
####################################################################################
|
9
|
+
|
10
|
+
include(CMakeFindDependencyMacro)
|
11
|
+
find_dependency(Eigen3 REQUIRED CONFIG)
|
12
|
+
if (OFF)
|
13
|
+
find_package(casadi CONFIG)
|
14
|
+
endif()
|
15
|
+
|
16
|
+
set(ALPAQA_WITH_OCP ON CACHE INTERNAL "")
|
17
|
+
|
18
|
+
include("${CMAKE_CURRENT_LIST_DIR}/alpaqaTargets.cmake")
|
19
|
+
|
20
|
+
if(NOT _alpaqa_PRINTED)
|
21
|
+
get_target_property(ALPAQA_CONFIG alpaqa::alpaqa IMPORTED_CONFIGURATIONS)
|
22
|
+
message(STATUS "Found alpaqa 1.0.0: ${CMAKE_CURRENT_LIST_DIR} (available configs: ${ALPAQA_CONFIG})")
|
23
|
+
set(_alpaqa_PRINTED On CACHE INTERNAL "")
|
24
|
+
endif()
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
4
|
+
#
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
6
|
+
# the requested version string are exactly the same and it sets
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
8
|
+
# but only if the requested major version is the same as the current one.
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
10
|
+
|
11
|
+
|
12
|
+
set(PACKAGE_VERSION "1.0.0")
|
13
|
+
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
16
|
+
else()
|
17
|
+
|
18
|
+
if("1.0.0" MATCHES "^([0-9]+)\\.")
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
22
|
+
endif()
|
23
|
+
else()
|
24
|
+
set(CVF_VERSION_MAJOR "1.0.0")
|
25
|
+
endif()
|
26
|
+
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
28
|
+
# both endpoints of the range must have the expected major version
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
38
|
+
else()
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
40
|
+
endif()
|
41
|
+
else()
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
44
|
+
else()
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
46
|
+
endif()
|
47
|
+
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
50
|
+
endif()
|
51
|
+
endif()
|
52
|
+
endif()
|
53
|
+
|
54
|
+
|
55
|
+
# if the installed project requested no architecture check, don't perform the check
|
56
|
+
if("FALSE")
|
57
|
+
return()
|
58
|
+
endif()
|
59
|
+
|
60
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
61
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "4" STREQUAL "")
|
62
|
+
return()
|
63
|
+
endif()
|
64
|
+
|
65
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
66
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "4")
|
67
|
+
math(EXPR installedBits "4 * 8")
|
68
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
69
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
70
|
+
endif()
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "alpaqa::alpaqa" for configuration "Release"
|
9
|
+
set_property(TARGET alpaqa::alpaqa APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(alpaqa::alpaqa PROPERTIES
|
11
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libalpaqa.so.1.0.0"
|
12
|
+
IMPORTED_SONAME_RELEASE "libalpaqa.so.1.0.0"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets alpaqa::alpaqa )
|
16
|
+
list(APPEND _cmake_import_check_files_for_alpaqa::alpaqa "${_IMPORT_PREFIX}/lib/libalpaqa.so.1.0.0" )
|
17
|
+
|
18
|
+
# Import target "alpaqa::dl-loader" for configuration "Release"
|
19
|
+
set_property(TARGET alpaqa::dl-loader APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
20
|
+
set_target_properties(alpaqa::dl-loader PROPERTIES
|
21
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libalpaqa-dl-loader.so.1.0.0"
|
22
|
+
IMPORTED_SONAME_RELEASE "libalpaqa-dl-loader.so.1.0.0"
|
23
|
+
)
|
24
|
+
|
25
|
+
list(APPEND _cmake_import_check_targets alpaqa::dl-loader )
|
26
|
+
list(APPEND _cmake_import_check_files_for_alpaqa::dl-loader "${_IMPORT_PREFIX}/lib/libalpaqa-dl-loader.so.1.0.0" )
|
27
|
+
|
28
|
+
# Commands beyond this point should not need to know the version.
|
29
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# Generated by CMake
|
2
|
+
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.0 required")
|
5
|
+
endif()
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
8
|
+
endif()
|
9
|
+
cmake_policy(PUSH)
|
10
|
+
cmake_policy(VERSION 2.8.3...3.22)
|
11
|
+
#----------------------------------------------------------------
|
12
|
+
# Generated CMake target import file.
|
13
|
+
#----------------------------------------------------------------
|
14
|
+
|
15
|
+
# Commands may need to know the format version.
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
17
|
+
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
19
|
+
set(_cmake_targets_defined "")
|
20
|
+
set(_cmake_targets_not_defined "")
|
21
|
+
set(_cmake_expected_targets "")
|
22
|
+
foreach(_cmake_expected_target IN ITEMS alpaqa::alpaqa alpaqa::dl-api alpaqa::dl-loader alpaqa::warnings)
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
26
|
+
else()
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
28
|
+
endif()
|
29
|
+
endforeach()
|
30
|
+
unset(_cmake_expected_target)
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
32
|
+
unset(_cmake_targets_defined)
|
33
|
+
unset(_cmake_targets_not_defined)
|
34
|
+
unset(_cmake_expected_targets)
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
36
|
+
cmake_policy(POP)
|
37
|
+
return()
|
38
|
+
endif()
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
43
|
+
endif()
|
44
|
+
unset(_cmake_targets_defined)
|
45
|
+
unset(_cmake_targets_not_defined)
|
46
|
+
unset(_cmake_expected_targets)
|
47
|
+
|
48
|
+
|
49
|
+
# Compute the installation prefix relative to this file.
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
55
|
+
set(_IMPORT_PREFIX "")
|
56
|
+
endif()
|
57
|
+
|
58
|
+
# Create imported target alpaqa::alpaqa
|
59
|
+
add_library(alpaqa::alpaqa SHARED IMPORTED)
|
60
|
+
|
61
|
+
set_target_properties(alpaqa::alpaqa PROPERTIES
|
62
|
+
INTERFACE_COMPILE_DEFINITIONS "\$<\$<CONFIG:Debug>:EIGEN_INITIALIZE_MATRICES_BY_NAN>;\$<\$<CONFIG:Debug>:EIGEN_RUNTIME_NO_MALLOC>;\$<\$<BOOL:OFF>:ALPAQA_WITH_QUAD_PRECISION>;\$<\$<BOOL:ON>:ALPAQA_WITH_OCP>"
|
63
|
+
INTERFACE_COMPILE_FEATURES "cxx_std_20"
|
64
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
65
|
+
INTERFACE_LINK_LIBRARIES "Eigen3::Eigen;\$<\$<BOOL:OFF>:quadmath>"
|
66
|
+
)
|
67
|
+
|
68
|
+
# Create imported target alpaqa::dl-api
|
69
|
+
add_library(alpaqa::dl-api INTERFACE IMPORTED)
|
70
|
+
|
71
|
+
set_target_properties(alpaqa::dl-api PROPERTIES
|
72
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
73
|
+
)
|
74
|
+
|
75
|
+
# Create imported target alpaqa::dl-loader
|
76
|
+
add_library(alpaqa::dl-loader SHARED IMPORTED)
|
77
|
+
|
78
|
+
set_target_properties(alpaqa::dl-loader PROPERTIES
|
79
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
80
|
+
INTERFACE_LINK_LIBRARIES "alpaqa::alpaqa;alpaqa::dl-api"
|
81
|
+
)
|
82
|
+
|
83
|
+
# Create imported target alpaqa::warnings
|
84
|
+
add_library(alpaqa::warnings INTERFACE IMPORTED)
|
85
|
+
|
86
|
+
set_target_properties(alpaqa::warnings PROPERTIES
|
87
|
+
INTERFACE_COMPILE_OPTIONS "\$<\$<COMPILE_LANGUAGE:C>:>;\$<\$<COMPILE_LANGUAGE:CXX>:>;\$<\$<COMPILE_LANGUAGE:Fortran>:>"
|
88
|
+
)
|
89
|
+
|
90
|
+
if(CMAKE_VERSION VERSION_LESS 3.0.0)
|
91
|
+
message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
|
92
|
+
endif()
|
93
|
+
|
94
|
+
# Load information for each installed configuration.
|
95
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/alpaqaTargets-*.cmake")
|
96
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
97
|
+
include("${_cmake_config_file}")
|
98
|
+
endforeach()
|
99
|
+
unset(_cmake_config_file)
|
100
|
+
unset(_cmake_config_files)
|
101
|
+
|
102
|
+
# Cleanup temporary variables.
|
103
|
+
set(_IMPORT_PREFIX)
|
104
|
+
|
105
|
+
# Loop over all imported files and verify that they actually exist
|
106
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
107
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
108
|
+
if(NOT EXISTS "${_cmake_file}")
|
109
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
110
|
+
\"${_cmake_file}\"
|
111
|
+
but this file does not exist. Possible reasons include:
|
112
|
+
* The file was deleted, renamed, or moved to another location.
|
113
|
+
* An install or uninstall procedure did not complete successfully.
|
114
|
+
* The installation package was faulty and contained
|
115
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
116
|
+
but not all the files it references.
|
117
|
+
")
|
118
|
+
endif()
|
119
|
+
endforeach()
|
120
|
+
unset(_cmake_file)
|
121
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
122
|
+
endforeach()
|
123
|
+
unset(_cmake_target)
|
124
|
+
unset(_cmake_import_check_targets)
|
125
|
+
|
126
|
+
# This file does not depend on other imported targets which have
|
127
|
+
# been exported from the same project but in a separate export set.
|
128
|
+
|
129
|
+
# Commands beyond this point should not need to know the version.
|
130
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
131
|
+
cmake_policy(POP)
|
@@ -1,9 +1,23 @@
|
|
1
|
-
if(NOT TARGET libhighs)
|
2
|
-
include("${CMAKE_CURRENT_LIST_DIR}/highs-targets.cmake")
|
3
|
-
endif()
|
4
1
|
|
5
|
-
|
2
|
+
|
3
|
+
set(HIGHS_DIR "")
|
4
|
+
|
5
|
+
if (FAST_BUILD)
|
6
|
+
if(NOT TARGET highs)
|
7
|
+
include("${CMAKE_CURRENT_LIST_DIR}/highs-targets.cmake")
|
8
|
+
endif()
|
9
|
+
|
10
|
+
set(HIGHS_LIBRARIES highs)
|
11
|
+
else()
|
12
|
+
if(NOT TARGET libhighs)
|
13
|
+
include("${CMAKE_CURRENT_LIST_DIR}/highs-targets.cmake")
|
14
|
+
endif()
|
15
|
+
|
16
|
+
set(HIGHS_LIBRARIES libhighs)
|
17
|
+
endif()
|
18
|
+
|
6
19
|
set(HIGHS_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../include/highs")
|
20
|
+
|
7
21
|
set(HIGHS_FOUND TRUE)
|
8
22
|
|
9
23
|
include(CMakeFindDependencyMacro)
|
@@ -17,12 +17,12 @@ list(APPEND _cmake_import_check_files_for_highs "${_IMPORT_PREFIX}/bin/highs" )
|
|
17
17
|
# Import target "libhighs" for configuration "Release"
|
18
18
|
set_property(TARGET libhighs APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
19
19
|
set_target_properties(libhighs PROPERTIES
|
20
|
-
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libhighs.so.1.
|
21
|
-
IMPORTED_SONAME_RELEASE "libhighs.so.1.
|
20
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libhighs.so.1.6.0"
|
21
|
+
IMPORTED_SONAME_RELEASE "libhighs.so.1.6"
|
22
22
|
)
|
23
23
|
|
24
24
|
list(APPEND _cmake_import_check_targets libhighs )
|
25
|
-
list(APPEND _cmake_import_check_files_for_libhighs "${_IMPORT_PREFIX}/lib/libhighs.so.1.
|
25
|
+
list(APPEND _cmake_import_check_files_for_libhighs "${_IMPORT_PREFIX}/lib/libhighs.so.1.6.0" )
|
26
26
|
|
27
27
|
# Commands beyond this point should not need to know the version.
|
28
28
|
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -59,7 +59,7 @@ endif()
|
|
59
59
|
add_executable(highs IMPORTED)
|
60
60
|
|
61
61
|
set_target_properties(highs PROPERTIES
|
62
|
-
INTERFACE_COMPILE_OPTIONS "-Wno-unused-variable;-Wno-unused-const-variable
|
62
|
+
INTERFACE_COMPILE_OPTIONS "-Wno-unused-variable;-Wno-unused-const-variable"
|
63
63
|
)
|
64
64
|
|
65
65
|
# Create imported target libhighs
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
4
|
+
#
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
6
|
+
# the requested version string are exactly the same and it sets
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
8
|
+
# but only if the requested major version is the same as the current one.
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
10
|
+
|
11
|
+
|
12
|
+
set(PACKAGE_VERSION "1.0.1")
|
13
|
+
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
16
|
+
else()
|
17
|
+
|
18
|
+
if("1.0.1" MATCHES "^([0-9]+)\\.")
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
22
|
+
endif()
|
23
|
+
else()
|
24
|
+
set(CVF_VERSION_MAJOR "1.0.1")
|
25
|
+
endif()
|
26
|
+
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
28
|
+
# both endpoints of the range must have the expected major version
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
38
|
+
else()
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
40
|
+
endif()
|
41
|
+
else()
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
44
|
+
else()
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
46
|
+
endif()
|
47
|
+
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
50
|
+
endif()
|
51
|
+
endif()
|
52
|
+
endif()
|
53
|
+
|
54
|
+
|
55
|
+
# if the installed project requested no architecture check, don't perform the check
|
56
|
+
if("FALSE")
|
57
|
+
return()
|
58
|
+
endif()
|
59
|
+
|
60
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
61
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "4" STREQUAL "")
|
62
|
+
return()
|
63
|
+
endif()
|
64
|
+
|
65
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
66
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "4")
|
67
|
+
math(EXPR installedBits "4 * 8")
|
68
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
69
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
70
|
+
endif()
|
@@ -0,0 +1 @@
|
|
1
|
+
include("${CMAKE_CURRENT_LIST_DIR}/sleqp-targets.cmake")
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "sleqp::sleqp" for configuration "Release"
|
9
|
+
set_property(TARGET sleqp::sleqp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(sleqp::sleqp PROPERTIES
|
11
|
+
IMPORTED_LINK_DEPENDENT_LIBRARIES_RELEASE "trlib::trlib"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libsleqp.so.1.0.1"
|
13
|
+
IMPORTED_SONAME_RELEASE "libsleqp.so.1.0.1"
|
14
|
+
)
|
15
|
+
|
16
|
+
list(APPEND _cmake_import_check_targets sleqp::sleqp )
|
17
|
+
list(APPEND _cmake_import_check_files_for_sleqp::sleqp "${_IMPORT_PREFIX}/lib/libsleqp.so.1.0.1" )
|
18
|
+
|
19
|
+
# Commands beyond this point should not need to know the version.
|
20
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|