From 5098bd77406b3b755e631b79ead32883d3f798ab Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 4 Dec 2024 13:33:48 +1300 Subject: [PATCH] [Bridges] rename files in /bridges to their type (#2586) --- docs/src/developer/checklists.md | 5 +- src/Bridges/Constraint/Constraint.jl | 54 ++----------------- ...jl => AbstractFunctionConversionBridge.jl} | 0 ...nterval.jl => AbstractToIntervalBridge.jl} | 0 ...l => AllDifferentToCountDistinctBridge.jl} | 0 ...n_packing.jl => BinPackingToMILPBridge.jl} | 0 .../{circuit.jl => CircuitToMILPBridge.jl} | 0 ...lexNormInfinityToSecondOrderConeBridge.jl} | 0 ...jl => CountAtLeastToCountBelongsBridge.jl} | 0 ...belongs.jl => CountBelongsToMILPBridge.jl} | 0 ...stinct.jl => CountDistinctToMILPBridge.jl} | 0 ...han.jl => CountGreaterThanToMILPBridge.jl} | 0 .../{flip_sign.jl => FlipSignBridge.jl} | 0 .../bridges/{geomean.jl => GeoMeanBridge.jl} | 0 ...an_to_power.jl => GeoMeanToPowerBridge.jl} | 0 ...o_relentr.jl => GeoMeantoRelEntrBridge.jl} | 0 ...an.jl => HermitianToSymmetricPSDBridge.jl} | 0 ...ero.jl => IndicatorActiveOnFalseBridge.jl} | 0 ...ndicator_sos.jl => IndicatorSOS1Bridge.jl} | 0 ...r_flipsign.jl => IndicatorSetMapBridge.jl} | 0 ...or_to_milp.jl => IndicatorToMILPBridge.jl} | 0 ...ts.jl => InequalityToComplementsBridge.jl} | 0 ...o_zeroone.jl => IntegerToZeroOneBridge.jl} | 0 .../bridges/{det.jl => LogDetBridge.jl} | 0 ...norm_infinity.jl => NormInfinityBridge.jl} | 0 ...pec_nuc_to_psd.jl => NormNuclearBridge.jl} | 0 .../bridges/{norm_one.jl => NormOneBridge.jl} | 0 ...ecial_case.jl => NormSpecialCaseBridge.jl} | 0 ...{norm_to_power.jl => NormToPowerBridge.jl} | 0 ...onversion.jl => NumberConversionBridge.jl} | 0 .../{quad_to_soc.jl => QuadtoSOCBridge.jl} | 0 .../{rsoc_soc.jl => RSOCtoSOCBridge.jl} | 0 ...ifiedAllDifferentToCountDistinctBridge.jl} | 0 ...jl => ReifiedCountDistinctToMILPBridge.jl} | 0 ...ntr_to_exp.jl => RelativeEntropyBridge.jl} | 0 ...ex_quad.jl => SOCtoNonConvexQuadBridge.jl} | 0 .../{soc_to_psd.jl => SOCtoPSDBridge.jl} | 0 .../{soc_rsoc.jl => SOCtoRSOCBridge.jl} | 0 .../{sos1_to_milp.jl => SOS1ToMILPBridge.jl} | 0 .../{sos2_to_milp.jl => SOS2ToMILPBridge.jl} | 0 .../{slack.jl => ScalarSlackBridge.jl} | 0 .../{scalarize.jl => ScalarizeBridge.jl} | 0 ...emi_to_binary.jl => SemiToBinaryBridge.jl} | 0 ...t_conversion.jl => SetConversionBridge.jl} | 0 ..._dot_scaling.jl => SetDotScalingBridge.jl} | 0 ...qualto.jl => SplitComplexEqualToBridge.jl} | 0 ...ex_zeros.jl => SplitComplexZerosBridge.jl} | 0 ...tangle.jl => SplitHyperRectangleBridge.jl} | 0 .../{interval.jl => SplitIntervalBridge.jl} | 0 .../bridges/{square.jl => SquareBridge.jl} | 0 .../{table.jl => TableToMILPBridge.jl} | 0 .../{vectorize.jl => VectorizeBridge.jl} | 0 .../bridges/{zero_one.jl => ZeroOneBridge.jl} | 0 src/Bridges/Objective/Objective.jl | 6 +-- ...version.jl => FunctionConversionBridge.jl} | 0 .../bridges/{slack.jl => SlackBridge.jl} | 0 .../{vector_slack.jl => VectorSlackBridge.jl} | 0 src/Bridges/Variable/Variable.jl | 12 ++--- .../{flip_sign.jl => FlipSignBridge.jl} | 0 .../bridges/{free.jl => FreeBridge.jl} | 0 ...an.jl => HermitianToSymmetricPSDBridge.jl} | 0 ...rameter.jl => ParameterToEqualToBridge.jl} | 0 .../{rsoc_to_psd.jl => RSOCtoPSDBridge.jl} | 0 .../{rsoc_soc.jl => RSOCtoSOCBridge.jl} | 0 .../{soc_rsoc.jl => SOCtoRSOCBridge.jl} | 0 .../{vectorize.jl => VectorizeBridge.jl} | 0 .../bridges/{zeros.jl => ZerosBridge.jl} | 0 ...l => AllDifferentToCountDistinctBridge.jl} | 0 ...n_packing.jl => BinPackingToMILPBridge.jl} | 0 .../{circuit.jl => CircuitToMILPBridge.jl} | 0 ...lexNormInfinityToSecondOrderConeBridge.jl} | 0 ...jl => CountAtLeastToCountBelongsBridge.jl} | 0 ...belongs.jl => CountBelongsToMILPBridge.jl} | 0 ...stinct.jl => CountDistinctToMILPBridge.jl} | 0 ...han.jl => CountGreaterThanToMILPBridge.jl} | 0 .../{geomean.jl => GeoMeanBridge.jl} | 0 ...power.jl => GeoMeanToPowerBridgeBridge.jl} | 0 ...o_relentr.jl => GeoMeantoRelEntrBridge.jl} | 0 ...interval.jl => GreaterToIntervalBridge.jl} | 0 .../{flip_sign.jl => GreaterToLessBridge.jl} | 0 ...an.jl => HermitianToSymmetricPSDBridge.jl} | 0 ...ero.jl => IndicatorActiveOnFalseBridge.jl} | 0 ...jl => IndicatorLessToGreaterThanBridge.jl} | 0 ...ndicator_sos.jl => IndicatorSOS1Bridge.jl} | 0 ...or_to_milp.jl => IndicatorToMILPBridge.jl} | 0 ...ts.jl => InequalityToComplementsBridge.jl} | 0 ...o_zeroone.jl => IntegerToZeroOneBridge.jl} | 0 .../Constraint/{det.jl => LogDetBridge.jl} | 0 .../{norm_to_lp.jl => NormInfinityBridge.jl} | 0 ...case.jl => NormOneConeToNormConeBridge.jl} | 0 ...ec_nuc_to_psd.jl => NormSpectralBridge.jl} | 0 ...{norm_to_power.jl => NormToPowerBridge.jl} | 0 ...onversion.jl => NumberConversionBridge.jl} | 0 .../{quad_to_soc.jl => QuadtoSOCBridge.jl} | 0 .../Constraint/{rsoc.jl => RSOCBridge.jl} | 0 ...x_quad.jl => RSOCtoNonConvexQuadBridge.jl} | 0 ...ifiedAllDifferentToCountDistinctBridge.jl} | 0 ...jl => ReifiedCountDistinctToMILPBridge.jl} | 0 ...ntr_to_exp.jl => RelativeEntropyBridge.jl} | 0 .../{soc_to_psd.jl => SOCtoPSDBridge.jl} | 0 .../{sos1_to_milp.jl => SOS1ToMILPBridge.jl} | 0 .../{sos2_to_milp.jl => SOS2ToMILPBridge.jl} | 0 ...ctionize.jl => ScalarFunctionizeBridge.jl} | 0 .../{slack.jl => ScalarSlackBridge.jl} | 0 .../{scalarize.jl => ScalarizeBridge.jl} | 0 ...emi_to_binary.jl => SemiToBinaryBridge.jl} | 0 ...t_conversion.jl => SetConversionBridge.jl} | 0 ..._dot_scaling.jl => SetDotScalingBridge.jl} | 0 ...qualto.jl => SplitComplexEqualToBridge.jl} | 0 ...ex_zeros.jl => SplitComplexZerosBridge.jl} | 0 ...tangle.jl => SplitHyperRectangleBridge.jl} | 0 .../{interval.jl => SplitIntervalBridge.jl} | 0 .../Constraint/{square.jl => SquareBridge.jl} | 0 .../{table.jl => TableToMILPBridge.jl} | 0 .../{vectorize.jl => VectorizeBridge.jl} | 0 .../{zero_one.jl => ZeroOneBridge.jl} | 0 ...version.jl => FunctionConversionBridge.jl} | 0 .../{functionize.jl => FunctionizeBridge.jl} | 0 .../{quadratize.jl => QuadratizeBridge.jl} | 0 .../Objective/{slack.jl => SlackBridge.jl} | 0 ...ctionize.jl => VectorFunctionizeBridge.jl} | 0 .../{vector_slack.jl => VectorSlackBridge.jl} | 0 .../Variable/{free.jl => FreeBridge.jl} | 0 ...an.jl => HermitianToSymmetricPSDBridge.jl} | 0 .../{flip_sign.jl => NonposToNonnegBridge.jl} | 0 ...rameter.jl => ParameterToEqualToBridge.jl} | 0 .../{rsoc_to_psd.jl => RSOCtoPSDBridge.jl} | 0 .../{rsoc_to_soc.jl => RSOCtoSOCBridge.jl} | 0 .../{soc_to_rsoc.jl => SOCtoRSOCBridge.jl} | 0 .../{vectorize.jl => VectorizeBridge.jl} | 0 130 files changed, 12 insertions(+), 65 deletions(-) rename src/Bridges/Constraint/bridges/{functionize.jl => AbstractFunctionConversionBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{ltgt_to_interval.jl => AbstractToIntervalBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{all_different.jl => AllDifferentToCountDistinctBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{bin_packing.jl => BinPackingToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{circuit.jl => CircuitToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{complex_norm_infinity.jl => ComplexNormInfinityToSecondOrderConeBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{count_at_least.jl => CountAtLeastToCountBelongsBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{count_belongs.jl => CountBelongsToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{count_distinct.jl => CountDistinctToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{count_greater_than.jl => CountGreaterThanToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{flip_sign.jl => FlipSignBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{geomean.jl => GeoMeanBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{geomean_to_power.jl => GeoMeanToPowerBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{geomean_to_relentr.jl => GeoMeantoRelEntrBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{hermitian.jl => HermitianToSymmetricPSDBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{indicator_activate_on_zero.jl => IndicatorActiveOnFalseBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{indicator_sos.jl => IndicatorSOS1Bridge.jl} (100%) rename src/Bridges/Constraint/bridges/{indicator_flipsign.jl => IndicatorSetMapBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{indicator_to_milp.jl => IndicatorToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{inequality_to_complements.jl => InequalityToComplementsBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{integer_to_zeroone.jl => IntegerToZeroOneBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{det.jl => LogDetBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{norm_infinity.jl => NormInfinityBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{norm_spec_nuc_to_psd.jl => NormNuclearBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{norm_one.jl => NormOneBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{norm_special_case.jl => NormSpecialCaseBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{norm_to_power.jl => NormToPowerBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{number_conversion.jl => NumberConversionBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{quad_to_soc.jl => QuadtoSOCBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{rsoc_soc.jl => RSOCtoSOCBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{all_different_reif.jl => ReifiedAllDifferentToCountDistinctBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{count_distinct_reif.jl => ReifiedCountDistinctToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{relentr_to_exp.jl => RelativeEntropyBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{soc_to_nonconvex_quad.jl => SOCtoNonConvexQuadBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{soc_to_psd.jl => SOCtoPSDBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{soc_rsoc.jl => SOCtoRSOCBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{sos1_to_milp.jl => SOS1ToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{sos2_to_milp.jl => SOS2ToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{slack.jl => ScalarSlackBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{scalarize.jl => ScalarizeBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{semi_to_binary.jl => SemiToBinaryBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{set_conversion.jl => SetConversionBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{set_dot_scaling.jl => SetDotScalingBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{split_complex_equalto.jl => SplitComplexEqualToBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{split_complex_zeros.jl => SplitComplexZerosBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{split_hyperrectangle.jl => SplitHyperRectangleBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{interval.jl => SplitIntervalBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{square.jl => SquareBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{table.jl => TableToMILPBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{vectorize.jl => VectorizeBridge.jl} (100%) rename src/Bridges/Constraint/bridges/{zero_one.jl => ZeroOneBridge.jl} (100%) rename src/Bridges/Objective/bridges/{conversion.jl => FunctionConversionBridge.jl} (100%) rename src/Bridges/Objective/bridges/{slack.jl => SlackBridge.jl} (100%) rename src/Bridges/Objective/bridges/{vector_slack.jl => VectorSlackBridge.jl} (100%) rename src/Bridges/Variable/bridges/{flip_sign.jl => FlipSignBridge.jl} (100%) rename src/Bridges/Variable/bridges/{free.jl => FreeBridge.jl} (100%) rename src/Bridges/Variable/bridges/{hermitian.jl => HermitianToSymmetricPSDBridge.jl} (100%) rename src/Bridges/Variable/bridges/{parameter.jl => ParameterToEqualToBridge.jl} (100%) rename src/Bridges/Variable/bridges/{rsoc_to_psd.jl => RSOCtoPSDBridge.jl} (100%) rename src/Bridges/Variable/bridges/{rsoc_soc.jl => RSOCtoSOCBridge.jl} (100%) rename src/Bridges/Variable/bridges/{soc_rsoc.jl => SOCtoRSOCBridge.jl} (100%) rename src/Bridges/Variable/bridges/{vectorize.jl => VectorizeBridge.jl} (100%) rename src/Bridges/Variable/bridges/{zeros.jl => ZerosBridge.jl} (100%) rename test/Bridges/Constraint/{all_different.jl => AllDifferentToCountDistinctBridge.jl} (100%) rename test/Bridges/Constraint/{bin_packing.jl => BinPackingToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{circuit.jl => CircuitToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{complex_norm_infinity.jl => ComplexNormInfinityToSecondOrderConeBridge.jl} (100%) rename test/Bridges/Constraint/{count_at_least.jl => CountAtLeastToCountBelongsBridge.jl} (100%) rename test/Bridges/Constraint/{count_belongs.jl => CountBelongsToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{count_distinct.jl => CountDistinctToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{count_greater_than.jl => CountGreaterThanToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{geomean.jl => GeoMeanBridge.jl} (100%) rename test/Bridges/Constraint/{geomean_to_power.jl => GeoMeanToPowerBridgeBridge.jl} (100%) rename test/Bridges/Constraint/{geomean_to_relentr.jl => GeoMeantoRelEntrBridge.jl} (100%) rename test/Bridges/Constraint/{ltgt_to_interval.jl => GreaterToIntervalBridge.jl} (100%) rename test/Bridges/Constraint/{flip_sign.jl => GreaterToLessBridge.jl} (100%) rename test/Bridges/Constraint/{hermitian.jl => HermitianToSymmetricPSDBridge.jl} (100%) rename test/Bridges/Constraint/{indicator_activate_on_zero.jl => IndicatorActiveOnFalseBridge.jl} (100%) rename test/Bridges/Constraint/{indicator_flipsign.jl => IndicatorLessToGreaterThanBridge.jl} (100%) rename test/Bridges/Constraint/{indicator_sos.jl => IndicatorSOS1Bridge.jl} (100%) rename test/Bridges/Constraint/{indicator_to_milp.jl => IndicatorToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{inequality_to_complements.jl => InequalityToComplementsBridge.jl} (100%) rename test/Bridges/Constraint/{integer_to_zeroone.jl => IntegerToZeroOneBridge.jl} (100%) rename test/Bridges/Constraint/{det.jl => LogDetBridge.jl} (100%) rename test/Bridges/Constraint/{norm_to_lp.jl => NormInfinityBridge.jl} (100%) rename test/Bridges/Constraint/{norm_special_case.jl => NormOneConeToNormConeBridge.jl} (100%) rename test/Bridges/Constraint/{norm_spec_nuc_to_psd.jl => NormSpectralBridge.jl} (100%) rename test/Bridges/Constraint/{norm_to_power.jl => NormToPowerBridge.jl} (100%) rename test/Bridges/Constraint/{number_conversion.jl => NumberConversionBridge.jl} (100%) rename test/Bridges/Constraint/{quad_to_soc.jl => QuadtoSOCBridge.jl} (100%) rename test/Bridges/Constraint/{rsoc.jl => RSOCBridge.jl} (100%) rename test/Bridges/Constraint/{soc_to_nonconvex_quad.jl => RSOCtoNonConvexQuadBridge.jl} (100%) rename test/Bridges/Constraint/{all_different_reif.jl => ReifiedAllDifferentToCountDistinctBridge.jl} (100%) rename test/Bridges/Constraint/{count_distinct_reif.jl => ReifiedCountDistinctToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{relentr_to_exp.jl => RelativeEntropyBridge.jl} (100%) rename test/Bridges/Constraint/{soc_to_psd.jl => SOCtoPSDBridge.jl} (100%) rename test/Bridges/Constraint/{sos1_to_milp.jl => SOS1ToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{sos2_to_milp.jl => SOS2ToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{functionize.jl => ScalarFunctionizeBridge.jl} (100%) rename test/Bridges/Constraint/{slack.jl => ScalarSlackBridge.jl} (100%) rename test/Bridges/Constraint/{scalarize.jl => ScalarizeBridge.jl} (100%) rename test/Bridges/Constraint/{semi_to_binary.jl => SemiToBinaryBridge.jl} (100%) rename test/Bridges/Constraint/{set_conversion.jl => SetConversionBridge.jl} (100%) rename test/Bridges/Constraint/{set_dot_scaling.jl => SetDotScalingBridge.jl} (100%) rename test/Bridges/Constraint/{split_complex_equalto.jl => SplitComplexEqualToBridge.jl} (100%) rename test/Bridges/Constraint/{split_complex_zeros.jl => SplitComplexZerosBridge.jl} (100%) rename test/Bridges/Constraint/{hyper_rectangle.jl => SplitHyperRectangleBridge.jl} (100%) rename test/Bridges/Constraint/{interval.jl => SplitIntervalBridge.jl} (100%) rename test/Bridges/Constraint/{square.jl => SquareBridge.jl} (100%) rename test/Bridges/Constraint/{table.jl => TableToMILPBridge.jl} (100%) rename test/Bridges/Constraint/{vectorize.jl => VectorizeBridge.jl} (100%) rename test/Bridges/Constraint/{zero_one.jl => ZeroOneBridge.jl} (100%) rename test/Bridges/Objective/{conversion.jl => FunctionConversionBridge.jl} (100%) rename test/Bridges/Objective/{functionize.jl => FunctionizeBridge.jl} (100%) rename test/Bridges/Objective/{quadratize.jl => QuadratizeBridge.jl} (100%) rename test/Bridges/Objective/{slack.jl => SlackBridge.jl} (100%) rename test/Bridges/Objective/{vector_functionize.jl => VectorFunctionizeBridge.jl} (100%) rename test/Bridges/Objective/{vector_slack.jl => VectorSlackBridge.jl} (100%) rename test/Bridges/Variable/{free.jl => FreeBridge.jl} (100%) rename test/Bridges/Variable/{hermitian.jl => HermitianToSymmetricPSDBridge.jl} (100%) rename test/Bridges/Variable/{flip_sign.jl => NonposToNonnegBridge.jl} (100%) rename test/Bridges/Variable/{parameter.jl => ParameterToEqualToBridge.jl} (100%) rename test/Bridges/Variable/{rsoc_to_psd.jl => RSOCtoPSDBridge.jl} (100%) rename test/Bridges/Variable/{rsoc_to_soc.jl => RSOCtoSOCBridge.jl} (100%) rename test/Bridges/Variable/{soc_to_rsoc.jl => SOCtoRSOCBridge.jl} (100%) rename test/Bridges/Variable/{vectorize.jl => VectorizeBridge.jl} (100%) diff --git a/docs/src/developer/checklists.md b/docs/src/developer/checklists.md index 6ff9644ff4..93664785fd 100644 --- a/docs/src/developer/checklists.md +++ b/docs/src/developer/checklists.md @@ -87,20 +87,21 @@ The steps are mostly the same, but locations depend on whether the bridge is a ``` ## Basic - - [ ] Create a new file in `src/Bridges/XXX/bridges` + - [ ] Create a new file in `src/Bridges/XXX/bridges` named after the type of + the bridge - [ ] Define the bridge, following existing examples. The name of the bridge struct must end in `Bridge` - [ ] Check if your bridge can be a subtype of [`MOI.Bridges.Constraint.SetMapBridge`](@ref) - [ ] Define a new `const` that is a `SingleBridgeOptimizer` wrapping the new bridge. The name of the const must be the name of the bridge, less the `Bridge` suffix - - [ ] `include` the file in `src/Bridges/XXX/bridges/XXX.jl` - [ ] If the bridge should be enabled by default, add the bridge to `add_all_bridges` at the bottom of `src/Bridges/XXX/XXX.jl` ## Tests - [ ] Create a new file in the appropriate subdirectory of `tests/Bridges/XXX` + named after the type of the bridge - [ ] Use `MOI.Bridges.runtests` to test various inputs and outputs of the bridge - [ ] If, after opening the pull request to add the bridge, some lines are not diff --git a/src/Bridges/Constraint/Constraint.jl b/src/Bridges/Constraint/Constraint.jl index d9d3c84074..99f25a1a67 100644 --- a/src/Bridges/Constraint/Constraint.jl +++ b/src/Bridges/Constraint/Constraint.jl @@ -17,57 +17,9 @@ include("map.jl") include("set_map.jl") include("single_bridge_optimizer.jl") -include("bridges/all_different.jl") -include("bridges/all_different_reif.jl") -include("bridges/bin_packing.jl") -include("bridges/circuit.jl") -include("bridges/complex_norm_infinity.jl") -include("bridges/count_at_least.jl") -include("bridges/count_belongs.jl") -include("bridges/count_distinct.jl") -include("bridges/count_distinct_reif.jl") -include("bridges/count_greater_than.jl") -include("bridges/det.jl") -include("bridges/flip_sign.jl") -include("bridges/functionize.jl") -include("bridges/geomean_to_power.jl") -include("bridges/geomean_to_relentr.jl") -include("bridges/geomean.jl") -include("bridges/indicator_activate_on_zero.jl") -include("bridges/indicator_flipsign.jl") -include("bridges/indicator_sos.jl") -include("bridges/inequality_to_complements.jl") -include("bridges/integer_to_zeroone.jl") -include("bridges/interval.jl") -include("bridges/ltgt_to_interval.jl") -include("bridges/norm_infinity.jl") -include("bridges/norm_one.jl") -include("bridges/norm_to_power.jl") -include("bridges/norm_special_case.jl") -include("bridges/norm_spec_nuc_to_psd.jl") -include("bridges/number_conversion.jl") -include("bridges/quad_to_soc.jl") -include("bridges/relentr_to_exp.jl") -include("bridges/rsoc_soc.jl") -include("bridges/scalarize.jl") -include("bridges/semi_to_binary.jl") -include("bridges/slack.jl") -include("bridges/soc_rsoc.jl") -include("bridges/soc_to_nonconvex_quad.jl") # do not add these bridges by default -include("bridges/soc_to_psd.jl") -include("bridges/split_complex_equalto.jl") -include("bridges/split_complex_zeros.jl") -include("bridges/split_hyperrectangle.jl") -include("bridges/hermitian.jl") -include("bridges/square.jl") -include("bridges/set_conversion.jl") -include("bridges/set_dot_scaling.jl") -include("bridges/table.jl") -include("bridges/vectorize.jl") -include("bridges/zero_one.jl") -include("bridges/sos1_to_milp.jl") -include("bridges/sos2_to_milp.jl") -include("bridges/indicator_to_milp.jl") +for filename in readdir(joinpath(@__DIR__, "bridges"); join = true) + include(filename) +end """ add_all_bridges(bridged_model, ::Type{T}) where {T} diff --git a/src/Bridges/Constraint/bridges/functionize.jl b/src/Bridges/Constraint/bridges/AbstractFunctionConversionBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/functionize.jl rename to src/Bridges/Constraint/bridges/AbstractFunctionConversionBridge.jl diff --git a/src/Bridges/Constraint/bridges/ltgt_to_interval.jl b/src/Bridges/Constraint/bridges/AbstractToIntervalBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/ltgt_to_interval.jl rename to src/Bridges/Constraint/bridges/AbstractToIntervalBridge.jl diff --git a/src/Bridges/Constraint/bridges/all_different.jl b/src/Bridges/Constraint/bridges/AllDifferentToCountDistinctBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/all_different.jl rename to src/Bridges/Constraint/bridges/AllDifferentToCountDistinctBridge.jl diff --git a/src/Bridges/Constraint/bridges/bin_packing.jl b/src/Bridges/Constraint/bridges/BinPackingToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/bin_packing.jl rename to src/Bridges/Constraint/bridges/BinPackingToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/circuit.jl b/src/Bridges/Constraint/bridges/CircuitToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/circuit.jl rename to src/Bridges/Constraint/bridges/CircuitToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/complex_norm_infinity.jl b/src/Bridges/Constraint/bridges/ComplexNormInfinityToSecondOrderConeBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/complex_norm_infinity.jl rename to src/Bridges/Constraint/bridges/ComplexNormInfinityToSecondOrderConeBridge.jl diff --git a/src/Bridges/Constraint/bridges/count_at_least.jl b/src/Bridges/Constraint/bridges/CountAtLeastToCountBelongsBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/count_at_least.jl rename to src/Bridges/Constraint/bridges/CountAtLeastToCountBelongsBridge.jl diff --git a/src/Bridges/Constraint/bridges/count_belongs.jl b/src/Bridges/Constraint/bridges/CountBelongsToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/count_belongs.jl rename to src/Bridges/Constraint/bridges/CountBelongsToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/count_distinct.jl b/src/Bridges/Constraint/bridges/CountDistinctToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/count_distinct.jl rename to src/Bridges/Constraint/bridges/CountDistinctToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/count_greater_than.jl b/src/Bridges/Constraint/bridges/CountGreaterThanToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/count_greater_than.jl rename to src/Bridges/Constraint/bridges/CountGreaterThanToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/flip_sign.jl b/src/Bridges/Constraint/bridges/FlipSignBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/flip_sign.jl rename to src/Bridges/Constraint/bridges/FlipSignBridge.jl diff --git a/src/Bridges/Constraint/bridges/geomean.jl b/src/Bridges/Constraint/bridges/GeoMeanBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/geomean.jl rename to src/Bridges/Constraint/bridges/GeoMeanBridge.jl diff --git a/src/Bridges/Constraint/bridges/geomean_to_power.jl b/src/Bridges/Constraint/bridges/GeoMeanToPowerBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/geomean_to_power.jl rename to src/Bridges/Constraint/bridges/GeoMeanToPowerBridge.jl diff --git a/src/Bridges/Constraint/bridges/geomean_to_relentr.jl b/src/Bridges/Constraint/bridges/GeoMeantoRelEntrBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/geomean_to_relentr.jl rename to src/Bridges/Constraint/bridges/GeoMeantoRelEntrBridge.jl diff --git a/src/Bridges/Constraint/bridges/hermitian.jl b/src/Bridges/Constraint/bridges/HermitianToSymmetricPSDBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/hermitian.jl rename to src/Bridges/Constraint/bridges/HermitianToSymmetricPSDBridge.jl diff --git a/src/Bridges/Constraint/bridges/indicator_activate_on_zero.jl b/src/Bridges/Constraint/bridges/IndicatorActiveOnFalseBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/indicator_activate_on_zero.jl rename to src/Bridges/Constraint/bridges/IndicatorActiveOnFalseBridge.jl diff --git a/src/Bridges/Constraint/bridges/indicator_sos.jl b/src/Bridges/Constraint/bridges/IndicatorSOS1Bridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/indicator_sos.jl rename to src/Bridges/Constraint/bridges/IndicatorSOS1Bridge.jl diff --git a/src/Bridges/Constraint/bridges/indicator_flipsign.jl b/src/Bridges/Constraint/bridges/IndicatorSetMapBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/indicator_flipsign.jl rename to src/Bridges/Constraint/bridges/IndicatorSetMapBridge.jl diff --git a/src/Bridges/Constraint/bridges/indicator_to_milp.jl b/src/Bridges/Constraint/bridges/IndicatorToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/indicator_to_milp.jl rename to src/Bridges/Constraint/bridges/IndicatorToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/inequality_to_complements.jl b/src/Bridges/Constraint/bridges/InequalityToComplementsBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/inequality_to_complements.jl rename to src/Bridges/Constraint/bridges/InequalityToComplementsBridge.jl diff --git a/src/Bridges/Constraint/bridges/integer_to_zeroone.jl b/src/Bridges/Constraint/bridges/IntegerToZeroOneBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/integer_to_zeroone.jl rename to src/Bridges/Constraint/bridges/IntegerToZeroOneBridge.jl diff --git a/src/Bridges/Constraint/bridges/det.jl b/src/Bridges/Constraint/bridges/LogDetBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/det.jl rename to src/Bridges/Constraint/bridges/LogDetBridge.jl diff --git a/src/Bridges/Constraint/bridges/norm_infinity.jl b/src/Bridges/Constraint/bridges/NormInfinityBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/norm_infinity.jl rename to src/Bridges/Constraint/bridges/NormInfinityBridge.jl diff --git a/src/Bridges/Constraint/bridges/norm_spec_nuc_to_psd.jl b/src/Bridges/Constraint/bridges/NormNuclearBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/norm_spec_nuc_to_psd.jl rename to src/Bridges/Constraint/bridges/NormNuclearBridge.jl diff --git a/src/Bridges/Constraint/bridges/norm_one.jl b/src/Bridges/Constraint/bridges/NormOneBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/norm_one.jl rename to src/Bridges/Constraint/bridges/NormOneBridge.jl diff --git a/src/Bridges/Constraint/bridges/norm_special_case.jl b/src/Bridges/Constraint/bridges/NormSpecialCaseBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/norm_special_case.jl rename to src/Bridges/Constraint/bridges/NormSpecialCaseBridge.jl diff --git a/src/Bridges/Constraint/bridges/norm_to_power.jl b/src/Bridges/Constraint/bridges/NormToPowerBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/norm_to_power.jl rename to src/Bridges/Constraint/bridges/NormToPowerBridge.jl diff --git a/src/Bridges/Constraint/bridges/number_conversion.jl b/src/Bridges/Constraint/bridges/NumberConversionBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/number_conversion.jl rename to src/Bridges/Constraint/bridges/NumberConversionBridge.jl diff --git a/src/Bridges/Constraint/bridges/quad_to_soc.jl b/src/Bridges/Constraint/bridges/QuadtoSOCBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/quad_to_soc.jl rename to src/Bridges/Constraint/bridges/QuadtoSOCBridge.jl diff --git a/src/Bridges/Constraint/bridges/rsoc_soc.jl b/src/Bridges/Constraint/bridges/RSOCtoSOCBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/rsoc_soc.jl rename to src/Bridges/Constraint/bridges/RSOCtoSOCBridge.jl diff --git a/src/Bridges/Constraint/bridges/all_different_reif.jl b/src/Bridges/Constraint/bridges/ReifiedAllDifferentToCountDistinctBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/all_different_reif.jl rename to src/Bridges/Constraint/bridges/ReifiedAllDifferentToCountDistinctBridge.jl diff --git a/src/Bridges/Constraint/bridges/count_distinct_reif.jl b/src/Bridges/Constraint/bridges/ReifiedCountDistinctToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/count_distinct_reif.jl rename to src/Bridges/Constraint/bridges/ReifiedCountDistinctToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/relentr_to_exp.jl b/src/Bridges/Constraint/bridges/RelativeEntropyBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/relentr_to_exp.jl rename to src/Bridges/Constraint/bridges/RelativeEntropyBridge.jl diff --git a/src/Bridges/Constraint/bridges/soc_to_nonconvex_quad.jl b/src/Bridges/Constraint/bridges/SOCtoNonConvexQuadBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/soc_to_nonconvex_quad.jl rename to src/Bridges/Constraint/bridges/SOCtoNonConvexQuadBridge.jl diff --git a/src/Bridges/Constraint/bridges/soc_to_psd.jl b/src/Bridges/Constraint/bridges/SOCtoPSDBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/soc_to_psd.jl rename to src/Bridges/Constraint/bridges/SOCtoPSDBridge.jl diff --git a/src/Bridges/Constraint/bridges/soc_rsoc.jl b/src/Bridges/Constraint/bridges/SOCtoRSOCBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/soc_rsoc.jl rename to src/Bridges/Constraint/bridges/SOCtoRSOCBridge.jl diff --git a/src/Bridges/Constraint/bridges/sos1_to_milp.jl b/src/Bridges/Constraint/bridges/SOS1ToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/sos1_to_milp.jl rename to src/Bridges/Constraint/bridges/SOS1ToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/sos2_to_milp.jl b/src/Bridges/Constraint/bridges/SOS2ToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/sos2_to_milp.jl rename to src/Bridges/Constraint/bridges/SOS2ToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/slack.jl b/src/Bridges/Constraint/bridges/ScalarSlackBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/slack.jl rename to src/Bridges/Constraint/bridges/ScalarSlackBridge.jl diff --git a/src/Bridges/Constraint/bridges/scalarize.jl b/src/Bridges/Constraint/bridges/ScalarizeBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/scalarize.jl rename to src/Bridges/Constraint/bridges/ScalarizeBridge.jl diff --git a/src/Bridges/Constraint/bridges/semi_to_binary.jl b/src/Bridges/Constraint/bridges/SemiToBinaryBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/semi_to_binary.jl rename to src/Bridges/Constraint/bridges/SemiToBinaryBridge.jl diff --git a/src/Bridges/Constraint/bridges/set_conversion.jl b/src/Bridges/Constraint/bridges/SetConversionBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/set_conversion.jl rename to src/Bridges/Constraint/bridges/SetConversionBridge.jl diff --git a/src/Bridges/Constraint/bridges/set_dot_scaling.jl b/src/Bridges/Constraint/bridges/SetDotScalingBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/set_dot_scaling.jl rename to src/Bridges/Constraint/bridges/SetDotScalingBridge.jl diff --git a/src/Bridges/Constraint/bridges/split_complex_equalto.jl b/src/Bridges/Constraint/bridges/SplitComplexEqualToBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/split_complex_equalto.jl rename to src/Bridges/Constraint/bridges/SplitComplexEqualToBridge.jl diff --git a/src/Bridges/Constraint/bridges/split_complex_zeros.jl b/src/Bridges/Constraint/bridges/SplitComplexZerosBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/split_complex_zeros.jl rename to src/Bridges/Constraint/bridges/SplitComplexZerosBridge.jl diff --git a/src/Bridges/Constraint/bridges/split_hyperrectangle.jl b/src/Bridges/Constraint/bridges/SplitHyperRectangleBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/split_hyperrectangle.jl rename to src/Bridges/Constraint/bridges/SplitHyperRectangleBridge.jl diff --git a/src/Bridges/Constraint/bridges/interval.jl b/src/Bridges/Constraint/bridges/SplitIntervalBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/interval.jl rename to src/Bridges/Constraint/bridges/SplitIntervalBridge.jl diff --git a/src/Bridges/Constraint/bridges/square.jl b/src/Bridges/Constraint/bridges/SquareBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/square.jl rename to src/Bridges/Constraint/bridges/SquareBridge.jl diff --git a/src/Bridges/Constraint/bridges/table.jl b/src/Bridges/Constraint/bridges/TableToMILPBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/table.jl rename to src/Bridges/Constraint/bridges/TableToMILPBridge.jl diff --git a/src/Bridges/Constraint/bridges/vectorize.jl b/src/Bridges/Constraint/bridges/VectorizeBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/vectorize.jl rename to src/Bridges/Constraint/bridges/VectorizeBridge.jl diff --git a/src/Bridges/Constraint/bridges/zero_one.jl b/src/Bridges/Constraint/bridges/ZeroOneBridge.jl similarity index 100% rename from src/Bridges/Constraint/bridges/zero_one.jl rename to src/Bridges/Constraint/bridges/ZeroOneBridge.jl diff --git a/src/Bridges/Objective/Objective.jl b/src/Bridges/Objective/Objective.jl index ae0c72e5c5..6f00e08683 100644 --- a/src/Bridges/Objective/Objective.jl +++ b/src/Bridges/Objective/Objective.jl @@ -12,9 +12,9 @@ include("bridge.jl") include("map.jl") include("single_bridge_optimizer.jl") -include("bridges/conversion.jl") -include("bridges/slack.jl") -include("bridges/vector_slack.jl") +for filename in readdir(joinpath(@__DIR__, "bridges"); join = true) + include(filename) +end """ add_all_bridges(model, ::Type{T}) where {T} diff --git a/src/Bridges/Objective/bridges/conversion.jl b/src/Bridges/Objective/bridges/FunctionConversionBridge.jl similarity index 100% rename from src/Bridges/Objective/bridges/conversion.jl rename to src/Bridges/Objective/bridges/FunctionConversionBridge.jl diff --git a/src/Bridges/Objective/bridges/slack.jl b/src/Bridges/Objective/bridges/SlackBridge.jl similarity index 100% rename from src/Bridges/Objective/bridges/slack.jl rename to src/Bridges/Objective/bridges/SlackBridge.jl diff --git a/src/Bridges/Objective/bridges/vector_slack.jl b/src/Bridges/Objective/bridges/VectorSlackBridge.jl similarity index 100% rename from src/Bridges/Objective/bridges/vector_slack.jl rename to src/Bridges/Objective/bridges/VectorSlackBridge.jl diff --git a/src/Bridges/Variable/Variable.jl b/src/Bridges/Variable/Variable.jl index 5c905c9146..1cffd8fd62 100644 --- a/src/Bridges/Variable/Variable.jl +++ b/src/Bridges/Variable/Variable.jl @@ -13,15 +13,9 @@ include("map.jl") include("set_map.jl") include("single_bridge_optimizer.jl") -include("bridges/flip_sign.jl") -include("bridges/free.jl") -include("bridges/rsoc_to_psd.jl") -include("bridges/rsoc_soc.jl") -include("bridges/soc_rsoc.jl") -include("bridges/vectorize.jl") -include("bridges/zeros.jl") -include("bridges/hermitian.jl") -include("bridges/parameter.jl") +for filename in readdir(joinpath(@__DIR__, "bridges"); join = true) + include(filename) +end """ add_all_bridges(model, ::Type{T}) where {T} diff --git a/src/Bridges/Variable/bridges/flip_sign.jl b/src/Bridges/Variable/bridges/FlipSignBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/flip_sign.jl rename to src/Bridges/Variable/bridges/FlipSignBridge.jl diff --git a/src/Bridges/Variable/bridges/free.jl b/src/Bridges/Variable/bridges/FreeBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/free.jl rename to src/Bridges/Variable/bridges/FreeBridge.jl diff --git a/src/Bridges/Variable/bridges/hermitian.jl b/src/Bridges/Variable/bridges/HermitianToSymmetricPSDBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/hermitian.jl rename to src/Bridges/Variable/bridges/HermitianToSymmetricPSDBridge.jl diff --git a/src/Bridges/Variable/bridges/parameter.jl b/src/Bridges/Variable/bridges/ParameterToEqualToBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/parameter.jl rename to src/Bridges/Variable/bridges/ParameterToEqualToBridge.jl diff --git a/src/Bridges/Variable/bridges/rsoc_to_psd.jl b/src/Bridges/Variable/bridges/RSOCtoPSDBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/rsoc_to_psd.jl rename to src/Bridges/Variable/bridges/RSOCtoPSDBridge.jl diff --git a/src/Bridges/Variable/bridges/rsoc_soc.jl b/src/Bridges/Variable/bridges/RSOCtoSOCBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/rsoc_soc.jl rename to src/Bridges/Variable/bridges/RSOCtoSOCBridge.jl diff --git a/src/Bridges/Variable/bridges/soc_rsoc.jl b/src/Bridges/Variable/bridges/SOCtoRSOCBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/soc_rsoc.jl rename to src/Bridges/Variable/bridges/SOCtoRSOCBridge.jl diff --git a/src/Bridges/Variable/bridges/vectorize.jl b/src/Bridges/Variable/bridges/VectorizeBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/vectorize.jl rename to src/Bridges/Variable/bridges/VectorizeBridge.jl diff --git a/src/Bridges/Variable/bridges/zeros.jl b/src/Bridges/Variable/bridges/ZerosBridge.jl similarity index 100% rename from src/Bridges/Variable/bridges/zeros.jl rename to src/Bridges/Variable/bridges/ZerosBridge.jl diff --git a/test/Bridges/Constraint/all_different.jl b/test/Bridges/Constraint/AllDifferentToCountDistinctBridge.jl similarity index 100% rename from test/Bridges/Constraint/all_different.jl rename to test/Bridges/Constraint/AllDifferentToCountDistinctBridge.jl diff --git a/test/Bridges/Constraint/bin_packing.jl b/test/Bridges/Constraint/BinPackingToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/bin_packing.jl rename to test/Bridges/Constraint/BinPackingToMILPBridge.jl diff --git a/test/Bridges/Constraint/circuit.jl b/test/Bridges/Constraint/CircuitToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/circuit.jl rename to test/Bridges/Constraint/CircuitToMILPBridge.jl diff --git a/test/Bridges/Constraint/complex_norm_infinity.jl b/test/Bridges/Constraint/ComplexNormInfinityToSecondOrderConeBridge.jl similarity index 100% rename from test/Bridges/Constraint/complex_norm_infinity.jl rename to test/Bridges/Constraint/ComplexNormInfinityToSecondOrderConeBridge.jl diff --git a/test/Bridges/Constraint/count_at_least.jl b/test/Bridges/Constraint/CountAtLeastToCountBelongsBridge.jl similarity index 100% rename from test/Bridges/Constraint/count_at_least.jl rename to test/Bridges/Constraint/CountAtLeastToCountBelongsBridge.jl diff --git a/test/Bridges/Constraint/count_belongs.jl b/test/Bridges/Constraint/CountBelongsToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/count_belongs.jl rename to test/Bridges/Constraint/CountBelongsToMILPBridge.jl diff --git a/test/Bridges/Constraint/count_distinct.jl b/test/Bridges/Constraint/CountDistinctToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/count_distinct.jl rename to test/Bridges/Constraint/CountDistinctToMILPBridge.jl diff --git a/test/Bridges/Constraint/count_greater_than.jl b/test/Bridges/Constraint/CountGreaterThanToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/count_greater_than.jl rename to test/Bridges/Constraint/CountGreaterThanToMILPBridge.jl diff --git a/test/Bridges/Constraint/geomean.jl b/test/Bridges/Constraint/GeoMeanBridge.jl similarity index 100% rename from test/Bridges/Constraint/geomean.jl rename to test/Bridges/Constraint/GeoMeanBridge.jl diff --git a/test/Bridges/Constraint/geomean_to_power.jl b/test/Bridges/Constraint/GeoMeanToPowerBridgeBridge.jl similarity index 100% rename from test/Bridges/Constraint/geomean_to_power.jl rename to test/Bridges/Constraint/GeoMeanToPowerBridgeBridge.jl diff --git a/test/Bridges/Constraint/geomean_to_relentr.jl b/test/Bridges/Constraint/GeoMeantoRelEntrBridge.jl similarity index 100% rename from test/Bridges/Constraint/geomean_to_relentr.jl rename to test/Bridges/Constraint/GeoMeantoRelEntrBridge.jl diff --git a/test/Bridges/Constraint/ltgt_to_interval.jl b/test/Bridges/Constraint/GreaterToIntervalBridge.jl similarity index 100% rename from test/Bridges/Constraint/ltgt_to_interval.jl rename to test/Bridges/Constraint/GreaterToIntervalBridge.jl diff --git a/test/Bridges/Constraint/flip_sign.jl b/test/Bridges/Constraint/GreaterToLessBridge.jl similarity index 100% rename from test/Bridges/Constraint/flip_sign.jl rename to test/Bridges/Constraint/GreaterToLessBridge.jl diff --git a/test/Bridges/Constraint/hermitian.jl b/test/Bridges/Constraint/HermitianToSymmetricPSDBridge.jl similarity index 100% rename from test/Bridges/Constraint/hermitian.jl rename to test/Bridges/Constraint/HermitianToSymmetricPSDBridge.jl diff --git a/test/Bridges/Constraint/indicator_activate_on_zero.jl b/test/Bridges/Constraint/IndicatorActiveOnFalseBridge.jl similarity index 100% rename from test/Bridges/Constraint/indicator_activate_on_zero.jl rename to test/Bridges/Constraint/IndicatorActiveOnFalseBridge.jl diff --git a/test/Bridges/Constraint/indicator_flipsign.jl b/test/Bridges/Constraint/IndicatorLessToGreaterThanBridge.jl similarity index 100% rename from test/Bridges/Constraint/indicator_flipsign.jl rename to test/Bridges/Constraint/IndicatorLessToGreaterThanBridge.jl diff --git a/test/Bridges/Constraint/indicator_sos.jl b/test/Bridges/Constraint/IndicatorSOS1Bridge.jl similarity index 100% rename from test/Bridges/Constraint/indicator_sos.jl rename to test/Bridges/Constraint/IndicatorSOS1Bridge.jl diff --git a/test/Bridges/Constraint/indicator_to_milp.jl b/test/Bridges/Constraint/IndicatorToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/indicator_to_milp.jl rename to test/Bridges/Constraint/IndicatorToMILPBridge.jl diff --git a/test/Bridges/Constraint/inequality_to_complements.jl b/test/Bridges/Constraint/InequalityToComplementsBridge.jl similarity index 100% rename from test/Bridges/Constraint/inequality_to_complements.jl rename to test/Bridges/Constraint/InequalityToComplementsBridge.jl diff --git a/test/Bridges/Constraint/integer_to_zeroone.jl b/test/Bridges/Constraint/IntegerToZeroOneBridge.jl similarity index 100% rename from test/Bridges/Constraint/integer_to_zeroone.jl rename to test/Bridges/Constraint/IntegerToZeroOneBridge.jl diff --git a/test/Bridges/Constraint/det.jl b/test/Bridges/Constraint/LogDetBridge.jl similarity index 100% rename from test/Bridges/Constraint/det.jl rename to test/Bridges/Constraint/LogDetBridge.jl diff --git a/test/Bridges/Constraint/norm_to_lp.jl b/test/Bridges/Constraint/NormInfinityBridge.jl similarity index 100% rename from test/Bridges/Constraint/norm_to_lp.jl rename to test/Bridges/Constraint/NormInfinityBridge.jl diff --git a/test/Bridges/Constraint/norm_special_case.jl b/test/Bridges/Constraint/NormOneConeToNormConeBridge.jl similarity index 100% rename from test/Bridges/Constraint/norm_special_case.jl rename to test/Bridges/Constraint/NormOneConeToNormConeBridge.jl diff --git a/test/Bridges/Constraint/norm_spec_nuc_to_psd.jl b/test/Bridges/Constraint/NormSpectralBridge.jl similarity index 100% rename from test/Bridges/Constraint/norm_spec_nuc_to_psd.jl rename to test/Bridges/Constraint/NormSpectralBridge.jl diff --git a/test/Bridges/Constraint/norm_to_power.jl b/test/Bridges/Constraint/NormToPowerBridge.jl similarity index 100% rename from test/Bridges/Constraint/norm_to_power.jl rename to test/Bridges/Constraint/NormToPowerBridge.jl diff --git a/test/Bridges/Constraint/number_conversion.jl b/test/Bridges/Constraint/NumberConversionBridge.jl similarity index 100% rename from test/Bridges/Constraint/number_conversion.jl rename to test/Bridges/Constraint/NumberConversionBridge.jl diff --git a/test/Bridges/Constraint/quad_to_soc.jl b/test/Bridges/Constraint/QuadtoSOCBridge.jl similarity index 100% rename from test/Bridges/Constraint/quad_to_soc.jl rename to test/Bridges/Constraint/QuadtoSOCBridge.jl diff --git a/test/Bridges/Constraint/rsoc.jl b/test/Bridges/Constraint/RSOCBridge.jl similarity index 100% rename from test/Bridges/Constraint/rsoc.jl rename to test/Bridges/Constraint/RSOCBridge.jl diff --git a/test/Bridges/Constraint/soc_to_nonconvex_quad.jl b/test/Bridges/Constraint/RSOCtoNonConvexQuadBridge.jl similarity index 100% rename from test/Bridges/Constraint/soc_to_nonconvex_quad.jl rename to test/Bridges/Constraint/RSOCtoNonConvexQuadBridge.jl diff --git a/test/Bridges/Constraint/all_different_reif.jl b/test/Bridges/Constraint/ReifiedAllDifferentToCountDistinctBridge.jl similarity index 100% rename from test/Bridges/Constraint/all_different_reif.jl rename to test/Bridges/Constraint/ReifiedAllDifferentToCountDistinctBridge.jl diff --git a/test/Bridges/Constraint/count_distinct_reif.jl b/test/Bridges/Constraint/ReifiedCountDistinctToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/count_distinct_reif.jl rename to test/Bridges/Constraint/ReifiedCountDistinctToMILPBridge.jl diff --git a/test/Bridges/Constraint/relentr_to_exp.jl b/test/Bridges/Constraint/RelativeEntropyBridge.jl similarity index 100% rename from test/Bridges/Constraint/relentr_to_exp.jl rename to test/Bridges/Constraint/RelativeEntropyBridge.jl diff --git a/test/Bridges/Constraint/soc_to_psd.jl b/test/Bridges/Constraint/SOCtoPSDBridge.jl similarity index 100% rename from test/Bridges/Constraint/soc_to_psd.jl rename to test/Bridges/Constraint/SOCtoPSDBridge.jl diff --git a/test/Bridges/Constraint/sos1_to_milp.jl b/test/Bridges/Constraint/SOS1ToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/sos1_to_milp.jl rename to test/Bridges/Constraint/SOS1ToMILPBridge.jl diff --git a/test/Bridges/Constraint/sos2_to_milp.jl b/test/Bridges/Constraint/SOS2ToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/sos2_to_milp.jl rename to test/Bridges/Constraint/SOS2ToMILPBridge.jl diff --git a/test/Bridges/Constraint/functionize.jl b/test/Bridges/Constraint/ScalarFunctionizeBridge.jl similarity index 100% rename from test/Bridges/Constraint/functionize.jl rename to test/Bridges/Constraint/ScalarFunctionizeBridge.jl diff --git a/test/Bridges/Constraint/slack.jl b/test/Bridges/Constraint/ScalarSlackBridge.jl similarity index 100% rename from test/Bridges/Constraint/slack.jl rename to test/Bridges/Constraint/ScalarSlackBridge.jl diff --git a/test/Bridges/Constraint/scalarize.jl b/test/Bridges/Constraint/ScalarizeBridge.jl similarity index 100% rename from test/Bridges/Constraint/scalarize.jl rename to test/Bridges/Constraint/ScalarizeBridge.jl diff --git a/test/Bridges/Constraint/semi_to_binary.jl b/test/Bridges/Constraint/SemiToBinaryBridge.jl similarity index 100% rename from test/Bridges/Constraint/semi_to_binary.jl rename to test/Bridges/Constraint/SemiToBinaryBridge.jl diff --git a/test/Bridges/Constraint/set_conversion.jl b/test/Bridges/Constraint/SetConversionBridge.jl similarity index 100% rename from test/Bridges/Constraint/set_conversion.jl rename to test/Bridges/Constraint/SetConversionBridge.jl diff --git a/test/Bridges/Constraint/set_dot_scaling.jl b/test/Bridges/Constraint/SetDotScalingBridge.jl similarity index 100% rename from test/Bridges/Constraint/set_dot_scaling.jl rename to test/Bridges/Constraint/SetDotScalingBridge.jl diff --git a/test/Bridges/Constraint/split_complex_equalto.jl b/test/Bridges/Constraint/SplitComplexEqualToBridge.jl similarity index 100% rename from test/Bridges/Constraint/split_complex_equalto.jl rename to test/Bridges/Constraint/SplitComplexEqualToBridge.jl diff --git a/test/Bridges/Constraint/split_complex_zeros.jl b/test/Bridges/Constraint/SplitComplexZerosBridge.jl similarity index 100% rename from test/Bridges/Constraint/split_complex_zeros.jl rename to test/Bridges/Constraint/SplitComplexZerosBridge.jl diff --git a/test/Bridges/Constraint/hyper_rectangle.jl b/test/Bridges/Constraint/SplitHyperRectangleBridge.jl similarity index 100% rename from test/Bridges/Constraint/hyper_rectangle.jl rename to test/Bridges/Constraint/SplitHyperRectangleBridge.jl diff --git a/test/Bridges/Constraint/interval.jl b/test/Bridges/Constraint/SplitIntervalBridge.jl similarity index 100% rename from test/Bridges/Constraint/interval.jl rename to test/Bridges/Constraint/SplitIntervalBridge.jl diff --git a/test/Bridges/Constraint/square.jl b/test/Bridges/Constraint/SquareBridge.jl similarity index 100% rename from test/Bridges/Constraint/square.jl rename to test/Bridges/Constraint/SquareBridge.jl diff --git a/test/Bridges/Constraint/table.jl b/test/Bridges/Constraint/TableToMILPBridge.jl similarity index 100% rename from test/Bridges/Constraint/table.jl rename to test/Bridges/Constraint/TableToMILPBridge.jl diff --git a/test/Bridges/Constraint/vectorize.jl b/test/Bridges/Constraint/VectorizeBridge.jl similarity index 100% rename from test/Bridges/Constraint/vectorize.jl rename to test/Bridges/Constraint/VectorizeBridge.jl diff --git a/test/Bridges/Constraint/zero_one.jl b/test/Bridges/Constraint/ZeroOneBridge.jl similarity index 100% rename from test/Bridges/Constraint/zero_one.jl rename to test/Bridges/Constraint/ZeroOneBridge.jl diff --git a/test/Bridges/Objective/conversion.jl b/test/Bridges/Objective/FunctionConversionBridge.jl similarity index 100% rename from test/Bridges/Objective/conversion.jl rename to test/Bridges/Objective/FunctionConversionBridge.jl diff --git a/test/Bridges/Objective/functionize.jl b/test/Bridges/Objective/FunctionizeBridge.jl similarity index 100% rename from test/Bridges/Objective/functionize.jl rename to test/Bridges/Objective/FunctionizeBridge.jl diff --git a/test/Bridges/Objective/quadratize.jl b/test/Bridges/Objective/QuadratizeBridge.jl similarity index 100% rename from test/Bridges/Objective/quadratize.jl rename to test/Bridges/Objective/QuadratizeBridge.jl diff --git a/test/Bridges/Objective/slack.jl b/test/Bridges/Objective/SlackBridge.jl similarity index 100% rename from test/Bridges/Objective/slack.jl rename to test/Bridges/Objective/SlackBridge.jl diff --git a/test/Bridges/Objective/vector_functionize.jl b/test/Bridges/Objective/VectorFunctionizeBridge.jl similarity index 100% rename from test/Bridges/Objective/vector_functionize.jl rename to test/Bridges/Objective/VectorFunctionizeBridge.jl diff --git a/test/Bridges/Objective/vector_slack.jl b/test/Bridges/Objective/VectorSlackBridge.jl similarity index 100% rename from test/Bridges/Objective/vector_slack.jl rename to test/Bridges/Objective/VectorSlackBridge.jl diff --git a/test/Bridges/Variable/free.jl b/test/Bridges/Variable/FreeBridge.jl similarity index 100% rename from test/Bridges/Variable/free.jl rename to test/Bridges/Variable/FreeBridge.jl diff --git a/test/Bridges/Variable/hermitian.jl b/test/Bridges/Variable/HermitianToSymmetricPSDBridge.jl similarity index 100% rename from test/Bridges/Variable/hermitian.jl rename to test/Bridges/Variable/HermitianToSymmetricPSDBridge.jl diff --git a/test/Bridges/Variable/flip_sign.jl b/test/Bridges/Variable/NonposToNonnegBridge.jl similarity index 100% rename from test/Bridges/Variable/flip_sign.jl rename to test/Bridges/Variable/NonposToNonnegBridge.jl diff --git a/test/Bridges/Variable/parameter.jl b/test/Bridges/Variable/ParameterToEqualToBridge.jl similarity index 100% rename from test/Bridges/Variable/parameter.jl rename to test/Bridges/Variable/ParameterToEqualToBridge.jl diff --git a/test/Bridges/Variable/rsoc_to_psd.jl b/test/Bridges/Variable/RSOCtoPSDBridge.jl similarity index 100% rename from test/Bridges/Variable/rsoc_to_psd.jl rename to test/Bridges/Variable/RSOCtoPSDBridge.jl diff --git a/test/Bridges/Variable/rsoc_to_soc.jl b/test/Bridges/Variable/RSOCtoSOCBridge.jl similarity index 100% rename from test/Bridges/Variable/rsoc_to_soc.jl rename to test/Bridges/Variable/RSOCtoSOCBridge.jl diff --git a/test/Bridges/Variable/soc_to_rsoc.jl b/test/Bridges/Variable/SOCtoRSOCBridge.jl similarity index 100% rename from test/Bridges/Variable/soc_to_rsoc.jl rename to test/Bridges/Variable/SOCtoRSOCBridge.jl diff --git a/test/Bridges/Variable/vectorize.jl b/test/Bridges/Variable/VectorizeBridge.jl similarity index 100% rename from test/Bridges/Variable/vectorize.jl rename to test/Bridges/Variable/VectorizeBridge.jl