Skip to content

Commit

Permalink
Merge 280e19a into 8523280
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Jul 22, 2020
2 parents 8523280 + 280e19a commit fa7ab33
Show file tree
Hide file tree
Showing 188 changed files with 2,858 additions and 2,881 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Security/YAMLLoad:
Enabled: false

inherit_from:
- http://s3.amazonaws.com/openstudio-resources/styles/rubocop.yml
- http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v3.yml
- http://s3.amazonaws.com/openstudio-resources/styles/rubocop-rails.yml
66 changes: 33 additions & 33 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# (1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# (2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# (3) Neither the name of the copyright holder nor the names of any contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission from the respective party.
#
# (4) Other than as required in clauses (1) and (2), distributions in any form
# of modifications or other derivative works may not use the "OpenStudio"
# trademark, "OS", "os", or any other confusingly similar designation without
# specific prior written permission from Alliance for Sustainable Energy, LLC.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# (1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# (2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# (3) Neither the name of the copyright holder nor the names of any contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission from the respective party.
#
# (4) Other than as required in clauses (1) and (2), distributions in any form
# of modifications or other derivative works may not use the "OpenStudio"
# trademark, "OS", "os", or any other confusingly similar designation without
# specific prior written permission from Alliance for Sustainable Energy, LLC.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
# GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# *******************************************************************************
2 changes: 1 addition & 1 deletion bin/openstudio_meta
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local/dj_server_command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local/dj_worker_command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local/mongo_command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local/rails_command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/local/rspec_command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion bin/resources/remote.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion docker/R/install_packages.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down
102 changes: 51 additions & 51 deletions docker/R/lib/R-packages-code/NRELmoo/R/ZDTfunctions.R
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
#############################################################
# Evolutionary Multi-Objective Optimizers in R
# Zitzler-Deb-Thiele's Test Functions 27/02/2013
# Author: Prof. Ching-Shih (Vince) Tsou, Ph.D.
# Affiliation: Institute of Information and Decision Sciences
# National Taipei College of Business
# Email: cstsou@mail.ntcb.edu.tw
#############################################################

ZDT1 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^(1/2)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT2 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^2
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT3 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^(1/2)-(f1/g)*sin(10*pi*f1)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT4 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+10*(varNo-1)+sum(x[2:varNo]^2-10*cos(4*pi*x[2:varNo]))
h <- 1-(f1/g)^(1/2)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
#############################################################
# Evolutionary Multi-Objective Optimizers in R
# Zitzler-Deb-Thiele's Test Functions 27/02/2013
# Author: Prof. Ching-Shih (Vince) Tsou, Ph.D.
# Affiliation: Institute of Information and Decision Sciences
# National Taipei College of Business
# Email: cstsou@mail.ntcb.edu.tw
#############################################################

ZDT1 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^(1/2)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT2 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^2
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT3 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+9/(varNo-1)*sum(x[2:varNo])
h <- 1-(f1/g)^(1/2)-(f1/g)*sin(10*pi*f1)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

ZDT4 <- function(x) {
varNo <- length(x)
f1 <- x[1]
g <- 1+10*(varNo-1)+sum(x[2:varNo]^2-10*cos(4*pi*x[2:varNo]))
h <- 1-(f1/g)^(1/2)
y <- numeric(2)
y[1] <- x[1]
y[2] <- g*h
return(y)
}

0 comments on commit fa7ab33

Please sign in to comment.