Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warm starts from MiniZinc #539

Closed
glebbelov opened this issue Dec 6, 2017 · 6 comments
Closed

Warm starts from MiniZinc #539

glebbelov opened this issue Dec 6, 2017 · 6 comments
Assignees
Labels
Feature Request Missing Feature/Wrapper Help Needed Modeling/Usage problem Solver: CP-SAT Solver Relates to the CP-SAT solver
Projects
Milestone

Comments

@glebbelov
Copy link

Hi,

warm start annotations are being added in MiniZinc. I wonder if your flatzinc CP solver can support them and if you wish to extend the annotations. To be used, e.g., in the sunny-cp framework or in iterative approaches. For details, see README_MIP.txt on the develop branch, currently supported only for Gurobi and CPLEX backends.

Example:

array[1..3] of var 0..10: x;
array[1..3] of var 0.0..10.5: xf;
var bool: b;
array[1..3] of var set of 5..9: xs;
constraint b+sum(x)==1;
constraint b+sum(xf)==2.4;
constraint 5==sum( [ card(xs[i]) | i in index_set(xs) ] );
solve
  :: warm_start( [b], [<>] )                         %%% Use <> for missing values
  :: warm_start_array( [
       warm_start( x, [<>,8,4] ),
       warm_start( xf, array1d(-5..-3, [5.6,<>,4.7] ) ),
       warm_start( xs, array1d( -3..-2, [ 6..8, 5..7 ] ) )
     ] )
  :: seq_search( [ int_search(x, first_fail, indomain_min, complete)  ] )
  minimize x[1] + b + xf[2] + card( xs[1] intersect xs[3] );

@lperron
Copy link
Collaborator

lperron commented Dec 6, 2017 via email

@Mizux Mizux added the Help Needed Modeling/Usage problem label Mar 9, 2018
@lperron lperron added this to ToDo in Kanban v6.10 via automation Aug 31, 2018
@lperron
Copy link
Collaborator

lperron commented Sep 7, 2018

I tried to compile the example.
It crashes with minizinc 2.2.1 :-(

@glebbelov
Copy link
Author

glebbelov commented Sep 8, 2018 via email

@Mizux Mizux added this to To do in Kanban 7.0 via automation Oct 29, 2018
@Mizux Mizux removed this from ToDo in Kanban v6.10 Oct 29, 2018
@lperron lperron self-assigned this Jan 19, 2019
@lperron lperron removed this from To do in Kanban 7.0 Jan 19, 2019
@lperron lperron added this to To do in Kanban 7.3 via automation Jan 19, 2019
@lalithsuresh
Copy link
Contributor

Any plans to support warm_start annotations for the CP-SAT backend? I'd be happy to test this out if there's any early code available for this.

@lperron
Copy link
Collaborator

lperron commented Feb 21, 2019 via email

@glebbelov
Copy link
Author

glebbelov commented Feb 22, 2019 via email

@lperron lperron removed this from To do in Kanban 7.3 Jul 19, 2019
@lperron lperron added this to ToDo in Kanban 7.4 Aug 5, 2019
@lperron lperron added this to To do in ToDo via automation Oct 11, 2019
@lperron lperron removed this from ToDo in Kanban 7.4 Oct 11, 2019
@Mizux Mizux added Feature Request Missing Feature/Wrapper Solver: CP-SAT Solver Relates to the CP-SAT solver labels Jan 21, 2020
@Mizux Mizux added this to the v8.3 milestone Feb 12, 2021
@Mizux Mizux modified the milestones: v9.0, v9.1 Mar 23, 2021
@Mizux Mizux modified the milestones: v9.1, v9.2 Aug 9, 2021
@Mizux Mizux modified the milestones: v9.2, v9.3 Oct 5, 2021
@google google locked and limited conversation to collaborators Dec 7, 2021
@lperron lperron converted this issue into discussion #2999 Dec 7, 2021
@Mizux Mizux modified the milestones: v9.3, v9.2 Dec 7, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Feature Request Missing Feature/Wrapper Help Needed Modeling/Usage problem Solver: CP-SAT Solver Relates to the CP-SAT solver
Projects
ToDo
  
To do
Development

No branches or pull requests

4 participants