Skip to content

Commit

Permalink
Fix formatting of linear constraint (string version) (facebook#2418)
Browse files Browse the repository at this point in the history
Summary:
closes facebook#2417

Pull Request resolved: facebook#2418

Reviewed By: mgarrard

Differential Revision: D56867189

Pulled By: Balandat

fbshipit-source-id: 0604a5ea81663fe4e0b599d43a25c703f848dafa
  • Loading branch information
sgbaird authored and facebook-github-bot committed May 3, 2024
1 parent f007848 commit c75edff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ from ax import ParameterConstraint
param_a = RangeParameter(name="a", parameter_type=ParameterType.FLOAT, lower=0.0, upper=1.0)
param_b = RangeParameter(name="b", parameter_type=ParameterType.FLOAT, lower=0.0, upper=1.0)

# 1.0 * a + 0.5 * b <= 1.0
# 1.0*a + 0.5*b <= 1.0
con_1 = ParameterConstraint(constraint_dict={"a": 1.0, "b": 0.5}, bound=1.0)
```

Expand Down

0 comments on commit c75edff

Please sign in to comment.