Reputation: 58
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:
Looking forward to my first steps.
Upvotes: 2
Views: 226
Reputation: 27312
to add new occurrences of existing constraints, alter the input data files. The txt format is described in the the problem specification description, the xml format is just a straightforward XStream serialization of the domain classes.
To add custom constraint types, start by opening the examples sources in your IDE.
Then take a look at the domain package. Classes like Job, ExecutionMode, ResourceRequirement, etc should sound familiar from the problem specification description.
Then take a look at the score constraint rules. I see those are a bit difficult to grok in this use case, in the other examples (such as cloud balancing) it's easier to understand.
Upvotes: 1