Skip to content

Commit

Permalink
note excitement
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Mar 6, 2020
1 parent 69b1205 commit 8cb72ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpkit/constraints/sgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def update_gp(self, x0):
return # we've already generated the first gp
gp = self._gp
gp.x0.update({k: v for (k, v) in x0.items() if k in self._spvars})
p_idx = 0
p_idx = 0 # TODO: use .as_gpconstr in the below (it's fast enough)
for sp_constraint, lts in zip(self["SP constraints"], self._lt_approxs):
for lt, gt in zip(lts, sp_constraint.as_approxgts(gp.x0)):
approx_constraint = gp["SP approximations"][p_idx]
Expand Down

0 comments on commit 8cb72ff

Please sign in to comment.