Esempio n. 1
0
def test_valid_list2():
    m = 3
    A = [1, 2, 3, 1, 2, 3]
    b = [1, 2]
    assert_(isinstance(_LMLinConstraints(A, b, m), _LMLinConstraints))
Esempio n. 2
0
def test_valid_ndarray3():
    m = 3
    A = np.array([1, 2, 3, 1, 2, 3])
    b = np.array([1, 2])
    assert_(isinstance(_LMLinConstraints(A, b, m), _LMLinConstraints))
Esempio n. 3
0
def test_valid_list1():
    m = 2
    A = [1, 2]
    b = [1]
    assert_(isinstance(_LMLinConstraints(A, b, m), _LMLinConstraints))