Skip to content

Commit

Permalink
Bump cvxpy from 1.4.3 to 1.5.1 in /requirements (AtsushiSakai#1016)
Browse files Browse the repository at this point in the history
* Bump cvxpy from 1.4.3 to 1.5.1 in /requirements

Bumps [cvxpy](https://github.com/cvxpy/cvxpy) from 1.4.3 to 1.5.1.
- [Release notes](https://github.com/cvxpy/cvxpy/releases)
- [Commits](cvxpy/cvxpy@v1.4.3...v1.5.1)

---
updated-dependencies:
- dependency-name: cvxpy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix cvxpy update issue

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Atsushi Sakai <[email protected]>
  • Loading branch information
dependabot[bot] and AtsushiSakai authored May 19, 2024
1 parent ed5004b commit 36b6300
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"""
import matplotlib.pyplot as plt
import time
import cvxpy
import math
import numpy as np
import sys
import pathlib
from utils.angle import angle_mod
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))

from utils.angle import angle_mod

from PathPlanning.CubicSpline import cubic_spline_planner

NX = 4 # x = x, y, v, yaw
Expand Down Expand Up @@ -281,7 +283,7 @@ def linear_mpc_control(xref, xbar, x0, dref):
constraints += [cvxpy.abs(u[1, :]) <= MAX_STEER]

prob = cvxpy.Problem(cvxpy.Minimize(cost), constraints)
prob.solve(solver=cvxpy.ECOS, verbose=False)
prob.solve(solver=cvxpy.CLARABEL, verbose=False)

if prob.status == cvxpy.OPTIMAL or prob.status == cvxpy.OPTIMAL_INACCURATE:
ox = get_nparray_from_matrix(x.value[0, :])
Expand Down Expand Up @@ -545,6 +547,7 @@ def get_switch_back_course(dl):

def main():
print(__file__ + " start!!")
start = time.time()

dl = 1.0 # course tick
# cx, cy, cyaw, ck = get_straight_course(dl)
Expand All @@ -560,6 +563,9 @@ def main():
t, x, y, yaw, v, d, a = do_simulation(
cx, cy, cyaw, ck, sp, dl, initial_state)

elapsed_time = time.time() - start
print(f"calc time:{elapsed_time:.6f} [sec]")

if show_animation: # pragma: no cover
plt.close("all")
plt.subplots()
Expand All @@ -582,6 +588,7 @@ def main():

def main2():
print(__file__ + " start!!")
start = time.time()

dl = 1.0 # course tick
cx, cy, cyaw, ck = get_straight_course3(dl)
Expand All @@ -593,6 +600,9 @@ def main2():
t, x, y, yaw, v, d, a = do_simulation(
cx, cy, cyaw, ck, sp, dl, initial_state)

elapsed_time = time.time() - start
print(f"calc time:{elapsed_time:.6f} [sec]")

if show_animation: # pragma: no cover
plt.close("all")
plt.subplots()
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy == 1.26.4
scipy == 1.13.0
matplotlib == 3.8.4
cvxpy == 1.4.3
cvxpy == 1.5.1
pytest == 8.2.0 # For unit test
pytest-xdist == 3.6.1 # For unit test
mypy == 1.10.0 # For unit test
Expand Down
2 changes: 1 addition & 1 deletion runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ echo "Run test suites! "
# -Werror: warning as error
# --durations=0: show ranking of test durations
# -l (--showlocals); show local variables when test failed
pytest -n auto tests -l -Werror --durations=0
pytest tests -l -Werror --durations=0

0 comments on commit 36b6300

Please sign in to comment.