Flexible and efficient microgrid energy management: a sigmoid-based optimization strategy | Synapse