Questions tagged [optaplanner]

0

votes
0

answer
4

Views

How to listen to an inverse Shadowvariable and the genuine planning variable in optaplanner?

Hello optaplanner community, im working on a capacitated vrp with pickup and delivery and timewindows without a central depot and a non homogeneous. A fleet of cargo Vessels pickup and deliver cargo from different ports saved in a distance matrix. The vessels have different speeds and different car...
zarrock
1

votes
2

answer
90

Views

The XML file in optaplanner nurse scheduling system can interact with the front desk in real time

I am using your optaplanner as a doctor scheduling system. I have a question for you: I use optaplanner as a backend system, passing the XML file to optaplanner through PHP, and returning the calculated XML results to the PHP backend system by optaplanner. Now I want the doctor to see the change in...
xianzeng zhang
1

votes
1

answer
429

Views

Drools Planner rule profiling

we are using Drools Planner 5.4.0.Final. We want to profile our java application to understand if we can improve performance. Is there a way to profile how much time a rule needs to be evaluated? We use a lot of eval(....) and our "average calculate count per second" is nearly 37. Removing all eval(...
Tommaso Taruffi
1

votes
1

answer
405

Views

optaplanner: how to enforce planning variables values to be used only once

I am trying to learn optaplanner. And as a learning project I am trying to implement a very basic and simple program which calculates "magic squares". Basically I am trying to assign "Number"s to the "Box"es defined in rows and columns. Sorry for not copy/pasting directly from source code, my devel...
akifusenet
1

votes
1

answer
401

Views

Error with running Drools - how should I debug?

I have a Drools file within a Java program (in this case a variation of Optaplanner), which I am building on Netbeans 8. When I run the program I get an error message: Exception in thread "main" java.lang.IllegalArgumentException: The scoreDrl (taskassignment/solver/taskAssignmentScoreRules.drl) doe...
user3441584
1

votes
1

answer
402

Views

How should I write an OptaPlanner Planning Entity PlanningVariable Annotation in Grails?

I tried to convert my OptaPlanner code from Java to Grails. Everything else is fine except I'm stuck when I changed the Planning Entity class into a Groovy file. Then Error message with this would show: startup failed: F:\Users\Administrator\Documents\workspace-ggts-3.2.0.RELEASE\spa\src\groovy\opt...
user2406512
1

votes
1

answer
114

Views

Require information on superclass/interface for Chained variable

For Vehicle Routing problem, I removed the interface (i.e. Standstill) and modified Solver Configuration (i.e. vehicleRoutingSolverConfig.xml) to replace Standstill entityClass with Vehicle entityClass. Also made other changes to the code. However, I get the following exception while trying to run...
Manish
1

votes
3

answer
479

Views

Optaplanner's Drools working memory is empty

I got optaplanner working correctly with drools rules. "Suddenly", after some change I did, Optaplanner does not put my facts in the drools kSession anymore. I put some logging, and I see that optaplanner calls the getProblemFacts() method on my Solution, and this method returns a list with size > 0...
Gaël Oberson
2

votes
1

answer
143

Views

Optaplanner: Vehicle Routing – order of precedence while visiting cities

Suppose that you have a car that is required to visit cities A, B, C, D and E in the shortest possible time or distance. But there is order of precedence in which these cities can be visited. For e.g., B must be visited first before you visit “A,” and “E” must be visited first before you can...
Vikas Agrawal
2

votes
1

answer
171

Views

Project scheduling modification

I run the optaplanner examples and they are looking really interesting. I want to dive deaper into this tool. To get a start I have some first questions: Where to start with my modifications? Is it neccessary to code if I just want to provide another input? Or will I have to modify the A-1.xml for e...
ManuelBS
3

votes
1

answer
686

Views

Problems with the solver configuration for two planning entity classes

I'm working on a solution of a problem that is close to the Nurse Rostering Example in optaplanner . Employees are assigned to shifts as in the Nurse Roster but the main difference is that there are also skill requirements (assignments) that last lets say 20 minutes. An employee can be assigned to a...
2

votes
1

answer
426

Views

Construction issue - The selectorConfig (EntitySelectorConfig(null)) has no entityClass

I declared two planning entities Run and School that have their own planning variables. In the solver config, there are separate construction heuristics for each entity, yet there is an issue that the selectorConfig has not entity Class. Using OptaPlanner 6.2.0. Any help is greatly appreciated. o...
user2952819
2

votes
1

answer
310

Views

Returning multiple solutions to a scheduling issue with optaplanner

strong textHello Optaplanner experts, I am pretty new to OptaPlanner, so please pardon any naive or basic questions. I am using it to schedule a: set of jobs, A, B and C, which can be completed by 5 resources, say Will, Jane, Roy, Tom, Jeff. Each of these jobs can be done by any of the 5 resources...
Alice
2

votes
1

answer
264

Views

Solve “Weighted Activity Selection” problems with OptaPlanner

We want to plan activities for tourists by selecting some (around 10) for a day from a large set (around 10K) of available ones according to likes, dislikes, etc. I think it belongs to the "Weighted Activity Selection" class of problems. (1) is it possible to solve that with OptaPlanner? (2) how sho...
aercolino
1

votes
1

answer
206

Views

Optaplanner newbie: nurse softconstraint for weekends

I'm studying Optaplanner, and am doing some experiments with the Nursing Roster. My goal, for this experiment, is simple: to have nurse "1" be more in favor, and more likely, to work weekends. I have written the following rules to help make this happen: rule "nurseNamed1WorksWeekends" when $oneNurse...
Magick
5

votes
1

answer
780

Views

Does OptaPlanner support optimizations and constraints on continuous variables?

I'm reading contradictory things in the documentation. On one hand, this passage seems to indicate that continuous planning variables are possible: A planning value range is the set of possible planning values for a planning variable. This set can be a discrete (for example row 1, 2, 3 or 4) or cont...
levand
2

votes
1

answer
301

Views

Optaplanner - availability of Vehicles

I am working on a VRPTW problem where vehicles have availablity constraints. This means that they might not be available the entire period of a day - basically a time windows for vehicles. Is there a way to build this in optaplanner? Thank you and Brgds, Paul
user3227547
2

votes
1

answer
763

Views

How can i intergrating a website with Optaplanner (html,javascript,php)?

Im developing a scheduling system that the user must be able to go online login to the website and feed schedules in pdf that will be received by optaplanner which will schedule the resources and return a grid that the user will be able to interact with dynamically. My question is how can i integrat...
Chrisb
2

votes
1

answer
141

Views

Specific variation on bin packing (n bins with optimisation to maximise the minimum value of the bins)

I have been looking for a solution to a problem that is apparently more unusual than I initially thought. Optaplanner looks promising, but being relatively inexperienced with Java I wanted to investigate whether this is completely impossible before I dive into it. I am trying to schedule tasks for n...
user3441584
2

votes
1

answer
205

Views

OptaPlanner - A planning entity is an instance of an entitySubclass (class java.lang.Integer) that is not configured as a planning entity.

I have been trying to implement a custom Construction Heuristic in Optaplanner on a problem similar to the Nurse Rostering one. Everything seems to be annotated correctly, and is added to the SolverConfiguration, but i keep getting this error: Exception in thread "main" java.lang.IllegalArgumentExce...
Nikola Atanasov
2

votes
1

answer
191

Views

How to specify simulatedAnnealingStartingTemperature using OptaPlanner benchmark blueprints

I'm attempting to use OptaPlanner benchmark blueprints as described at http://docs.jboss.org/optaplanner/release/6.4.0.Final/optaplanner-docs/html_single/index.html#benchmarkBlueprint. When I use a solverBenchmarkBluePrintType of EVERY_CONSTRUCTION_HEURISTIC_TYPE_WITH_EVERY_LOCAL_SEARCH_TYPE, I get...
Mitch
3

votes
1

answer
546

Views

Can OptaPlanner be modified to support 2d Bin Packing

I am looking for a algorithm that will place different size rectangle given their Height and width in inches on a Fixed size rectangle which is defines by Height and Width. I saw bin packing in a description of OptaPlanner but I am not sure this is what I am looking for. Any ideas?
user3027058
2

votes
1

answer
214

Views

Drools rule CE collect fired too many times

I am currently writing an application for course scheduling using OptaPlanner and Drools. One of our rules written in Drools collects Entries (time slots of a schedule) of the same day into an ArrayList. I noticed during testing our rules that this rule fired multiple times, namely the exact amount...
Endymion
6

votes
1

answer
2.4k

Views

How do I use Drools Planner?

I have a scheduling problem where each student expresses his preferences for a lecture and a course timetable is generated for all of the students at the same time (in a batch mode if I may). From what I read around and understand, Drools Planner is very well suited to solve this type of problem....
JavaFan
3

votes
1

answer
295

Views

Repeated planning without ProblemFactChange

I'm a bit wondering about how to implement repeated planning. The document classifies into 3 situations. 'Backup planning', 'Continuous planning' and 'Real-time planning'. http://docs.jboss.org/optaplanner/release/latest/optaplanner-docs/html_single/index.html#repeatedPlanning If I'm not missing som...
Toshiya Kobayashi
2

votes
2

answer
592

Views

Do we need to read an XML file to get useful information about an Optaplanner solution?

I have been looking at the Optaplanner outputs for several problems, including N Queens, TSP, and Project Job Planning. The problem statements for TSP and Project Job Planning seem to be easily understood text files. The solutions generated by Optaplanner always seem to take the form of very long,...
dataquerent
4

votes
1

answer
187

Views

OptaPlanner deploy multiple vehicles to same location

I have taken OptaPlanner VRP web example and customized it to my needs. It is working fine except in the below scenario: Number of vehicles available : 2. Each vehicle capacity is 6. And customer demand is 7. In the above scenario, OptaPlanner is not able to solve the problem. I think it should de...
Chandra Manthina
3

votes
1

answer
138

Views

OptaPlanner: Must all possible values fit in memory?

It appears that the two options currently available (6.3.0.Final) are for a value range to be defined as a Collection or as a ValueRange (defined by bounds). My domain has a large number of potential values for each variable that are represented by Java Objects (not counting or number-line values)....
Jon L
13

votes
1

answer
247

Views

Optaplanner remove customer from working VRP solution

Based on this question i tried the following: public void doFactChange() { Location toBeRemovedLocation = customerToBeRemoved.getLocation(); Location lookUpWorkingObject = (Location) scoreDirector.lookUpWorkingObject(toBeRemovedLocation); scoreDirector.beforeProblemFactRemoved(lookUpWorkingObject);...
Java Player
2

votes
1

answer
446

Views

Incremental score calculation bug?

I've been dealing with a score corruption error for few days with no apparent reason. The error appears only on FULL_ASSERT mode and it is not related to the constraints defined on the drools file. Following is the error : 014-07-02 14:51:49,037 [SwingWorker-pool-1-thread-4] TRACE Move inde...
Jack Kass
3

votes
2

answer
109

Views

MoveIteratorFactory purpose

As i can understand from the documentation the purpose of the "MoveIteratorFactory" is to generate the moves as they are needed to be played out at every step. Is the "getSize" method how big the subset of moves will be? What is the difference between "createOriginalMoveIterator" and "createRandomMo...
3

votes
1

answer
112

Views

Optaplanner ConcurrentModificationException when modifying Solution from SolverEventListener

I'm solving a scheduling problem using OptaPlanner solver integrated into a JavaFX GUI that updates on each improvement. Since connecting it to the GUI, this exception frequently happens after the construction heuristic finishes. Exception in thread "Thread-6" java.util.ConcurrentModificationExcep...
Goran Molnar
3

votes
1

answer
107

Views

Advantages and disadvantages of having more move selectors in the union in local search

I want an opinion when it comes to the number of move selectors in local search. Does adding a new move selector (with a given move type) is more positive than negative in most of the use cases. Meaning does it help the algorithms to more quickly escape from local optima , or does it distract the al...
Jordan Jordanovski
3

votes
1

answer
293

Views

Vehicle Routing with multiple locations per customer

I'm trying to solve vehicle routing where each customer has multiple locations, of which exactly one needs to be visited. I obtained optaplanner-master and modified the vehiclerouting example in the following manner: Customer.java: /* * Copyright 2012 Red Hat, Inc. and/or its affiliates. * * License...
msasha
3

votes
1

answer
230

Views

Modeling lunch breaks and additional depot returns in Optaplanner

we are using optaplanner to try to improve our current vehicle routes with time windows. We have a few smaller issues which we are not sure how to overcome: Our drivers need to have to have a 30 minutes lunch break, somewhere between 3rd and 5th hour of their shift (from the start of their drive), a...
kodo
3

votes
1

answer
129

Views

Optaplanner VRP remove customer from working solution

Based on this example from cloud balancing problem, I'm trying to remove customer from a working solution as follows: Location toBeRemovedLocation = customerToBeRemoved.getLocation(); Location lookUpWorkingObject = (Location) scoreDirector.lookUpWorkingObject(toBeRemovedLocation); scoreDirector.bef...
Anahi Adalberto
2

votes
1

answer
65

Views

What determines the order Custom VariableListeners are triggered in?

I've been reading the 6.2.0.Final documentation, but I couldn't find any information about what determines the order VariableListeners are triggered in. I've tried reordering my source to change the order the @CustomShadowVariable annotated methods appear in, but this doesn't appear to have any effe...
Alastair
2

votes
1

answer
2.1k

Views

how to get started with Optaplanner

I looked at the user guide http://docs.jboss.org/optaplanner/release/6.1.0.Final/optaplanner-docs/html_single/index.html#d0e2669 I looked at the example code from git, but still feel quite lost about how to model my planning problem (for example some special TSP variant, let's say TSPTW ). the way...
teddy teddy
2

votes
0

answer
73

Views

How does OptaPlanner determine when a move is taboo

In a previous question i have asked when the methods "getPlanningEntities" , "getPlanningValues", "hashCode" and "equals" are called in a custom move implementation. Accordingly "getPlanningEntities" is called when "entity tabu" is present in the solver configuration , "getPlanningValues" when "valu...
2

votes
1

answer
385

Views

Does optaplanner out of box support VRP with multiple trips and no depot

I am working on a VRP with the following characteristics: The vehicle can only pick up 1 customer at one time The vehicle picks up a customer at a location and drops off the customer at the destination After dropping off the customer the vehicle goes on to pick up another customer There is no depot...
flyingdragon

View additional questions