with use of a optimisation method