Skip to content

Commit

Permalink
Merge 7e68ae6 into 1a2c019
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Feb 16, 2020
2 parents 1a2c019 + 7e68ae6 commit e2c8a38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -50,6 +50,8 @@ jobs:
with:
command: test
args: --all-features --all
- name: studies command
run: cargo run -- studies --solvers $(cargo run -- solver random) --problems $(cargo run -- problem sigopt --dim 5 ackley) --repeats 10 --budget 100

lints:
name: Lints
Expand Down
3 changes: 3 additions & 0 deletions kurobako_problems/src/sigopt.rs
Expand Up @@ -31,16 +31,19 @@ pub struct SigoptProblemRecipe {

/// Dimension of the test function.
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
#[structopt(long)]
pub dim: Option<usize>,

/// Input resolution of the test function.
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
#[structopt(long)]
pub res: Option<f64>,

/// List of the dimensions which should only accept integer values.
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default)]
#[structopt(long)]
pub int: Vec<usize>,
}
Expand Down

0 comments on commit e2c8a38

Please sign in to comment.