Neural-Network-Based Solver for A Few Soft Matter Problems