Panagiotis Peikidis

Show:

What's happening?

  • Little help with timetabling design

    I got two different designs in my mind but I cannot solve my problem in neither of them. In the first idea, the variables are the day and employee while the domain is the shifts. For example, for 5 days with 3 employees we have a total of 15 variables: JackMon, JackTue, JackWed, JackThu, JackFri, MaryMon, MaryTue etc. In the second idea, the variables are the number of shifts multiplied...

    2009-09-25 10:41:53 UTC in choco

  • Followup: RE: Help with occurence.

    And once again, I found that I was the one making the mistake. Man, I wish I had a dime for every time I said that. I was insisting that a shift had to occur at least once when in fact in a 5 day week with two shifts and two employees this is impossible! At least one day has to have either 0 Night shifts or 0 Morning shifts! doh!

    2009-09-17 13:18:47 UTC in choco

  • Followup: RE: Help with occurence.

    P.S. I must use Occurrence and not GlobalCardinality because the latter needs all the lower and upper bounds but in my program this is unknown at the moment. So please help me with occurrence and not globalcardinality.

    2009-09-17 10:44:48 UTC in choco

  • Help with occurence.

    Scenario: I have 2 employees and 2 shifts (Morning and Night). I want each employee to work 2 times in the Morning shift and 3 in the Night. I also want each day of each shift to have at least 1 employee and at most 2. Code: public class ChocoTest { public static void main(String[] args) { /* * Create Model and Solver */ Model model = new...

    2009-09-17 10:39:17 UTC in choco

  • Can I cancel a solver?

    Is there a way to stop the solver after solver.solve()? Currently my solver is in its own thread. I am looking for a way to cancel it on demand.

    2009-09-16 09:42:41 UTC in choco

  • Followup: RE: Dokuwiki Persmissions

    OK.. Looking forward for the new documentation. Hope I can help.

    2009-09-16 07:19:02 UTC in choco

  • Followup: RE: About IntegerVariable domains and the regular

    Well I finally figured out what was the problem: me. Stretchpath wasn't what I was looking for. Occurrence was. After learning both, I now combine them and they work great. So forget about what I said before. ;) There is no bug in stretchPath. It works as it suppose to. My mistake.

    2009-09-16 07:15:00 UTC in choco

  • Dokuwiki Persmissions

    Any chance of having enough permissions to help the documentation section of the site? You could review any changes and deny them if you don't like them. username: pek.

    2009-09-12 16:14:30 UTC in choco

  • Followup: RE: Restricting the number of occurrences

    By the way, I would suggest changing the documentation example of occurrence to make it more clear. For example, here is a much easier to understand example: Model m = new CPModel(); Solver s = new CPSolver(); // Create 7 variables InegerVariable[] vars = new IntegerVariable[] { makeIntVar("X1", 0, 10); makeIntVar("X2", 0, 10); makeIntVar("X3"...

    2009-09-11 06:09:43 UTC in choco

  • Followup: RE: Restricting the number of occurrences

    I meant, you can safely delete this forum topic.. :P.

    2009-09-11 06:03:36 UTC in choco

About Me

  • 2002-08-06 (7 years ago)
  • 590751
  • p3k (My Site)
  • Panagiotis Peikidis
  • http://pekalicious.com/

  • SQL-based Windows CE C# Java PHP Prolog Visual Basic XSL (XSLT/XPath/XSL-FO) HTML/XHTML User Interfaces

Send me a message