material cutting plan programe

Discussion in 'AutoCAD' started by raju, May 2, 2004.

  1. raju

    raju Guest

    I have a lisp programme to preparing a output layout form the user input.The main problem is in my programme, loop .
    For example :-
    Input given 200 Nos
    Output based on 66 Nos

    The programme must be run combinations and permutations formula NCR times (200 C 66) to run the loop and it will automatically slowed to complete the process. it take 1 hours to complete the process.

    Any ideas to improve the loop speed.
     
    raju, May 2, 2004
    #1
  2. raju

    cadtown Guest

    Why don't you post your lisp routine so that others can
    give you some suggestions for improvement ?

    http://www.cadtown.com
     
    cadtown, May 2, 2004
    #2
  3. raju

    TCEBob Guest

    I must be misunderstanding. You are going to run the loop
    200!/(66!*136!) times? That's 7.26975E+53. Computer technology is not
    there yet. Please clarify. It would be helpful if you could post the
    loop.

    If you are running into long times for calculation, recall that lisp is
    an interpreted language. It demands a lot of overhead just to read the
    next step and implement it. You would likely see a great improvement if
    you used a compiled language like C or Vbasic to do the grunt work.

    rs

    input.The main problem is in my programme, loop .
    times (200 C 66) to run the loop and it will automatically slowed to
    complete the process. it take 1 hours to complete the process.
     
    TCEBob, May 2, 2004
    #3
  4. raju

    ECCAD Guest

    For an operation like this, I would use Visual Basic.
    Use Lisp if needed to obtain 'input', numbers..when
    done gathering input, do startapp of VB. Read-in data
    file, loop (in VB), and Output data-file. Much faster.

    Bob Shaw
     
    ECCAD, May 2, 2004
    #4
  5. raju

    John Uhden Guest

    The speed degradation might be due to the methods you are using. For instance
    (repeat) can be many times faster than (while). Also, if not all the numbers
    are used each time, a (foreach) might serve you better.

    If you can post the code via attachment, maybe the friendly helpers here will
    find some improvements for you. Bear in mind that if the program is big (I
    think that means > 16Kb), then post the file in customer files, and let us know
    to look for it.




    main problem is in my programme, loop .
    (200 C 66) to run the loop and it will automatically slowed to complete the
    process. it take 1 hours to complete the process.
     
    John Uhden, May 2, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.