I get this output :"Solver stopped prematurely. No integer feasible point found" in intlinprog function
1 次查看(过去 30 天)
显示 更早的评论
I got this output:" Solver stopped prematurely. No integer feasible point found." when using intlinprog function to solve a linear optimization problem. The codes has been attached.
回答(1 个)
Aravind
2025-1-29
编辑:Aravind
2025-1-29
The message "Solver stopped prematurely. No integer feasible point found" suggests that the “intlinprog” function was unable to find a solution that meets all the integer constraints of your linear optimization problem. You can try the following steps to troubleshoot and potentially resolve this issue:
- Check Constraints: Ensure your constraints are correctly defined and that a feasible region exists. Overly restrictive constraints are a common cause of infeasibility.
- Initial Solution: If possible, provide an initial feasible solution or a good starting point to help the solver converge to a solution.
- Relax Constraints: Temporarily relax some constraints to see if the solver can find a solution. If successful, gradually reintroduce the constraints to identify the one causing infeasibility.
- Increase Iterations or Time Limit: The solver might need more time or iterations to find a feasible solution. Consider increasing the “MaxTime” or “LPMaxIterations” options in the solver settings.
- Review Variable Bounds: Make sure the bounds on your variables are correctly set and not overly restrictive.
- Scaling Issues: Poor scaling can lead to numerical difficulties. Try normalizing your data if you suspect scaling might be an issue.
- Review Problem Formulation: Double-check your problem formulation to ensure it accurately represents what you intend to solve.
Additionally, reviewing the documentation of the “intlinprog” function at https://www.mathworks.com/help/releases/R2022a/optim/ug/intlinprog.html can be helpful to understand its limitations and assumptions. Certain problem types or sizes may exceed the solver's capabilities, or specific settings might be needed for optimal performance.
I hope this helps address your query.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!