avinashresearch1 / CompHENS.jl

Computational Tools for Heat Exchanger Network Synthesis
MIT License
8 stars 1 forks source link

Formulate optimization models without using macros #27

Open avinashresearch1 opened 1 year ago

avinashresearch1 commented 1 year ago

If the speed to construct the optimization problem in JuMP becomes a barrier, consider removing macros. Avoiding that is a lot of work and takes a lot of learning about JuMP (or ideally MathOptInterface) though. Depending on how big the problems become, the inefficiency of macro usage can actually become very noticeable (especially when you start thinking about the nonlinear problems). For now I think this is fine but something to keep in mind.