I am trying to solve a system of nonlinear equations which consists of 3 equations with 4 unknowns by applying fsolve. In general, there are infinitely many solutions. However, one of the unknowns can take only integer values from 1 to 5. Thus, the number of solutions are restricted to at most 5. I do not how to impose that constraint: that one of the unknowns is an integer, and that it lies between [1,5].
MATLAB: How to obtain integer solutions only with fsolve
fsolveMATLABnonlinear
Best Answer