tag:blogger.com,1999:blog-6265608756663924839.post6455840009796564696..comments2017-01-26T01:29:53.039-08:00Comments on Dukes of Erl: Linear Programming with ErlangMichael Radfordhttp://www.blogger.com/profile/16558736208373025619noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6265608756663924839.post-59962561678527906292017-01-26T00:51:54.116-08:002017-01-26T00:51:54.116-08:00I installed erlang-dev, and getting a step further...I installed erlang-dev, and getting a step further now.<br />If I run configure with --disable-hardcore, I get only one error (and a lot of warnings):<br />handlers.c: In function ‘decode_from’:<br />handlers.c:853:63: error: ‘INT_MAX’ undeclared (first use in this function)<br /> res.it_lim = deserialize_optional (int32_t, buf, buflen, INT_MAX, deserialize_int32_t (buf, buflen));<br />I have found someone with more experience in C and Erlang to help me, so I have some confidence we will succeed. With a little help from you, we should be able to get this working.<br />I am working in https://github.com/pinx/glpkerlpinxhttps://www.blogger.com/profile/13088441656276277086noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-83475566778155482672017-01-25T14:31:09.796-08:002017-01-25T14:31:09.796-08:00Probably missing a path to a header. Alternativel...Probably missing a path to a header. Alternatively, the erlang driver interface may have changed since I wrote this (?)<br /><br />If you are new to C, the probability that this is going to be successful is very low.Paul Mineirohttps://www.blogger.com/profile/05439062526157173163noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-41068819053212428432017-01-25T14:01:43.141-08:002017-01-25T14:01:43.141-08:00I am getting a compilation error: glpkerldrv.c:5:2...I am getting a compilation error: glpkerldrv.c:5:24: fatal error: erl_driver.h: No such file or directory<br />A few lines before this, I get a warning: configure: WARNING: compilation may fail due to bad CFLAGS and LIBS<br />I'm new to C, so it all makes little sense to me. Sorry.<br />Any ideas?pinxhttps://www.blogger.com/profile/13088441656276277086noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-36932777854551160802017-01-25T11:02:40.168-08:002017-01-25T11:02:40.168-08:00@marcel: I haven't used it in a long while, bu...@marcel: I haven't used it in a long while, but you are welcome to try. For code examples, see testglpkerl which contains unit tests that invoke the driver and solve some simple LPs.Paul Mineirohttps://www.blogger.com/profile/05439062526157173163noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-64916480262674378732017-01-25T01:56:30.755-08:002017-01-25T01:56:30.755-08:00Is glpkerldrv still usable (and used)? I plan to i...Is glpkerldrv still usable (and used)? I plan to integrate it in a Phoenix app. Problem data comes in via REST, I hand it over to the solver, and send back the solution.<br />A sample (in Elixir or Erlang) would be very helpful.pinxhttps://www.blogger.com/profile/13088441656276277086noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-75066041528090752632012-08-29T08:20:59.700-07:002012-08-29T08:20:59.700-07:00@Jamen: If you are looking to have fun, I think wr...@Jamen: If you are looking to have fun, I think writing a linear program solver in Erlang is great way to pass the time.<br /><br />If you are looking to solve an actual problem, I don't think this is a good approach. Leaving aside Erlang specific issues (floating point performance), there are extremely good linear program solvers out there and it would be much more efficient (both programmer time and execution time) to integrate with one of them.Paul Mineirohttps://www.blogger.com/profile/05439062526157173163noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-21089284727199972812012-08-27T09:45:47.743-07:002012-08-27T09:45:47.743-07:00Hello fellow Erlangers! Question: is there a linea...Hello fellow Erlangers! Question: is there a linear programming solver written in Erlang? If not, what tips do you have for how I might go about writing one? Thank you in advance!Anonymoushttps://www.blogger.com/profile/04912530819327306853noreply@blogger.comtag:blogger.com,1999:blog-6265608756663924839.post-23110286230098294762009-10-07T07:14:40.661-07:002009-10-07T07:14:40.661-07:00I've packaged a library for interfacing betwee...I've packaged a library for interfacing between C/C++ and Erlang. Have a look at: http://epapi.googlecode.com/Anonymoushttps://www.blogger.com/profile/00409924945516479600noreply@blogger.com