Conversation
Closed
2 tasks
Contributor
Member
Author
|
@ocots please review |
Member
|
@jbcaillau Ok so it misses multipliers to boundary and path constraints. The rest seems fine for me. The signature of the method build a solution, that @PierreMartinon uses in CTDirect, is: function build_solution(
ocp::Model,
T::Vector{Float64},
X::TX,
U::TU,
v::Vector{Float64},
P::TP;
objective::Float64,
iterations::Int,
constraints_violation::Float64,
message::String,
status::Symbol,
successful::Bool,
path_constraints_dual::TPCD=__constraints(),
boundary_constraints_dual::Union{Vector{Float64},Nothing}=__constraints(),
state_constraints_lb_dual::Union{Matrix{Float64},Nothing}=__constraints(),
state_constraints_ub_dual::Union{Matrix{Float64},Nothing}=__constraints(),
control_constraints_lb_dual::Union{Matrix{Float64},Nothing}=__constraints(),
control_constraints_ub_dual::Union{Matrix{Float64},Nothing}=__constraints(),
variable_constraints_lb_dual::Union{Vector{Float64},Nothing}=__constraints(),
variable_constraints_ub_dual::Union{Vector{Float64},Nothing}=__constraints(),
) where {
TX<:Union{Matrix{Float64},Function},
TU<:Union{Matrix{Float64},Function},
TP<:Union{Matrix{Float64},Function},
TPCD<:Union{Matrix{Float64},Function,Nothing},
} |
ocots
approved these changes
Jul 25, 2025
Member
Author
|
exactly. for now seems ok. another hint that we must integrate upgrades between separate repose more seemlessly |
Member
|
@jbcaillau But I am afraid that the plot will bug if there should be dual variables that are missing. |
Member
Author
|
be confident |
Member
Member
Author
|
Member
It is better to provide anything because it won't be plotted in that case. It is better than plotting a zero value.
Path constraints are plotted by default if there exist. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #121