Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
add conditional constrain in optimization
if a=0 then q=0
if a=1 then q=24;
if a=2 then q=32;
if a=3 then q=44;
how to write this as constrain for optimization problem?
5 Commenti
Risposta accettata
35 Commenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314115/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314120/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314125/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314650/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314655/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314660/image.png)
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)