Skip to content

Modelling availability of assets #304

Discussion options

You must be logged in to vote

Sorry for the confusion in my last response, it greatly helps to see the full model. I know understand what is going on and can explain.

First, you should rewrite the time definition to:

@infinite_parameter(model, t in [0, tend], supports = collect(Dtw), derivative_method = FiniteDifference(Backward()) )

since a vector is expected for supports. I probably should add direct support for ranges to avoid this....

Now let's go through the varies parameter function definitions above. First we have:

@parameter_function(model, γ_cont[nEV] == (t) -> γ_interp(nEV, t))

This is problematic since nEV = 1:2 so this returns a vector for all the nEV values at time t. Since, InfiniteOpt expects scalar out…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by DarioSlaifsteinSk
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