From what I can read of the picture of the solver, you are using the evolutionary algorithm in 3 variables with 6 constraints.
The choices of solver are described at https://www.engineerexcel.com/excel-solver-solving-method-choose/
To code one of these solvers in blocks will be hard, compared to finding a JavaScript implementation and running it in a WebViewer.
Sample Google search targets:
- simplex solver javascript i.e. https://stackoverflow.com/questions/6445736/has-anyone-seen-a-simplex-library-for-javascript-nodejs
- evolutionary solver javascript (lots of luck to you)
Javascript stunt examples can be found at FAQ Section: JavaScript Stunts
To package problems and solutions across the AI2/JavaScript boundary, you should study JSON and Dictionaries.