Skip to content

Incentive compatibility constraints #309

Answered by pulsipher
samwycherley asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the clarifications. If I understand correctly, then we can try to express the 2 agent case:

using InfiniteOpt, Distributions, Ipopt

model = InfiniteModel(Ipopt.Optimizer)

N = 1:2
num_samples = 10 # adjust to desired amount

@infinite_parameter(model, v[i in N] ~ Uniform(0,1), independent = true, num_supports = num_samples)
vp_samples = rand(Uniform(0, 1), num_samples) # InfiniteOpt doesn't allow us to swap infinite parameter arguments directly

@variables(model, begin
    0  x[N]  1, Infinite(v[1], v[2])
    t[N], Infinite(v[1], v[2])
end)

u(v,q,t) = v*q - t

# Define the incentive compatibility constraints
@constraint(model, [vp  vp_samples], u(x[1], t[1], v[1])  u(x[1]…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@samwycherley
Comment options

@pulsipher
Comment options

@samwycherley
Comment options

Comment options

You must be logged in to vote
1 reply
@samwycherley
Comment options

Answer selected by samwycherley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants