Comments (4)
You are trying to call this function, which expects an f64, with a parameter that is an Expression
: https://docs.rs/good_lp/1.3.2/good_lp/struct.Expression.html#impl-Mul%3CN%3E
from good_lp.
Just as a reminder: the product of two linear expressions is not a linear expression.
from good_lp.
You probably meant energy_init *= batt_var.bat_pc[bat][t]
from good_lp.
🤦 Thank you.
from good_lp.
Related Issues (20)
- `mul` with a float doesn't seem to to the right thing for binary variables HOT 1
- How can I set model/solver options, especially for HiGHS ? HOT 1
- Add Gurobi Support HOT 3
- really need an example that had these properties HOT 2
- Does good_lp work on Windows with CBC? [It does] HOT 7
- Making CoinCbcProblem cloneable...
- Add support for Clarabel.rs HOT 2
- Small documentation error HOT 3
- HiGHS does depend on additional libs HOT 2
- Suppressing Cbc command line output HOT 1
- cannot multiply `usize` by `good_lp::Variable` in constraint on integer variable HOT 5
- Add const to determine at compile-time what default_solver resolves to HOT 1
- Add support for Windows HOT 1
- External solver failing due to LP file format HOT 5
- Compilation failing HOT 2
- Typos in repo description HOT 4
- Feature request: SOS1 constraint support for cplex-rs HOT 1
- [Q/A] using HiGHs LP solver HOT 2
- Accessing variable names after a solution has been created
- Feature: "alldifferent" constrant HOT 1
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 good_lp.