Skip to content

Commit

Permalink
Other tests to try performance on maros
Browse files Browse the repository at this point in the history
  • Loading branch information
bstellato committed Jul 27, 2017
1 parent 2e3071e commit 8b55dc5
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions interfaces/python/tests/maros_meszaros/run_tests_osqp.py
Expand Up @@ -118,17 +118,17 @@ def solve_problem(name, settings):
# scale_constraints(problem)

# Solve with OSQP
# s = osqp.OSQP()
# s.setup(problem.P, problem.q, problem.A, problem.l, problem.u,
# **settings)
# res = s.solve()

# Solve with purepy
s = osqpurepy.OSQP()
s = osqp.OSQP()
s.setup(problem.P, problem.q, problem.A, problem.l, problem.u,
**settings)
res = s.solve()

# Solve with purepy
# s = osqpurepy.OSQP()
# s.setup(problem.P, problem.q, problem.A, problem.l, problem.u,
# **settings)
# res = s.solve()

if res.info.status_val == \
s.constant('OSQP_MAX_ITER_REACHED'):
solved = False
Expand All @@ -155,7 +155,7 @@ def select_small_problems(problems):
# Get dimensions
(m, n) = p.A.shape

if m <= 1000 and n <= 1000:
if m <= 1500 and n <= 500:
new_problems.append(problem)

return new_problems, len(new_problems)
Expand Down Expand Up @@ -205,13 +205,15 @@ def select_small_problems(problems):
n_unsolved = 0

# OSQP Settings
settings = {'rho': 1.0,
settings = {'rho': 1.,
'verbose': False,
'scaled_termination': False,
'diagonal_rho': True,
'auto_rho': False,
'update_rho': False,
'line_search': False,
# 'diagonal_rho': True,
# 'auto_rho': False,
# 'update_rho': False,
# 'line_search': False,
'max_iter': 2500,
'scaling_norm': -1,
'polish': False,
'scaling': True,
'early_terminate_interval': 1}
Expand Down

0 comments on commit 8b55dc5

Please sign in to comment.