welcome to healthcaremagic. ideal weight can be obtained by proper High calorie diet with appropriate nutrient content, and exercise. after taking appropriate diet if the person is not able to gain weight it may be due to heredity in some cases. other medical reasons can be Hyperthyroidism
imbalance. To rule out the other possibilities the patient should visit a doctor.