Skip to content

Data formatting error Exception occurs when using this solver from CVXPY #172

@AtsushiSakai

Description

@AtsushiSakai

When using CLARABEL instead of ECOS as the solver for this rocket landing simulation created with CVXPY, the following error occurs.
I'm not sure this is Clarabel issue or CVXPY issue, but I would like to know workaround for it. Thanks!!

['CLARABEL', 'ECOS', 'ECOS_BB', 'OSQP', 'SCIPY', 'SCS']
start!!
------------------ Iteration 01 ------------------
delta_norm 55.857422448036154
sigma_norm 9.900000001863756
nu_norm 8.91953005382578e-15
Time for iteration 0.27562594413757324 s
------------------ Iteration 02 ------------------
Traceback (most recent call last):
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/AerialNavigation/rocket_powered_landing/rocket_powered_landing.py", line 674, in
main()
~~~~^^
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/AerialNavigation/rocket_powered_landing/rocket_powered_landing.py", line 642, in main
problem.solve()
~~~~~~~~~~~~~^^
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/AerialNavigation/rocket_powered_landing/rocket_powered_landing.py", line 539, in solve
self.prob.solve(verbose=verbose_solver,
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
solver=solver)
^^^^^^^^^^^^^^
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/venv/lib/python3.13/site-packages/cvxpy/problems/problem.py", line 600, in solve
return solve_func(self, *args, **kwargs)
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/venv/lib/python3.13/site-packages/cvxpy/problems/problem.py", line 1183, in _solve
solution = solving_chain.solve_via_data(
self, data, warm_start, solver_verbose, kwargs)
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/venv/lib/python3.13/site-packages/cvxpy/reductions/solvers/solving_chain.py", line 475, in solve_via_data
return self.solver.solve_via_data(data, warm_start, verbose,
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
solver_opts, problem._solver_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/venv/lib/python3.13/site-packages/cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py", line 346, in solve_via_data
solver = updated_solver()
File "/Users/atsushi_sakai/Library/CloudStorage/Dropbox/Program/python/PythonRobotics/venv/lib/python3.13/site-packages/cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py", line 342, in updated_solver
_solver.update(P=P, q=q, A=A, b=b, settings=newsettings)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: Data formatting error

Version Info:

  • Python: 3.13
  • CVXPY: 1.6.5
  • CLARABEL: 0.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions