Re: [Jprogramming] startup.ijs under Linux ...

2023-04-05 Thread Martin Kreuzer
Chris, Bill ... There was one 2!:5 call found still referring to a Windows environment variable, which I hadn't converted, and that was where the startup script derailed. Many thanks. You sort of saved my holiday weekend. -M At 2023-04-06 03:28, you wrote: Or you can try 0!:1 <'/home/m

Re: [Jprogramming] startup.ijs under Linux ...

2023-04-05 Thread bill lam
Or you can try 0!:1 <'/home/math/j9.4-user/config/startup.ijs' to see what's going wrong. On Thu, 6 Apr 2023 at 3:13 AM chris burke wrote: > What do you get when loading that script? Try > >loadd '/home/math/j9.4-user/config/startup.ijs' > > On Wed, Apr 5, 2023 at 10:45 AM Martin Kreuzer

Re: [Jprogramming] Modular Matrix Divide

2023-04-05 Thread 'Michael Day' via Programming
Thanks, Cliff Yes,  I also wrote a function some years ago, "m_gauss_jordan", merely converted from a gauss-jordan I found somewhere - sorry not to attribute it...  I couldn't locate it under addons/math,  but perhaps it's there. I think the only changes were to replace the primitives * % + -

Re: [Jprogramming] lp?

2023-04-05 Thread Raul Miller
Depending on what you mean by "good", it sounds like you're probably looking for a https://en.wikipedia.org/wiki/Hill_climbing algorithm. I hope this helps, -- Raul On Wed, Apr 5, 2023 at 5:11 PM Elijah Stone wrote: > > If some set of values is good, and increasing one of the variables makes i

[Jprogramming] Report of J Wiki Meeting of March 30, 2023

2023-04-05 Thread 'robert therriault' via Programming
== Report of Meeting 2023-03-30 == Present: Ed Gottsman, Dave Lambert, Devon McCormick, Raul Miller, and Bob Therriault Full transcripts of this meeting are now available on the its wiki page. https://code.jsoftware.com/wiki/Wiki/Report_of_Meeting_2023-03-30 1) We started off with Ed's fourth

Re: [Jprogramming] lp?

2023-04-05 Thread Elijah Stone
If some set of values is good, and increasing one of the variables makes it bad, continuing to increase that variable will never make it good again. On Wed, 5 Apr 2023, Raul Miller wrote: What does monotonicity mean here, for a multivariate expression? Thanks, -- Raul On Wed, Apr 5, 2023 at

Re: [Jprogramming] startup.ijs under Linux ...

2023-04-05 Thread chris burke
What do you get when loading that script? Try loadd '/home/math/j9.4-user/config/startup.ijs' On Wed, Apr 5, 2023 at 10:45 AM Martin Kreuzer wrote: > > Dear all - > > My Linux machine broke down. > > New J setup (v9.4.1) on different hardware seems to work, except that > my startup.ijs isn't

[Jprogramming] Modular Matrix Divide

2023-04-05 Thread Clifford Reiter
load modular_matrix_divide.ijs open script for function/adverb definitions gcd's, gauss-jordan, modulo divide and modular matrix divide I think this is a draft of the modular matrix system solver that I imagined a couple decades ago. It may still have some rough edges/mistakes. gcd2x 51 119 17

[Jprogramming] startup.ijs under Linux ...

2023-04-05 Thread Martin Kreuzer
Dear all - My Linux machine broke down. New J setup (v9.4.1) on different hardware seems to work, except that my startup.ijs isn't recognised: "An error occurred when loading startup script: /home/math/j9.4-user/config/startup.ijs" It's the same file I use under Windows without any proble

Re: [Jprogramming] lp?

2023-04-05 Thread Raul Miller
What does monotonicity mean here, for a multivariate expression? Thanks, -- Raul On Wed, Apr 5, 2023 at 6:44 AM Elijah Stone wrote: > > I know not the first thing about linear programming or numerical optimisation, > but I have a problem which I think is related; can anyone point me in the > r

Re: [Jprogramming] lp?

2023-04-05 Thread Joe Bogner
Not J, but it sounds like convex optimization maybe? https://www.cvxpy.org/examples/basic/linear_program.html ... or maybe one of the examples more resonates with your problem : https://www.cvxpy.org/examples/ .. I'd be very interested in J solutions to some of these examples Not necessarily fast

Re: [Jprogramming] Peculiar behavior of tacit function

2023-04-05 Thread 'Mike Day' via Programming
Surely it's just that {{ opens a direct definition; isn't the session waiting for a matching }} to close the definition? Mike Sent from my iPad > On 5 Apr 2023, at 15:34, RICHARD VAUGHAN wrote: > > I find that ([{{"1) causes the system to hang, while ([{ {"1) and ([{"1{) > work as expect

[Jprogramming] Peculiar behavior of tacit function

2023-04-05 Thread RICHARD VAUGHAN
I find that ([{{"1) causes the system to hang, while ([{ {"1) and ([{"1{) work as expected. Perhaps I have ignored some rule regarding spacing, but this puzzles me. The behavior is the same in J9.3 and J9.4. I am running the full version on Windows 11. Thanks! ---

Re: [Jprogramming] lp?

2023-04-05 Thread Jan-Pieter Jacobs
Depending on how complicated the function you're trying to approximate is, I'd take a look at a simple linear model (using %. ; take a look at the best fit lab), or a neural network (see e.g. the neural network example on the J Playground, which classifies 2d data). Another classifier often used i

Re: [Jprogramming] lp?

2023-04-05 Thread Marshall Lochbaum
I don't know how you'd choose the points to sample, but once you have them a soft-margin SVM solves for the boundary. https://en.wikipedia.org/wiki/Support_vector_machine Marshall On Wed, Apr 05, 2023 at 03:44:49AM -0700, Elijah Stone wrote: > I know not the first thing about linear programming

Re: [Jprogramming] lp?

2023-04-05 Thread 'Bo Jacoby' via Programming
See https://en.wikipedia.org/wiki/Automated_machine_learning Good luck! Bo. Den onsdag den 5. april 2023 kl. 12.44.56 CEST skrev Elijah Stone : I know not the first thing about linear programming or numerical optimisation, but I have a problem which I think is related; can anyone point

[Jprogramming] lp?

2023-04-05 Thread Elijah Stone
I know not the first thing about linear programming or numerical optimisation, but I have a problem which I think is related; can anyone point me in the right direction? I have a set of variables x y... (usually not more than two, though there might be in some cases), and an oracle which can t