Is it possible to patent a new general method of optimizing some industrial processes? I have finished a new method (implemented as an algorithm/software) which exploring data inputs obtains a sequence of steps, appliable for different industrial processes, that reduces drastically material and human resources as well as energy and time.

For example. This method gives the optimal commands for managing an arm-robot to arrange 7 tones of different size stones in 10 pallets of 1 cubic metre in 60 minutes instead of the current process that needs 3 arm-robots (and others) for performing the same task in 30 pallets and in more than 300 minutes.

Note that for different processes and inputs (a different set of stones) it will produce a different sequence of commands, so it is generating new industrial processes for each new task. 

I know that software that implements industrial processes are patentable in US and EU but as I´ve exposed it is not an industrial process but an algorithm to generate some industrial processes. 

Is this case of software patentable as a unique-global software for industrial processes or each case must be patented apart?
Disclaimer: you need to ask a legal expert: software patents is a very complex and specialized domain, so don't rely on strangers on the internet ;)

As far as I know some algorithmic methods are patentable, but there are conditions to satisfy, in particular about the novelty of the method. You would probably have to prove the novelty by doing a thorough literature review, it's probably not enough to show that the software leads to efficiency improvements.