The optimization of objects with distributed parameters, described by Goursat-Darboux systems