Running from the command line

33 views
Skip to first unread message

Rémi Bédard-Couture

unread,
Apr 30, 2020, 9:34:10 PM4/30/20
to Multi Expression Programming
Hello,

Is there a way I could test this algorithm from the command line? like disabling the UI and passing the configuration as parameters?

Thank you

Rémi

Mihai Oltean

unread,
May 1, 2020, 4:18:20 AM5/1/20
to Multi Expression Programming
Hi,

Currently, MEPX cannot do that.
But you can take one of the libmep examples and adapt it to accept parameters from the command line.

I plan to upgrade MEPX to accept parameters from command line, but in the first stage will accept XML files (which have the structure as a project) as input/output.
But this version is not yet ready to release.

regards,
Mihai

Rémi Bédard-Couture

unread,
May 1, 2020, 5:35:30 PM5/1/20
to Multi Expression Programming
Hi,

awesome, I will have a look at that. If you want, we can work together on that command line version. Maybe we can create a new branch on github and start from there?

Thank you

Mihai Oltean

unread,
May 1, 2020, 5:39:17 PM5/1/20
to me...@googlegroups.com
The source code for the user interface part of MEPX is not currently available as public repository on GitHub.
I plan to make it public after I re-organize the code more.

Will update in 1-2 weeks.

regards,
Mihai

--
You received this message because you are subscribed to the Google Groups "Multi Expression Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mepx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mepx/56da6b23-bb3f-413e-8163-937fac7fc61b%40googlegroups.com.

Bogdan

unread,
May 3, 2020, 3:12:13 AM5/3/20
to Multi Expression Programming
Hey,

If you are interested, I can make a CLI interface for hmep. Which is the task you are trying to solve?

Best,

Bogdan

Rémi Bédard-Couture

unread,
May 5, 2020, 4:52:47 PM5/5/20
to Multi Expression Programming
Awesome, I will wait for your update then.

Thank you
To unsubscribe from this group and stop receiving emails from it, send an email to me...@googlegroups.com.

Rémi Bédard-Couture

unread,
May 5, 2020, 4:57:00 PM5/5/20
to Multi Expression Programming
Hello,

thanks for sharing your library. I am doing a review and testing various algorithms but the server I am using to run the tests has no graphical interface, only command line.

I have never used Haskell, but I might try it!

Regards,

Bogdan

unread,
May 6, 2020, 11:29:25 AM5/6/20
to Multi Expression Programming
OK. Let me know if you have any questions. I would be happy to help.

Bogdan

unread,
May 6, 2020, 2:33:07 PM5/6/20
to Multi Expression Programming
So here I have implemented a basic version of command line interface:

Usage: hmep -f <input file> [-l|--length 30] [-m|--mutation 0.05] [-r|--var 0.1]
            [-c|--const 0.05] [-p|--population 200] [-t|--total 200]

Available options:
  -h,--help                Show this help text
  -f <input file>          Input file path. Format: comma-separated, two
                           columns.
  -l,--length 30           Chromosome length
  -m,--mutation 0.05       Mutation probability
  -r,--var 0.1             Probability to generate a new variable gene
  -c,--const 0.05          Probability to generate a new constant gene
  -p,--population 200      Population size
  -t,--total 200           Total number of iterations

Bogdan

unread,
May 6, 2020, 2:38:40 PM5/6/20
to Multi Expression Programming
Please note that I haven't implemented sub populations in this version.
Reply all
Reply to author
Forward
0 new messages