Skip to content

exponential function is doubled as a function of infinite parameters #374

@julia-sand

Description

@julia-sand

Hi I have a problem issue with using the exponential function within infiniteopt models.

Describe the bug
an exponential function with infinite parameters in the infinite model causes the exponential function to be doubled in the output.

To Reproduce

using InfiniteOpt

#Setup the model
#create a new model object
model = InfiniteModel();

#add any infinite parameter
@infinite_parameter(model, q in [-5, 5], num_supports = 11)

#try any function with an exponential
print(exp(-(q-1)^4))

output then has the exponential doubled

exp(-exp((q - 1)^4)

Desktop (please complete the following information):

  • OS linux
  • InfiniteOpt v0.5.9
  • Julia Version: both in 1.11.3 and 1.10.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions