http://asa-caltech.sourceforge.net/

I highly recommend this tool for your Optimisation purposes - very efficient code and a good example for learning how to implement Simulated Annealing Algorithm in C. What what inspires me is the approach the coder of the tool (Lester Ingber) has taken to implement the algorithm - well organised structure highlighting the prime benefits of C over Matlab.