Skip to content

Commit

Permalink
Fixed circuit function
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-hokanson committed Apr 3, 2019
1 parent a84b48b commit 0de23b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions psdr/demos/otl_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def build_otl_circuit_domain():
lb = np.array([50, 25, 0.5, 1.2, 0.25, 50])
ub = np.array([150, 70, 3, 2.5, 1.2, 300])

return BoxDomain(lb, ub, names = ['R_b1', 'R_b2', 'R_f', 'R_c2', 'beta'])
return BoxDomain(lb, ub, names = ['R_b1', 'R_b2', 'R_f', 'R_c1', 'R_c2', 'beta'])

def otl_circuit(x, return_grad = False):
if x.shape == 0:
x = x.reshape(-1,6)
import numpy as np
x = np.array(x).reshape(-1,6)

Rb1 = x[:,0]
Rb2 = x[:,1]
Rf = x[:,2]
Expand Down

0 comments on commit 0de23b1

Please sign in to comment.