Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
personal:blog:2017:0203_jump_for_gams_users [2023/12/22 11:20]
antonello [Definition of the "parameters"]
personal:blog:2017:0203_jump_for_gams_users [2023/12/22 11:24]
antonello [Declaration of the model]
Line 132: Line 132:
  
 Here we declare a JuML optimisation model and we give it a name. This name will be then passed as first argument to all the subsequent operations, like creation of variables, constraints and objective function.\\ Here we declare a JuML optimisation model and we give it a name. This name will be then passed as first argument to all the subsequent operations, like creation of variables, constraints and objective function.\\
-We can, if we wish, works with several models at the same time.\\ +The solver engine to use is given as argument of the ''Model()'' call.\\ 
-If we do not specify a solver, we let JuML use a suitable solver for the type of problem. Aside to specify the solver, we can also pass it solver-level options, e.g.: +We could pass solver-specific options with the ''set_optimizer_attribute'' function, e.g.: 
-''mymodel = Model(solver=IpoptSolver(print_level=0))''+''set_optimizer_attribute(trmodel, "msg_lev", GLPK.GLP_MSG_ON)''
  
 <code julia> <code julia>
 # Model declaration (transport model) # Model declaration (transport model)
-trmodel = Model()  +trmodel = Model(GLPK.Optimizer
 </code> </code>
  
personal/blog/2017/0203_jump_for_gams_users.txt · Last modified: 2023/12/22 11:39 by antonello
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0