Systems optimization and identification in physics and environment