Skip to content
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

function already defined in between bin_packing_load and bin_packing_capa? #455

Closed
paeadin opened this issue Feb 8, 2021 · 3 comments
Closed

Comments

@paeadin
Copy link

paeadin commented Feb 8, 2021

Hi,
this minimal example reproduce the problem if I select solver Chuffed 0.10.4 :

var 1..10: z;
constraint z > 0;
include "bin_packing_load.mzn";                                                                                                                                                                                  
include "bin_packing_capa.mzn";                             
solve minimize z;

This is what happens:

MiniZinc to FlatZinc converter, version 2.5.3, build 220798393
[...]
processing file '/tmp/.mount_MiniZiivgVvQ/usr/share/minizinc/std//stdlib.mzn'
processing file '/tmp/.mount_MiniZiivgVvQ/usr/share/minizinc/std//solver_redefinitions.mzn'
/tmp/.mount_MiniZiivgVvQ/usr/share/minizinc/std//bin_packing_load.mzn:16.1-24.6:
MiniZinc: type error: function with the same type already defined in /tmp/.mount_MiniZiivgVvQ/usr/share/minizinc/std//bin_packing_load.mzn:16.1
Process finished with non-zero exit code 1

If I keep only one include the problem seems to vanish.

If I change solver the problem vanish.

I used my model some until 2 years ago (to make shifts for the entire year) and this is the first time I face this problem.

Is that a way to workaround this problem?

Thank you very much,

Federico

@Dekker1
Copy link
Member

Dekker1 commented Feb 22, 2021

Hi Federico,

Could you please share how you installed MiniZinc? Running this model on my Mac seems to work fine with the newest version of MiniZinc.

@paeadin
Copy link
Author

paeadin commented Feb 22, 2021 via email

@Dekker1
Copy link
Member

Dekker1 commented Feb 22, 2021

Yes, I can recreate the problem with -3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants