Closed Datseris closed 3 months ago
Unfortunately no. Your objective function must be an algebraic expression of your decision variables. It has the same limitations as standard mathematical optimization.
I suspected so, thank you very much for taking the time to reply!
Hi there,
I just discovered this package and it re-ignited my hopes of solving https://discourse.julialang.org/t/using-a-jump-bin-vector-to-index-an-array-checkbounds-fails-with-type-variableref/102674 via JuMP.
I have the following MWE:
my code errors in
@objective(model, Max, objective(I))
withWhich is to be expected. I am facing the same issue as the one I posted in the aforementioned discourse thread.
The question therefore is, is it possible via DisjunctiveProgramming.jl and the usage of some disjunctions, to achieve this: optimize the selection of which columns of a matrix to choose (i.e., a vector of integers), so that when using these specific columns to compute a real number, this real number is maximized?