Questions tagged [optapy]

OptaPy is the AI constraint solver in Python

Tag for OptaPy, the AI constraint solver in Python for the vehicle routing problem, employee rostering, maintenance scheduling, school timetabling, etc. Sibling project of OptaPlanner.

39 questions
0
votes
1 answer

Getting partial results from Optapy solver during running time

I am using the Optapy library in python for school timetabling optimisation. I am trying to solve complex problem, which demand long time of solving. Is there any option to get partial results during running the solver? For example, I define the…
IsKan
  • 17
  • 5
0
votes
1 answer

Constraint for curriculum to be met with Optapy - School timetabling optimization

I am using Optapy library in python and I want to add constraint that the curriculum needs to be met, since I get for now many unassigned lessons even though most of the timeslots and rooms are empty and the teacher resources are mostly unused. I…
IsKan
  • 17
  • 5
0
votes
1 answer

School timetabling with Optapy - allow to choose teacher from a list for a lesson

I am trying to use Optapy with the school timetabling example as a base. For any given of subject I have a list of teachers that potentially can teach this subject and each teacher can potentially teach 1 to 3 subjects. I want to optimize the…
IsKan
  • 17
  • 5
0
votes
1 answer

Does Optapy allow access to Optaplanner Benchmarker?

Is there a way to use the Optaplanner benchmarker using Optapy? If not, will this be added? What do you suggest to do in order to facilitate systematic benchmarking of Optapy solvers in the meantime?
Paul
  • 1
0
votes
1 answer

OptaPy isEqual isNotEqual in python

I'm trying to schedule sports matches into timeslots and would like to not have empty timeslots during the day (so finish as early as possible). I think isEqual and isNotEqual should help, but stuck in the syntax of the Python version. I think I'm…
Hebbs
  • 17
  • 2
0
votes
1 answer

Can OptaPy run on GraalVM?

Given that OptaPy internally runs OptaPlanner in a JVM, can it run on GraalVM too, in graalpython?
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
-1
votes
1 answer

OptaPy quickstart crashing on mac Mini M1

Just trying out the OptaPy school timetabling quickstart on a mac Mini with M1 silicon. It crashes with the error message (below). Note that OptaPlanner quickstarts are working on the same machine, so I am ruling out a JDK / JRE issue. OpenJDK…
Remo R
  • 1
  • 1
-1
votes
1 answer

Is it possible to write a combined version of the OptaPlanner's task assignment and project scheduling examples in OptaPy?

I know that custom shadow variables are currently not supported in optapy, so is there a way to solve the optimization problem below: distribute tasks from the project among employees, given that the tasks have a clear order in which they must be…
-1
votes
2 answers

java.lang.IllegalStateException: Error occurred when wrapping object

Here is my problem to solve using optapy. @problem_fact class Room: id: int name: str def __init__(self, id, name): self.id = id self.name = name @planning_id def get_id(self): return self.id def…
VijiS
  • 1
  • 2
1 2
3