Optimization issues in modeling IPMC devices