blob: 9f48a51ff7c48be82f28d1d0afa4dfd6f604d7cb [file] [log] [blame]
Austin Schuh9049e202022-02-20 17:34:16 -08001import numpy as np
2from scipy import sparse
3import utils.codegen_utils as cu
4
5P = sparse.triu([[2., 5.], [5., 1.]], format='csc')
6q = np.array([3., 4.])
7
8A = sparse.csc_matrix([[-1., 0.], [0., -1.], [-1., 3.], [2., 5.], [3., 4]])
9l = -np.inf * np.ones(A.shape[0])
10u = np.array([0., 0., -15., 100., 80.])
11
12sols_data = {'sigma_new': 5}
13
14# Generate problem data
15cu.generate_problem_data(P, q, A, l, u, 'non_cvx', sols_data)