Maximum security is for inmates who are armed and have been caught and/or has contraband, whereas Solitary is for inmates who have been given multiple warnings. Inmates can also be placed in solitary if they are fighting with knives.
I hope this helps