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

Loose ends from OptimizationSystem #1786

Closed
6 tasks done
ValentinKaisermayer opened this issue Aug 28, 2022 · 2 comments
Closed
6 tasks done

Loose ends from OptimizationSystem #1786

ValentinKaisermayer opened this issue Aug 28, 2022 · 2 comments

Comments

@ValentinKaisermayer
Copy link
Contributor

ValentinKaisermayer commented Aug 28, 2022

@variables x y
@parameters a b
loss = (a - x)^2 + b * (y - x^2)^2
cons = [
    x^2 + y^2 ~ 0, 
    y * sin(x) - x ~ 0
]
sys = OptimizationSystem(loss, [x, y], [a, b], name = :sys, constraints = cons)
prob = OptimizationProblem(sys, [x => 0.0, y => 0.0], [a => 1.0, b => 100.0],
                           lcons = [-1.0, -1.0], ucons = [500.0, 500.0])
@ChrisRackauckas
Copy link
Member

Thanks, this is a nice list.

@ValentinKaisermayer
Copy link
Contributor Author

Yeah!

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

2 participants