8000 Salvage value · infiniteopt InfiniteOpt.jl · Discussion #287 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Salvage value #287

Answered by pulsipher
azev77 asked this question in Q&A
Sep 5, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @azev77, I moved this over to the discussion forum since this is a usage question.

Yes, you can readily incorporate a terminal value using point variables. For instance:

using InfiniteOpt

model = InfiniteModel()
@infinite_parameter(model, t in [0, 1])
@variable(model, x, Infinite(t))

# Set objective where f(x(t)) = x(t)^2 and s(x(T)) = 2x(T)
@objective(model, Min, (x^2, t) + 2 * x(1))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pulsipher
Comment options

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

@azev77
Comment options

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
Converted from issue

This discussion was converted from issue #286 on September 05, 2022 13:50.

0