Skip to content

Commit

Permalink
Merge pull request #67 from JuliaConstraints/dev
Browse files Browse the repository at this point in the history
Tag new release for ConstraintExplorer
  • Loading branch information
Azzaare authored Oct 21, 2024
2 parents fe7d101 + 8778c04 commit e6d28fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ConstraintDomains"
uuid = "5800fd60-8556-4464-8d61-84ebf7a0bedb"
authors = ["Jean-François Baffier"]
version = "0.3.14"
version = "0.3.15"

[deps]
ConstraintCommons = "e37357d9-0691-492f-a822-e5ea6a920954"
Expand Down
12 changes: 11 additions & 1 deletion src/explore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ end
Internals of the `explore!` function. Behavior is automatically adjusted on the kind of exploration: `:flexible`, `:complete`, `:partial`.
"""
function _explore!(explorer, f, ::Val{:partial})
function _explore!(explorer, f, ::Val{:partial};)
sl = explorer.settings.solutions_limit
ms = explorer.settings.max_samplings

Expand Down Expand Up @@ -329,6 +329,16 @@ function explore(domains, concept; settings = ExploreSettings(domains), paramete
return explorer.state.solutions, explorer.state.non_solutions
end

function _check!(explorer, configurations)
g =
x -> all([
f(isempty(vars) ? x : @view x[vars]) for
(f, vars) in explorer.concepts |> values
])
foreach(c -> update_exploration!(explorer, g, c, :complete), configurations)
return nothing
end

## SECTION - Test Items
@testitem "Exploration" tags = [:exploration] begin
domains = [domain([1, 2, 3, 4]) for i = 1:4]
Expand Down

0 comments on commit e6d28fc

Please sign in to comment.