• 192 views | 4 messages Discussion: LEAP
    Topic: LEAP in Command PromptSubscribe | Previous | Next
  • Henrique Santos 8/19/2009

    5573 Views

    Is it possible to run LEAP under a command line?

    I would like to be able to change my case parameters and generate output sheets throught Command Prompt.

    Thanks!

  • Charlie Heaps 8/22/2009
      Best Response

    5563 Views

    > Is it possible to run LEAP under a command line?
    > I would like to be able to change my case parameters and generate output sheets throught Command Prompt.

    Hello - You can control LEAP using its built in Application Programming Interface (API). This lets you control many functions of LEAP using any standard Windows programming language (e.g. Visal Basic or Visual Basic for Applications). So forexample, you could write a scri[t in Excel to interact with LEAP.

    Alternatively, you can create, edit and run scripts in LEAP itself using the options under the "Advanced" menu.

    Please see the Help file for detailed information about working with teh API.

    Best,

    Charlie
  • Henrique Santos 9/21/2009
      Best Response

    5524 Views

    Thanks.

    In the end, I need to make an iterative process between LEAP and a supply optimization model - with discrete variables - written in GAMS.

    As I see, the best solution will be using a script to control both of then. The only language that support active scripting and I have some experience is PERL.

    Do you know where could I find any example of a PERL code controlling LEAP?

    Also, I would like to do that in a Linux environment. Can I use API with the emulated LEAP?

    Cheers,
    Henrique


  • Charlie Heaps 9/22/2009
      Best Response

    5517 Views

    Hi Henrique,

    I'm afraid I cant help much with either question. LEAP should support any active scripting language including PERL but I have no personal experience of that.

    Likewise, I believe LEAP will run under WINE in Linux but again I am not sure what the implications would be for accessing the LEAP API COM objects in Linux.

    Sorry to be so unhelpful!

    Charlie


    > Thanks.
    >
    > In the end, I need to make an iterative process between LEAP and a supply optimization model - with discrete variables - written in GAMS.
    >
    > As I see, the best solution will be using a script to control both of then. The only language that support active scripting and I have some experience is PERL.
    >
    > Do you know where could I find any example of a PERL code controlling LEAP?
    >
    > Also, I would like to do that in a Linux environment. Can I use API with the emulated LEAP?
    >
    > Cheers,
    > Henrique