Problem definition
There are 3 ways to define a model in Nonconvex.jl
:
Model
which assumes all the variables are indexed by an integer index starting from 1. The decision variables are therefore a vector.DictModel
which assumes each variable has a name. The decision variables are stored in anOrderedDict
, an ordered dictionary data structure.- Start from
JuMP.Model
and convert it toDictModel
. This is convenient to make use ofJuMP
's user-friendly macros for variable and linear expression, objective or constraint definitions.