Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck committed Apr 16, 2020
1 parent d6d13d2 commit 3994150
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions openmdao/components/tests/test_ks_comp.py
Expand Up @@ -321,12 +321,13 @@ def test_add_constraint(self):

ax.plot(x, y, 'r.')
ax.plot(x, 4.0*np.ones_like(x), 'k--')
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.grid(True)
ax.text(-0.25, 0, f"k = {prob.get_val('ivc.k')[0]:6.3f}")

plt.show()




if __name__ == "__main__":
unittest.main()
Expand Up @@ -85,6 +85,6 @@ conservative.

.. embed-code::
openmdao.components.tests.test_ks_comp.TestKSFunctionFeatures.test_add_constraint
:layout: interleave
:layout: code, plot

.. tags:: KSComp, Component, Constraints, Optimization

0 comments on commit 3994150

Please sign in to comment.