Skip to content

Commit 35f2f11

Browse files
committed
Rename input control vector for quadratic test case
1 parent 171d121 commit 35f2f11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

popt/cost_functions/quadratic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from popt.cost_functions.epf import epf
55

66

7-
def quadratic(state, *args, **kwargs):
7+
def quadratic(x, *args, **kwargs):
88
r"""Quadratic objective function
99
1010
$$ f(x) = ||x - b||^2_A $$
1111
"""
1212

1313
r = kwargs.get('r', -1)
1414

15-
x = state[0]['vector']
15+
x = x[0]['vector']
1616
dim, ne = x.shape
1717
A = 0.5*np.diag(np.ones(dim))
1818
b = 1.0*np.ones(dim)

0 commit comments

Comments
 (0)