Comments (9)
Isn't this just that SCIP does not support MOI.ScalarNonlinearFunction yet?
Ah my bad I should add this, I wasn't sure if an additional step was needed to make solvers work with the new JuMP nonlinear
from scip.jl.
thanks for letting us know! @odow do you know what could be the culprit here? Is a bridge f(x) == b
to b <= f(x) <= b
potentially missing?
from scip.jl.
Notably, this works in Ipopt (modulo the mixed-integer part).
from scip.jl.
Isn't this just that SCIP does not support MOI.ScalarNonlinearFunction
yet?
But also, @LebedevRI is using the wrong syntax for indicator constraints. It must be:
model = Model()
@variable(model, e[i=1:b,j=1:a], Bin)
@constraint(model, [i=1:b,j=1:a], e[i,j] --> {j <= c[i]})
from scip.jl.
Isn't this just that SCIP does not support
MOI.ScalarNonlinearFunction
yet?
FWIW i did indeed have another "snippet" where MOI.ScalarNonlinearFunction
support
was the culprit as per stacktrace, but did not manage to reproduce that yet so that i could file an issue.
But also, @LebedevRI is using the wrong syntax for indicator constraints. It must be:
I'm using what is said in the docs:
https://jump.dev/JuMP.jl/stable/manual/constraints/#Indicator-constraints
https://jump.dev/JuMP.jl/stable/tutorials/linear/tips_and_tricks/#Indicator-constraints
... nowhere did i see the -->
syntax, although i very much agree that it looks better than =>
.
from scip.jl.
I'm using what is said in the docs:
Suggestions for how to make it clearer then? It says:
Indicator constraints consist of a binary variable and a linear constraint.
The constraint holds when the binary variable takes | the value 1. The
constraint may or may not hold when the binary variable takes the
value 0.
I guess we need to add "You cannot use an expression for the left-hand side.
nowhere did i see the --> syntax, although i very much agree that it looks better than =>.
-->
and =>
are the same thing. No difference. I thought I updated the documentation, but perhaps I didn't.
from scip.jl.
I'm using what is said in the docs:
Suggestions for how to make it clearer then? It says:
Indicator constraints consist of a binary variable and a linear constraint. The constraint holds when the binary variable takes | the value 1. The constraint may or may not hold when the binary variable takes the value 0.
I guess we need to add "You cannot use an expression for the left-hand side.
nowhere did i see the --> syntax, although i very much agree that it looks better than =>.
-->
and=>
are the same thing. No difference. I thought I updated the documentation, but perhaps I didn't.
Right. I was more talking about the syntax side of question, but clarifying that
the LHS really must be a variable and not an expression could be clarified a bit.
Though, would an automatic rewrite (to introduce the variable) be a bad thing there?
Thank you for looking into this! I think MOI.ScalarNonlinearFunction
support would be awesome.
from scip.jl.
Just to calibrate expectations, is there any kind of an aspirational timeframe
as to when this kind of functionality might be implemented in this solver?
from scip.jl.
So i've tried to take a stab at this, but it is not yet apparent to me how this would look like in SCIP.j
(as compared to the Ipopt.jl implementation). If there are any suggestions on how to approach this,
i could try again, but this really could use someone already familiar with the codebase...
from scip.jl.
Related Issues (20)
- SCIP EXCEPTION_ACCESS_VIOLATION In JuMP 1.1.0 and SCIP V0.11.3 on Windows 11 HOT 26
- How to trigger SCIPsolveConcurrent? HOT 3
- Multiple threads HOT 10
- SCIP not working on Windows HOT 4
- Crash When Optimizing HOT 15
- Get original variables from constraint
- Collect all feasible solutions HOT 4
- Cannot install globally in Windows HOT 1
- [EXCEPTION_ACCESS_VIOLATION] Julia 1.8.5 incompatibility with SCIP v0.11.12 HOT 1
- MultipleObjectiveAlgorithms usage HOT 1
- Implement LazyConstraint from ConstraintHandler HOT 4
- SCIP solver -- issue in "quadratic_constraints.jl". HOT 2
- Not solving the optimization model with the SCIP solver HOT 12
- A new release is probably warranted - `is_valid()` is broken in `v0.11.14`
- How to get ConstraintDual? HOT 2
- SCIP optimizer status likely ser incorrectly. HOT 4
- Update to allow SCIP version 9?
- SCIP crashes on simple problem HOT 2
- SCIP.jl with exact-rational branch HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scip.jl.