ALL >> Business >> View Article
Using Two Constraint Files In A Single Service Of Optaplanner
In this blog post, we shall see how we can use two constraint files in OptaPlanner 8 or OptaPlanner 9 beta version.
In OptaPlanner 8 version, we do not need to configure the XML file when we use the single constraint file. We can use the following steps to use auto config :-
1:- first you need to inject the following code in your service section to find the solution of your code.
@Autowired private SolverManager solverManager;
2: then you need to inject the following code in your service section to find the score of your solution.
@Autowired private ScoreManager scoreManager;
2:- After these, two injections, you need to add the following code to solve the problem and find the score.
UUID problemId = UUID.randomUUID();
// Submit the problem to start solving
SolverJob solverJob = solverManager.solve( problemId, SolutionClassName ); SolutionClassName solutionClassName; try { // Wait until the solving ends solution = solverJob.getFinalBestSolution(); } catch (InterruptedException | ExecutionException e) { throw new IllegalStateException("Solving failed.", e); }
For more, visit this link
https://erpsolutions.oodles.io/developer-blogs/Using-Two-Constraint-Files-In-a-Single-Service-of-OptaPlanner
#erp #optaplanner #erpsystem
Oodles ERP https://erpsolutions.oodles.io/
Add Comment
Business Articles
1. Smart Seo Strategies To Grow Your Business In Hitech CityAuthor: Sanbrains Seo
2. Bcm Consultants In Uae: Achieving Iso 22301 Certification And Ncema 7000 Compliance For Unbreakable Business Resilience
Author: kohan
3. How Businesses Can Grow Faster With The Right Digital Marketing Strategy
Author: Sanbrains Seo
4. How To Choose The Best Cleaning Machine Service In India
Author: Steve Smith
5. Best Astrologer In Yelahanka
Author: Bestastros
6. Gel Polish Removal Kit And Gel Manicure Kit For Easy At-home Nails
Author: Revelnail
7. Vegan Nail Products: A Guide To Beautiful At-home Manicures
Author: Revelnail
8. Leed Certification Companies In Dubai: Unlocking Strategic Value With Leed O+m Certification And Expert Leed Certification Consultant Support
Author: kohan
9. Sustainability Reporting Consultant In Uae: Navigating Post-deadline Compliance, Audits, And Enforcement In Dubai For 2026 And Beyond
Author: kohan
10. Buy Verified Whitebit Account Online: What You Need To Know
Author: Anykyc Solution
11. Bcm Consultants And Iso 22301 Consultants In Oman: Essential Partners For Business Resilience And Regulatory Compliance
Author: kohan
12. Can One Coffee Table Uae Change The Entire Mood Of An Event?
Author: Areeka Event Rentals
13. Rent Dining Chairs With Confidence: Performance Leather, Velvet, & Treated Textiles
Author: Areeka Event Rentals
14. How A Nepal Healthcare Recruitment Agency Supports Gulf And European Employers
Author: Global Recruit Experts
15. Why Should Your Small Business Consider A Virtual Receptionist?
Author: Eliza Garran






