Can i use this fitness function? : i am working on a project using a genetic algorithm, and i try now to formulate a fitness function, my questions are  :

what is the effect of fitness formula choice on a GA ? 

it is possible to make the fitness function equals directly the number of violation (in case of minimisation) ? 


thanks you in advance ..