Linusnie / robust-triangulation-relaxations

Apache License 2.0
42 stars 3 forks source link

failed to run with SCS backend. #3

Closed khanhha closed 7 months ago

khanhha commented 7 months ago

Hi, I followed the instruction to bring up your code but run into the following with SCS backend.

My environment is: Python 3.10 Ubuntu 22.04

File "/home/khanh/mvai/code/robust-triangulation-relaxations/test.py", line 45, in <module> sdr.solve(solver="SCS", **default_solver_params["MOSEK"]) File "/home/khanh/mvai/code/robust-triangulation-relaxations/triangulation_relaxations/semidefinite_relaxation.py", line 86, in solve result = self.problem.solve(**kwargs) File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 503, in solve return solve_func(self, *args, **kwargs) File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/cvxpy/problems/problem.py", line 1082, in _solve solution = solving_chain.solve_via_data( File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/cvxpy/reductions/solvers/solving_chain.py", line 453, in solve_via_data return self.solver.solve_via_data(data, warm_start, verbose, File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/scs_conif.py", line 342, in solve_via_data results, status = solve(solver_opts) File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/cvxpy/reductions/solvers/conic_solvers/scs_conif.py", line 337, in solve _results = scs.solve(args, cones, verbose=verbose, **_solver_opts) File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/scs/__init__.py", line 177, in solve solver = SCS(data, cone, **settings) File "/home/khanh/anaconda3/envs/tri2/lib/python3.10/site-packages/scs/__init__.py", line 129, in __init__ self._solver = _scs.SCS( ValueError: Error parsing inputs

Do u have any idea that might cause the issue

khanhha commented 7 months ago

nevermind, its becuase I used MOSEK params with SCS solver "sdr.solve(solver="SCS", **default_solver_params["MOSEK"]) results = sdr.get_solution()"