Skip to content

Commit 00485e0

Browse files
authored
Merge branch 'AtsushiSakai:master' into master
2 parents 02c7ec4 + a2c42c3 commit 00485e0

File tree

15 files changed

+33
-18
lines changed

15 files changed

+33
-18
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
jobs:
77
build_doc:
88
docker:
9-
- image: cimg/python:3.12
9+
- image: cimg/python:3.13
1010
steps:
1111
- checkout
1212
- run:

.github/workflows/Linux_CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ '3.12' ]
15+
python-version: [ '3.13' ]
1616

1717
name: Python ${{ matrix.python-version }} CI
1818

.github/workflows/MacOS_CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: macos-latest
1717
strategy:
1818
matrix:
19-
python-version: [ '3.12' ]
19+
python-version: [ '3.13' ]
2020
name: Python ${{ matrix.python-version }} CI
2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/Windows_CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: windows-latest
1717
strategy:
1818
matrix:
19-
python-version: [ '3.12' ]
19+
python-version: [ '3.13' ]
2020
name: Python ${{ matrix.python-version }} CI
2121
steps:
2222
- uses: actions/checkout@v4

AerialNavigation/rocket_powered_landing/rocket_powered_landing.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
W_DELTA_SIGMA = 1e-1 # difference in flight time
3232
W_NU = 1e5 # virtual control
3333

34+
print(cvxpy.installed_solvers())
3435
solver = 'ECOS'
3536
verbose_solver = False
3637

@@ -462,11 +463,11 @@ def __init__(self, m, K):
462463
# x_t+1 = A_*x_t+B_*U_t+C_*U_T+1*S_*sigma+zbar+nu
463464
constraints += [
464465
self.var['X'][:, k + 1] ==
465-
cvxpy.reshape(self.par['A_bar'][:, k], (m.n_x, m.n_x)) @
466+
cvxpy.reshape(self.par['A_bar'][:, k], (m.n_x, m.n_x), order='F') @
466467
self.var['X'][:, k] +
467-
cvxpy.reshape(self.par['B_bar'][:, k], (m.n_x, m.n_u)) @
468+
cvxpy.reshape(self.par['B_bar'][:, k], (m.n_x, m.n_u), order='F') @
468469
self.var['U'][:, k] +
469-
cvxpy.reshape(self.par['C_bar'][:, k], (m.n_x, m.n_u)) @
470+
cvxpy.reshape(self.par['C_bar'][:, k], (m.n_x, m.n_u), order='F') @
470471
self.var['U'][:, k + 1] +
471472
self.par['S_bar'][:, k] * self.var['sigma'] +
472473
self.par['z_bar'][:, k] +
@@ -536,7 +537,7 @@ def solve(self, **kwargs):
536537
with warnings.catch_warnings(): # For User warning from solver
537538
warnings.simplefilter('ignore')
538539
self.prob.solve(verbose=verbose_solver,
539-
solver=solver)
540+
solver=solver)
540541
except cvxpy.SolverError:
541542
error = True
542543

InvertedPendulum/inverted_pendulum_mpc_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def mpc_control(x0):
9191
prob = cvxpy.Problem(cvxpy.Minimize(cost), constr)
9292

9393
start = time.time()
94-
prob.solve(verbose=False)
94+
prob.solve(verbose=False, solver=cvxpy.CLARABEL)
9595
elapsed_time = time.time() - start
9696
print(f"calc time:{elapsed_time:.6f} [sec]")
9797

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ or this paper for more details:
102102

103103
For running each sample code:
104104

105-
- [Python 3.12.x](https://www.python.org/)
105+
- [Python 3.13.x](https://www.python.org/)
106106

107107
- [NumPy](https://numpy.org/)
108108

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
99

1010
matrix:
11-
- PYTHON_DIR: C:\Python310-x64
11+
- PYTHON_DIR: C:\Python313-x64
1212

1313
branches:
1414
only:

docs/_static/img/source_link_1.png

85.9 KB
Loading

docs/_static/img/source_link_2.png

232 KB
Loading

0 commit comments

Comments
 (0)