The optimal network problem: Some computational procedures