Optimization with Applied Electric Field

Looking for the syntax to apply an electric field in a particular direction while optimizing.

Thanks!

Please check the samples page when looking for the syntax for something. You can see an example of applying an electric field here.

No special syntax is needed for an optimization.

thank you for the help.