This is the Nurse Rota software project 

it is about constraint programming  but the jacop constraint programming library is used.

In this commit, i created the FDV(Finite domain variables and impose one constraint)

it can run
This is the Nurse Rota software project 

it is about constraint programming  but the jacop constraint programming library is used.

In this commit, i created the FDV(Finite domain variables and impose one constraint)

it can run
This is the Nurse Rota software project 
try github
i have added another constraint   every work shift should have 2 nurses but its not working 

is there difference 1. create new intvar array, when create constraint . replace it everytime?
   2. use new intvar[]{}   everytime
i have added two constraints   1. every work shift should have 2 nurses but its not working 
                                                   2. the time between anyone's two consecutive shifts should be at least 2 work shifts 

either one can work individually. but it doesn't work to put them together
store the work i have done.  then i will try whether it's ok to use the two-dimensional array
store the work i have done.  then i will try whether it's ok to use the two-dimensional array
i have solved the problem that two constraints can't work together.

it's because the parameter defition of the constraint should be in the loop. In other words, it should be a new variable in every loop.
IntVar sum1=new IntVar(store,"s",0,1);
28/01/2014   i have solved the problem of adding constraint 

next to do:   to generate a gantt chart according to the solution data we found
01/02/2014

i added the function to GUI:  add nurse id and name and use a arraylist to store it. then show in the jlist
02/02/2014

1. i changed the date of the roster to a week from the current date 
2. can generate a roster according to the solution 
3. click generate roster to search solution and generate a gantt chart to show the roster 
4. can add nurses(id and name ) to the roster software
02/02/2014

added the functions:
1. add nurses and uses the nurse data to generate roster
2. add constraints from the GUI
3. if no solution. print a tab. if there is solution, print the solution gannt chart
Merge branch 'master' of https://github.com/xl779/nurse_rota.git