Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7690517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:24:55+00:00 2026-05-31T20:24:55+00:00

How to develope an efficent job scheduling with constraints?? The scheduler should include these

  • 0

How to develope an efficent job scheduling with constraints??

The scheduler should include these methods:

startBeforeEndOf(Job j)
startAfterEndOf(Job j)
startBeforeStartOf(Job j)
startAfterStartOf(Job j)
endBeforeEndOf(Job j)
endAfterEndOf(Job j)
endBeforeStartOf(Job j)
endAfterStartOf(Job j)

Every job has an id and the time parameter.

A possible solution for this matter, may be based on technical backtracking. The jobs are used as choice points, and temporal instants as choices (in the worst case the total duration of the activity is the sum of the durations of the work, resulting in a fully sequential execution).

Alternatively I should adequately represent the data and then generates a scheduling on the time axis, placing the work under the constraints and moving forward in a job (and all the jobs that depend on it) when a constraint is not satisfied.
But I don’t know how exactly I can do this in java.

In other words I looking for a way to avoiding the intense backtracking approach, in the job management described.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:24:57+00:00Added an answer on May 31, 2026 at 8:24 pm

    Try OptaPlanner (java, open source). There is a quick start here.

    For example, assign each Job to a startMinute, then add score rules like:

    when
        $leftJob : Job($startMinute : startMinute)
        // getEndMinute() returns startMinute + durationInMinutes
        $rightJob : Job(beforeJob == $leftJob, endMinute > $startMinute)
    then
        // punish
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my attempt to develope a thread-safe C++ weak pointer template class, I need
I will develope a programm that: connect 2 PCs 1 will be server, 1
If i develope a regular Website using the phongap.js library, Will it still works
Now I wanna develope a windows service console program via WPF. Each service is
I wanna develope Push notification without C2DM. Then I googled and found out some
My company has developed (and still continues to develope) a large ASP.NET business application.
I am using Zend Studio 7.2 as my main IDE. I develope android apps.
I'm starting a new job next month. I've practically lived inside Visual Studio professionally
I am asked to develop a software which should be able to create Flow
I develop exclusively on VMs. I currently run Boot Camp on a MacBook Pro

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.