Skip to content

Commit

Permalink
Prepare 1.29 (whatsopt#191)
Browse files Browse the repository at this point in the history
* Adjust egobox Egor options in run_mdo

* Bump 1.29.0

* Update test
  • Loading branch information
relf authored Dec 15, 2023
1 parent 12a2bed commit c450b47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
<h1>CHANGELOG</h1>

<h3>1.28.3 (10/11/2023)</h3>
<h3>1.29.0 (15/12/2023)</h3>
<ul>
<li>Tech: Upgrade to Rails 7.1</li>
</ul>

<h3>1.28.2 (25/09/2023)</h3>
<ul>
<li>User can see HSIC sensitivity analysis when browsing DoE data</li>
</ul>

<h3>1.28.1 (29/08/2023)</h3>
<ul>
<li>User can search analyses by name beginnings or by owner names</li>
<li>Fix `run_mdo` template to work with egobox 0.14.0+</li>
</ul>

<h3>1.28.0 (30/06/2023)</h3>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.28.3
1.29.0
2 changes: 1 addition & 1 deletion app/lib/whats_opt/openmdao_driver_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class OpenmdaoDriverFactory
pyoptsparse_optimizer_snopt: { tol: 1e-6, maxiter: 100 },
onerasego_optimizer_segomoe: { maxiter: 100, ncluster: 1, optimizer: "slsqp" },
onerasego_optimizer_egmdo: { maxiter: 100, ncluster: 1, optimizer: "slsqp" },
egobox_optimizer_egor: { maxiter: 100, n_clusters: 1, cstr_tol: 1e-4,
egobox_optimizer_egor: { maxiter: 20, n_clusters: 1,
infill_strategy: ["egx", "InfillStrategy", "WB2"],
infill_optimizer: ["egx", "InfillOptimizer", "SLSQP"],
regr_spec: ["egx", "RegressionSpec", "CONSTANT"],
Expand Down
2 changes: 1 addition & 1 deletion test/lib/whats_opt/openmdao_driver_factory_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def setup
assert_equal("egobox_optimizer", @driver.lib)
assert_equal("egor", @driver.algo)
assert_equal({}, @driver.options)
assert_equal({ "n_clusters" => 2, "maxiter" => 100, "cstr_tol" => 0.0001, "infill_strategy" => "egx.InfillStrategy.WB2", "infill_optimizer" => "egx.InfillOptimizer.SLSQP", "regr_spec" => "egx.RegressionSpec.CONSTANT", "corr_spec" => "egx.CorrelationSpec.SQUARED_EXPONENTIAL" }, @driver.opt_settings)
assert_equal({ "n_clusters" => 2, "maxiter" => 100, "infill_strategy" => "egx.InfillStrategy.WB2", "infill_optimizer" => "egx.InfillOptimizer.SLSQP", "regr_spec" => "egx.RegressionSpec.CONSTANT", "corr_spec" => "egx.CorrelationSpec.SQUARED_EXPONENTIAL" }, @driver.opt_settings)
end

test "should reject bad-formed option hash" do
Expand Down

0 comments on commit c450b47

Please sign in to comment.