Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xl(i).eq.xl(i) what does this sentence do? #14

Open
oswardlx opened this issue Jul 1, 2022 · 0 comments
Open

xl(i).eq.xl(i) what does this sentence do? #14

oswardlx opened this issue Jul 1, 2022 · 0 comments

Comments

@oswardlx
Copy link

oswardlx commented Jul 1, 2022

src/jni/fortran/slsqp.f90

subroutine bound(n, x, xl, xu)
integer n, i
double precision x(n), xl(n), xu(n)
do i = 1, n
! Note that xl(i) and xu(i) may be NaN to indicate no bound
if(xl(i).eq.xl(i).and.x(i) < xl(i))then
x(i) = xl(i)
else if(xu(i).eq.xu(i).and.x(i) > xu(i))then
x(i) = xu(i)
end if
end do
end subroutine bound

what does this sentence do?
xl(i).eq.xl(i)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant