infiniteopt / InfiniteOpt.jl

An intuitive modeling interface for infinite-dimensional optimization problems.
https://infiniteopt.github.io/InfiniteOpt.jl/stable
MIT License
251 stars 17 forks source link

Implement `constant_over_collocation` #325

Closed pulsipher closed 10 months ago

pulsipher commented 10 months ago

To resolve the degrees of freedom encountered by control variables with orthogonal collocation, this introduces constant_over_collocation to have control variables held to one a single degree of freedom per finite element. Closes #216.

codecov[bot] commented 10 months ago

Codecov Report

Merging #325 (9cb8ab9) into master (fd051e8) will increase coverage by 0.00%. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #325   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          36       36           
  Lines        6602     6657   +55     
=======================================
+ Hits         6587     6642   +55     
  Misses         15       15           
Files Coverage Δ
src/TranscriptionOpt/model.jl 100.00% <ø> (ø)
src/TranscriptionOpt/transcribe.jl 99.73% <100.00%> (+0.02%) :arrow_up:
src/datatypes.jl 100.00% <100.00%> (ø)
src/derivative_evaluations.jl 100.00% <ø> (ø)
src/expressions.jl 99.67% <100.00%> (+<0.01%) :arrow_up:
src/general_variables.jl 100.00% <100.00%> (ø)
src/infinite_variables.jl 99.57% <100.00%> (+0.03%) :arrow_up: