Abstract A numerical method of direct search optimization is presented for calculating parameters of a reciprocal lossless two-port network. Some examples are given. It is pointed out that the results obtained by different methods agree with one another.