write an optimization model in java

Hello all
I trying to write an optimization model in Java API directly.
I read gams java API tutorial. I can define sets, parameters & variables in java but I don’t define optimization model in java.
pls, let me know, can I write my model in java directly or gams java API don’t support this functions and I force to write the model in the gams ide and run it from java?
(for instance, in IBM CPLEX software, we can define directly optimization model in java code with specific class and function and solved it separate from ide).

Best regard

Dear Michael
Thanks for your replay.

Pls, let me know, how can I define multidimensional sets & alias them in the Java API?

Best regards

JOM (Java Optimization Modeler) is a free and open-source Java library targeted to allowing Java programs modeling and solving optimization problems, defining their input parameters, decision variables, objective function, and constraints. The optimization model of java is based on JOM.
java training in chennai