Skip to content

objective function including factorial function #1345

Discussion options

You must be logged in to vote

Same thing, you just have a very nasty function

range = 0:N
intvar k
sdpvar t
z = binvar(length(range),1)
Model = [k == range*z, t == myhorriblefunction(range)*z, sum(z)==1]

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ellensonny
Comment options

@johanlofberg
Comment options

Comment options

You must be logged in to vote
2 replies
@johanlofberg
Comment options

Answer selected by ellensonny
@ellensonny
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants