Comments (3)
You do not get infeasible, you get invalid.
As documented, it accepts arguments of the form a*x + b, not general linear expressions.
from or-tools.
thanks! i could not find this limitation in the docs. could you kindly point me out?
I've only seen *expressions: simple expressions of the form a * var + constant.
for AddAllDifferent
otherwise the docs give x + 2 * (y - z + 1) as an example for LinearExpr
which functions take a general linear expression and which take a univariate one?
could we have these function explicitly validate instead of failing silently?
could we have a dedicated type annotation?
from or-tools.
from or-tools.
Related Issues (20)
- CMake build failure on Raspberry Pi
- how to Counter intval according to condition HOT 1
- Constraint Solver additional_constraint_index_ is always 0? HOT 1
- ORTools installs without pywrapinit HOT 15
- when I use makeIfThenElseCt or MakeConditionalExpression in Java, coredump happened... HOT 5
- Strictly positive limits of a variable are not respected
- cmake-build fails on Windows 10/ VS Community 2022 HOT 4
- Memory error in PrecedenceRelations::Build HOT 10
- use or-tools in a project HOT 1
- Solving the max flow problem failed HOT 2
- RuntimeError('Unrecognized new version of ortools (9.8.3296). Expected < 9.8.0. Please open a feature request on cvxpy to enable support for this version.') HOT 1
- how to get current variable value? HOT 2
- Python builds are failing in the current `main` branch HOT 1
- Building from source OR-Tools C++ on Windows generates "Internal compilation error" at build HOT 1
- Linker tools error on ortools_full.lib: "int CbcOrClpEnvironmentIndex" (?CbcOrClpEnvironmentIndex@@3HA) already defined HOT 1
- Bug? Huge variance in CBC solver
- How IntExpr().Var() affect the search process. HOT 1
- what difference between IntVar.setRange and solver.addConstraints HOT 1
- AddNoverlap2D does not work with OnlyEnforceIf HOT 2
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 or-tools.