Skip to content

Commit

Permalink
solvers: Deprecate mathematical_program_lite label (RobotLocomotion#1…
Browse files Browse the repository at this point in the history
…2142)

Use the new spelling `mathematical_program` instead.
  • Loading branch information
jwnimmer-tri authored Oct 7, 2019
1 parent e41c48f commit 0f748c3
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion attic/manipulation/dev/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ drake_cc_library(
"//attic/systems/controllers:control_util",
"//math:geometric_transform",
"//solvers:gurobi_solver",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//systems/framework:leaf_system",
],
)
Expand Down
4 changes: 2 additions & 2 deletions attic/multibody/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ drake_cc_library(
],
deps = [
":rigid_body_tree",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:mixed_integer_rotation_constraint",
"//solvers:rotation_constraint",
],
Expand Down Expand Up @@ -127,7 +127,7 @@ drake_cc_library(
":rigid_body_tree",
"//common:unused",
"//math:gradient",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
],
)
Expand Down
2 changes: 1 addition & 1 deletion attic/multibody/rigid_body_plant/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ drake_cc_library(
"//common:essential",
"//math:orthonormal_basis",
"//multibody/constraint:constraint_solver",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//systems/framework",
],
)
Expand Down
2 changes: 1 addition & 1 deletion attic/perception/estimators/dev/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ drake_cc_googletest(
"//common:find_resource",
"//lcmtypes:viewer",
"//math:geometric_transform",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
],
)
Expand Down
2 changes: 1 addition & 1 deletion attic/systems/controllers/qp_inverse_dynamics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ drake_cc_library(
"//common:essential",
"//math:gradient",
"//solvers:gurobi_solver",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down
2 changes: 1 addition & 1 deletion attic/systems/estimators/dev/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ drake_cc_test(
"//attic/multibody/parsers",
"//common:essential",
"//common:find_resource",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
"@lcm",
"@lcmtypes_bot2_core",
Expand Down
4 changes: 2 additions & 2 deletions examples/cubic_polynomial/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ drake_cc_binary(
add_test_rule = 1,
tags = mosek_test_tags(),
deps = [
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
"//systems/framework:vector_system",
],
Expand All @@ -23,7 +23,7 @@ drake_cc_binary(
tags = mosek_test_tags(),
deps = [
"//common/proto:call_python",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:mosek_solver",
"//solvers:solve",
"//systems/framework:vector_system",
Expand Down
4 changes: 2 additions & 2 deletions examples/planar_gripper/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ drake_cc_library(
"//multibody/inverse_kinematics:kinematic_constraint",
"//multibody/plant",
"//solvers:constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down Expand Up @@ -104,7 +104,7 @@ drake_cc_library(
deps = [
":gripper_brick",
"//multibody/inverse_kinematics:kinematic_constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down
2 changes: 1 addition & 1 deletion examples/rod2d/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ drake_cc_library(
":rod2d_state_vector",
"//common:essential",
"//multibody/constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//systems/framework:leaf_system",
"//systems/rendering:pose_vector",
],
Expand Down
2 changes: 1 addition & 1 deletion manipulation/planner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ drake_cc_library(
hdrs = ["differential_inverse_kinematics.h"],
deps = [
"//multibody/plant",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:osqp_solver",
],
)
Expand Down
2 changes: 1 addition & 1 deletion multibody/inverse_kinematics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ drake_cc_library(
deps = [
":kinematic_constraint",
"//multibody/plant",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down
10 changes: 5 additions & 5 deletions multibody/optimization/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ drake_cc_library(
"//multibody/plant",
"//solvers:binding",
"//solvers:constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down Expand Up @@ -99,7 +99,7 @@ drake_cc_library(
"//multibody/plant",
"//solvers:binding",
"//solvers:constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand All @@ -113,7 +113,7 @@ drake_cc_library(
"//multibody/plant",
"//solvers:binding",
"//solvers:constraint",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down Expand Up @@ -160,7 +160,7 @@ drake_cc_googletest(
":static_equilibrium_constraint",
"//common/test_utilities:eigen_matrix_compare",
"//math:compute_numerical_gradient",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
],
)
Expand Down Expand Up @@ -200,7 +200,7 @@ drake_cc_googletest(
":optimization_with_contact_utilities",
"//common/test_utilities:eigen_matrix_compare",
"//math:compute_numerical_gradient",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
],
)
Expand Down
9 changes: 5 additions & 4 deletions solvers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,13 @@ drake_cc_library(
],
)

# The target "@drake//solvers:mathematical_program_lite" is a legacy way to
# access the `mathematical_program.h` header and its methods. In the future,
# this target will become deprecated in lieu of `:mathematical_program`.
# TODO(jwnimmer-tri) On 2019-10-01 add a deprecation attribute here.
drake_cc_library(
name = "mathematical_program_lite",
deprecation = " ".join([
"The label @drake//solvers:mathematical_program_lite is deprecated.",
"Use the new spelling @drake//solvers:mathematical_program instead.",
"The deprecated spelling will be removed on 2020-01-01.",
]),
deps = [
":mathematical_program",
":solver_interface",
Expand Down
2 changes: 1 addition & 1 deletion systems/analysis/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ drake_cc_library(
"//common:essential",
"//math:autodiff",
"//math:gradient",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
"//systems/framework",
],
Expand Down
2 changes: 1 addition & 1 deletion systems/controllers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ drake_cc_library(
deps = [
"//common:essential",
"//math:wrap_to",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
"//solvers:solve",
"//systems/analysis:simulator",
"//systems/framework",
Expand Down
2 changes: 1 addition & 1 deletion systems/trajectory_optimization/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ drake_cc_library(
"//common:essential",
"//common/trajectories:piecewise_polynomial",
"//solvers:ipopt_solver",
"//solvers:mathematical_program_lite",
"//solvers:mathematical_program",
],
)

Expand Down

0 comments on commit 0f748c3

Please sign in to comment.