optaplanner

Displaying the labels vertically

假装没事ソ 提交于 2019-12-12 05:30:01
问题 Please, I want to display the labels' text vertically. Also I want the column header to be displayed vertically. actually, I tried to use: public static final String LOGO_PATH = "/org/optaplanner/examples/curriculumcourse/swingui/curriculumCourseLogo.png"; private final TimeTablePanel<Room, Period> roomsPanel; private final TimeTablePanel<Teacher, Period> teachersPanel; private final TimeTablePanel<Curriculum, Period> curriculaPanel; public CurriculumCoursePanel() { setLayout(new BorderLayout

Remove a vehicle from VRP

天大地大妈咪最大 提交于 2019-12-12 04:55:17
问题 What is the correct way to remove (=delete) a vehicle from planning entity collection (similar to VehicleRoutingSolution.VehicleList in OptaPlanner VRP samples) via ProblemFactChange? So far I've tried to reset nextCustomer before deleting the vehicle reset nextCustomer of vehicle and prevStandstill of its first customer do the same for all chained customers on vehicle brute force through customer list I'm getting IllegalStateException, either because of mismatch between prevStandstill and

How do I load a xml in Optaplanner

白昼怎懂夜的黑 提交于 2019-12-12 04:36:20
问题 I have created a MySQL database with entries similar to nurse roster, Now i need to send this data to optaplanner deployed on my server. To which file do i need to send it in the optaplanner folder deployed on server to get the results displayed on my webpage. I'm using Xstream to generate XML file. Can any one please give me brief on how to make this functionality work and get me the desired results. 回答1: The whole dataset serialization from and to XML is part of optaplanner-examples:

Unmarshalling of solverConfigResource fails

Deadly 提交于 2019-12-12 04:16:33
问题 This post is a solution on a previous issue: OptaPlanner - Problems with the solver configuration for two planning entity classes This was the error: Exception in thread "main" java.lang.IllegalArgumentException: Unmarshalling of solverConfigResource (org/optaplanner/examples/nurserostering/solver/nurseRosteringSolverConfig.xml) fails. at org.optaplanner.core.impl.solver.XStreamXmlSolverFactory.configure(XStreamXmlSolverFactory.java:114) at org.optaplanner.core.api.solver.SolverFactory

OptaPlanner construction phase - Is there a way to define filters?

天大地大妈咪最大 提交于 2019-12-12 03:29:22
问题 In local search phase you can configure filters for entities, values and moves. You can even provide a custom move factory if you want. However, I can't find any documentation on how to do the same in construction phase. The only configuration is a heuristic type and forager: Chapter 8. Construction heuristics I want to implement some of my very hard rules in filters, however, without the ability to filter in construction phase I must also define them as scoring rules to avoid bad

Unable to see any results when benchmarking optaplanner

[亡魂溺海] 提交于 2019-12-12 01:45:27
问题 I am trying to benchmark in Optaplanner, and I am not seeing any results. My directories are all created, however, there are no files and there is no html file for me to view any graphs. Below is an outline of my implementation, can you assist in helping me figure out what I am doing wrong? I added the following to VehicleRoutingApp.class in main() PlannerBenchmarkFactory plannerBenchmarkFactory = PlannerBenchmarkFactory.createFromXmlResource( "org/optaplanner/examples/vehiclerouting

Optaplanner add computerroom restriction

情到浓时终转凉″ 提交于 2019-12-11 22:29:54
问题 it's my first post here and I'm posting for my team of learning Java programmer for an school project. So we aren't good programmer. how can I add a constraint to make the Optaplanner move the lectures into a specific room type. For example I want to move the lecture "Programming" into a computerroom and the lecture "Math" in a normal room. But with my constraint it declares the hard constraints but doesn't move the lectures in their room. This should be a negative constraint. So the negative

getting fewer solutions with more opportunities in optaplanner

两盒软妹~` 提交于 2019-12-11 18:15:56
问题 My planning variable is combinations of 4 vehicle runs (routes) that can be performed by a single vehicle. The individual runs are the planning entity. The goal is to find the maximum number of fully loaded routes where a vehicle performs all runs on the route. A run can only be associated with a single route. A hard constraints ensures that a run lands on a route that includes the particular run. My issue is that it appears that I get a reasonable solution when using a smaller number of

Optaplanner List Planning variable

妖精的绣舞 提交于 2019-12-11 17:31:42
问题 Downloaded OptaPlanner examples, testing them. In the Meeting Scheduling example provided, a single planning variable is returned in the solved solution. for example, for a meeting scheduling, one Room is returned. I am planning to allocate multiple rooms for a single meeting schedule if the locations are different (assuming VC enabled for remote rooms). Current Meeting Scheduling example does not show this. Do I need to change the planning variable room to a List? 回答1: Planning variables can

How to add Immovable feature in Project Job Scheduling solution?

荒凉一梦 提交于 2019-12-11 13:39:48
问题 I need to add immovable feature to my project job scheduling solution, I have add locked property at Allocation class like this : private boolean locked = false; update the NotSourceOrSinkAllocationFilter class to include locked checking like this : JobType jobType = allocation.getJob().getJobType(); return !allocation.isLocked() && jobType != JobType.SOURCE && jobType != JobType.SINK; I tried to run it first, when the result appears, I immediately terminate the solving earlier. Then move one